blob: c4d6170bcfd18ff8e7be834a19bf1a0e073e0623 [file] [log] [blame]
Leonard Greye4ae34d2018-02-16 17:34:291// Copyright 2018 The Chromium Authors. All rights reserved.
2// 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
16RootElement::~RootElement() {}
17
Leonard Greye4ae34d2018-02-16 17:34:2918void RootElement::GetBounds(gfx::Rect* bounds) const {
19 NOTREACHED();
20}
21
22void RootElement::SetBounds(const gfx::Rect& bounds) {
23 NOTREACHED();
24}
25
26void RootElement::GetVisible(bool* visible) const {
27 NOTREACHED();
28}
29
30void RootElement::SetVisible(bool visible) {
31 NOTREACHED();
32}
Johannes Henkel53d2ce282019-06-18 23:14:2733
34std::vector<std::string> RootElement::GetAttributes() const {
Leonard Greye4ae34d2018-02-16 17:34:2935 NOTREACHED();
Johannes Henkel53d2ce282019-06-18 23:14:2736 return {};
Leonard Greye4ae34d2018-02-16 17:34:2937}
38
Wei Lib847f9c2018-12-11 22:10:1939std::pair<gfx::NativeWindow, gfx::Rect>
40RootElement::GetNodeWindowAndScreenBounds() const {
Leonard Greye4ae34d2018-02-16 17:34:2941 NOTREACHED();
42 return {};
43}
44
45} // namespace ui_devtools