root_element.cc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include "components/ui_devtools/root_element.h"
  5. #include "base/notreached.h"
  6. #include "components/ui_devtools/protocol.h"
  7. #include "components/ui_devtools/ui_element_delegate.h"
  8. namespace ui_devtools {
  9. RootElement::RootElement(UIElementDelegate* ui_element_delegate)
  10. : UIElement(UIElementType::ROOT, ui_element_delegate, nullptr) {}
  11. RootElement::~RootElement() {}
  12. void RootElement::GetBounds(gfx::Rect* bounds) const {
  13. NOTREACHED();
  14. }
  15. void RootElement::SetBounds(const gfx::Rect& bounds) {
  16. NOTREACHED();
  17. }
  18. void RootElement::GetVisible(bool* visible) const {
  19. NOTREACHED();
  20. }
  21. void RootElement::SetVisible(bool visible) {
  22. NOTREACHED();
  23. }
  24. std::vector<std::string> RootElement::GetAttributes() const {
  25. NOTREACHED();
  26. return {};
  27. }
  28. std::pair<gfx::NativeWindow, gfx::Rect>
  29. RootElement::GetNodeWindowAndScreenBounds() const {
  30. NOTREACHED();
  31. return {};
  32. }
  33. } // namespace ui_devtools