Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 1 | // 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 Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 5 | #include "components/ui_devtools/root_element.h" |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 6 | |
Hans Wennborg | df87046c | 2020-04-28 11:06:24 | [diff] [blame] | 7 | #include "base/notreached.h" |
Andrey Kosyakov | 103b8f2a | 2021-11-16 08:06:26 | [diff] [blame^] | 8 | #include "components/ui_devtools/protocol.h" |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 9 | #include "components/ui_devtools/ui_element_delegate.h" |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 10 | |
| 11 | namespace ui_devtools { |
| 12 | |
| 13 | RootElement::RootElement(UIElementDelegate* ui_element_delegate) |
| 14 | : UIElement(UIElementType::ROOT, ui_element_delegate, nullptr) {} |
| 15 | |
| 16 | RootElement::~RootElement() {} |
| 17 | |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 18 | void RootElement::GetBounds(gfx::Rect* bounds) const { |
| 19 | NOTREACHED(); |
| 20 | } |
| 21 | |
| 22 | void RootElement::SetBounds(const gfx::Rect& bounds) { |
| 23 | NOTREACHED(); |
| 24 | } |
| 25 | |
| 26 | void RootElement::GetVisible(bool* visible) const { |
| 27 | NOTREACHED(); |
| 28 | } |
| 29 | |
| 30 | void RootElement::SetVisible(bool visible) { |
| 31 | NOTREACHED(); |
| 32 | } |
Johannes Henkel | 53d2ce28 | 2019-06-18 23:14:27 | [diff] [blame] | 33 | |
| 34 | std::vector<std::string> RootElement::GetAttributes() const { |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 35 | NOTREACHED(); |
Johannes Henkel | 53d2ce28 | 2019-06-18 23:14:27 | [diff] [blame] | 36 | return {}; |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 37 | } |
| 38 | |
Wei Li | b847f9c | 2018-12-11 22:10:19 | [diff] [blame] | 39 | std::pair<gfx::NativeWindow, gfx::Rect> |
| 40 | RootElement::GetNodeWindowAndScreenBounds() const { |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 41 | NOTREACHED(); |
| 42 | return {}; |
| 43 | } |
| 44 | |
| 45 | } // namespace ui_devtools |