#include "components/ui_devtools/views/widget_element.h"
#include "components/ui_devtools/protocol.h"
#include "components/ui_devtools/ui_element_delegate.h"
#include "components/ui_devtools/views/devtools_event_util.h"
namespace ui_devtools {
WidgetElement::WidgetElement(views::Widget* widget,
UIElementDelegate* ui_element_delegate,
UIElement* parent)
: … { … }
WidgetElement::~WidgetElement() { … }
void WidgetElement::OnWillRemoveView(views::Widget* widget, views::View* view) { … }
void WidgetElement::OnWidgetBoundsChanged(views::Widget* widget,
const gfx::Rect& new_bounds) { … }
void WidgetElement::OnWidgetDestroyed(views::Widget* widget) { … }
void WidgetElement::GetBounds(gfx::Rect* bounds) const { … }
void WidgetElement::SetBounds(const gfx::Rect& bounds) { … }
void WidgetElement::GetVisible(bool* visible) const { … }
void WidgetElement::SetVisible(bool visible) { … }
std::vector<std::string> WidgetElement::GetAttributes() const { … }
std::pair<gfx::NativeWindow, gfx::Rect>
WidgetElement::GetNodeWindowAndScreenBounds() const { … }
views::Widget* WidgetElement::From(const UIElement* element) { … }
template <>
int UIElement::FindUIElementIdForBackendElement<views::Widget>(
views::Widget* element) const { … }
bool WidgetElement::DispatchKeyEvent(protocol::DOM::KeyEvent* event) { … }
ui::metadata::ClassMetaData* WidgetElement::GetClassMetaData() const { … }
void* WidgetElement::GetClassInstance() const { … }
ui::Layer* WidgetElement::GetLayer() const { … }
}