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 | |
| 7 | #include "components/ui_devtools/Protocol.h" |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 8 | #include "components/ui_devtools/ui_element_delegate.h" |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 9 | |
| 10 | namespace ui_devtools { |
| 11 | |
| 12 | RootElement::RootElement(UIElementDelegate* ui_element_delegate) |
| 13 | : UIElement(UIElementType::ROOT, ui_element_delegate, nullptr) {} |
| 14 | |
| 15 | RootElement::~RootElement() {} |
| 16 | |
| 17 | std::vector<std::pair<std::string, std::string>> |
| 18 | RootElement::GetCustomProperties() const { |
| 19 | NOTREACHED(); |
| 20 | return {}; |
| 21 | } |
| 22 | |
| 23 | void RootElement::GetBounds(gfx::Rect* bounds) const { |
| 24 | NOTREACHED(); |
| 25 | } |
| 26 | |
| 27 | void RootElement::SetBounds(const gfx::Rect& bounds) { |
| 28 | NOTREACHED(); |
| 29 | } |
| 30 | |
| 31 | void RootElement::GetVisible(bool* visible) const { |
| 32 | NOTREACHED(); |
| 33 | } |
| 34 | |
| 35 | void RootElement::SetVisible(bool visible) { |
| 36 | NOTREACHED(); |
| 37 | } |
| 38 | std::unique_ptr<protocol::Array<std::string>> RootElement::GetAttributes() |
| 39 | const { |
| 40 | NOTREACHED(); |
| 41 | return nullptr; |
| 42 | } |
| 43 | |
Wei Li | b847f9c | 2018-12-11 22:10:19 | [diff] [blame^] | 44 | std::pair<gfx::NativeWindow, gfx::Rect> |
| 45 | RootElement::GetNodeWindowAndScreenBounds() const { |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 46 | NOTREACHED(); |
| 47 | return {}; |
| 48 | } |
| 49 | |
| 50 | } // namespace ui_devtools |