OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 |
| 5 #ifndef ASH_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
| 6 #define ASH_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 #include "base/macros.h" |
| 12 #include "ui/aura/window.h" |
| 13 |
| 14 namespace ash { |
| 15 namespace devtools { |
| 16 |
| 17 class UIElement; |
| 18 |
| 19 class ASH_EXPORT UIElementDelegate { |
| 20 public: |
| 21 UIElementDelegate(){}; |
| 22 virtual ~UIElementDelegate(){}; |
| 23 |
| 24 virtual void OnUIElementAdded(UIElement* parent, UIElement* child) = 0; |
| 25 |
| 26 // Move |child| to different sibling index under |parent| in DOM tree. |
| 27 virtual void OnUIElementReordered(UIElement* parent, UIElement* child) = 0; |
| 28 |
| 29 // Remove ui_element in DOM tree. |
| 30 virtual void OnUIElementRemoved(UIElement* ui_element) = 0; |
| 31 |
| 32 // Update CSS agent when bounds change. |
| 33 virtual void OnUIElementBoundsChanged(UIElement* ui_element) = 0; |
| 34 |
| 35 // Return |window| highlighting status. |
| 36 virtual bool IsHighlightingWindow(aura::Window* window) = 0; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(UIElementDelegate); |
| 39 }; |
| 40 |
| 41 } // namespace devtools |
| 42 } // namespace ash |
| 43 |
| 44 #endif // ASH_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
OLD | NEW |