blob: 46bfd90efe40e559c931676f80477bd481a98aa5 [file] [log] [blame]
Avi Drissman8ba1bad2022-09-13 19:22:361// Copyright 2018 The Chromium Authors
Leonard Greye4ae34d2018-02-16 17:34:292// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Illia Martyniukf688acd62018-04-02 19:26:075#include "components/ui_devtools/root_element.h"
Leonard Greye4ae34d2018-02-16 17:34:296
Hans Wennborgdf87046c2020-04-28 11:06:247#include "base/notreached.h"
Andrey Kosyakov103b8f2a2021-11-16 08:06:268#include "components/ui_devtools/protocol.h"
Illia Martyniukf688acd62018-04-02 19:26:079#include "components/ui_devtools/ui_element_delegate.h"
Leonard Greye4ae34d2018-02-16 17:34:2910
11namespace ui_devtools {
12
13RootElement::RootElement(UIElementDelegate* ui_element_delegate)
14 : UIElement(UIElementType::ROOT, ui_element_delegate, nullptr) {}
15
Sorin Jianu64e6e7592024-10-09 14:15:2616RootElement::~RootElement() = default;
Leonard Greye4ae34d2018-02-16 17:34:2917
Leonard Greye4ae34d2018-02-16 17:34:2918void RootElement::GetBounds(gfx::Rect* bounds) const {
Peter Boström77d21352024-11-13 22:26:1119 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2920}
21
22void RootElement::SetBounds(const gfx::Rect& bounds) {
Peter Boström77d21352024-11-13 22:26:1123 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2924}
25
26void RootElement::GetVisible(bool* visible) const {
Peter Boström77d21352024-11-13 22:26:1127 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2928}
29
30void RootElement::SetVisible(bool visible) {
Peter Boström77d21352024-11-13 22:26:1131 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2932}
Johannes Henkel53d2ce282019-06-18 23:14:2733
34std::vector<std::string> RootElement::GetAttributes() const {
Peter Boström77d21352024-11-13 22:26:1135 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2936}
37
Wei Lib847f9c2018-12-11 22:10:1938std::pair<gfx::NativeWindow, gfx::Rect>
39RootElement::GetNodeWindowAndScreenBounds() const {
Peter Boström77d21352024-11-13 22:26:1140 NOTREACHED();
Leonard Greye4ae34d2018-02-16 17:34:2941}
42
43} // namespace ui_devtools