#include "components/ui_devtools/views/window_element.h"
#include "base/not_fatal_until.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "components/ui_devtools/protocol.h"
#include "components/ui_devtools/ui_element_delegate.h"
#include "components/ui_devtools/views/devtools_event_util.h"
#include "components/ui_devtools/views/element_utility.h"
#include "components/viz/common/surfaces/surface_id.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/aura/window_tree_host_platform.h"
#include "ui/base/ime/input_method.h"
#include "ui/base/ime/text_input_client.h"
#include "ui/wm/core/window_util.h"
namespace ui_devtools {
namespace {
int GetIndexOfChildInParent(aura::Window* window) { … }
}
WindowElement::WindowElement(aura::Window* window,
UIElementDelegate* ui_element_delegate,
UIElement* parent)
: … { … }
WindowElement::~WindowElement() { … }
void WindowElement::OnWindowHierarchyChanging(
const aura::WindowObserver::HierarchyChangeParams& params) { … }
void WindowElement::OnWindowHierarchyChanged(
const aura::WindowObserver::HierarchyChangeParams& params) { … }
void WindowElement::OnWindowStackingChanged(aura::Window* window) { … }
void WindowElement::OnWindowBoundsChanged(aura::Window* window,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds,
ui::PropertyChangeReason reason) { … }
void WindowElement::GetBounds(gfx::Rect* bounds) const { … }
void WindowElement::SetBounds(const gfx::Rect& bounds) { … }
void WindowElement::GetVisible(bool* visible) const { … }
void WindowElement::SetVisible(bool visible) { … }
std::vector<std::string> WindowElement::GetAttributes() const { … }
std::pair<gfx::NativeWindow, gfx::Rect>
WindowElement::GetNodeWindowAndScreenBounds() const { … }
aura::Window* WindowElement::From(const UIElement* element) { … }
template <>
int UIElement::FindUIElementIdForBackendElement<aura::Window>(
aura::Window* element) const { … }
void WindowElement::InitSources() { … }
bool WindowElement::DispatchKeyEvent(protocol::DOM::KeyEvent* event) { … }
ui::metadata::ClassMetaData* WindowElement::GetClassMetaData() const { … }
void* WindowElement::GetClassInstance() const { … }
ui::Layer* WindowElement::GetLayer() const { … }
}