root_element.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef COMPONENTS_UI_DEVTOOLS_ROOT_ELEMENT_H_
  5. #define COMPONENTS_UI_DEVTOOLS_ROOT_ELEMENT_H_
  6. #include "components/ui_devtools/ui_element.h"
  7. namespace ui_devtools {
  8. class UI_DEVTOOLS_EXPORT RootElement : public UIElement {
  9. public:
  10. explicit RootElement(UIElementDelegate* ui_element_delegate);
  11. RootElement(const RootElement&) = delete;
  12. RootElement& operator=(const RootElement&) = delete;
  13. ~RootElement() override;
  14. // UIElement:
  15. void GetBounds(gfx::Rect* bounds) const override;
  16. void SetBounds(const gfx::Rect& bounds) override;
  17. void GetVisible(bool* visible) const override;
  18. void SetVisible(bool visible) override;
  19. std::vector<std::string> GetAttributes() const override;
  20. std::pair<gfx::NativeWindow, gfx::Rect> GetNodeWindowAndScreenBounds()
  21. const override;
  22. };
  23. } // namespace ui_devtools
  24. #endif // COMPONENTS_UI_DEVTOOLS_ROOT_ELEMENT_H_