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