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 ~UIElementDelegate(){}; |
| 23 // Parent adds child node right after prev_sibling node. |
| 24 virtual void OnUIElementAdded(UIElement* parent, |
| 25 UIElement* child, |
| 26 UIElement* prev_sibling); |
| 27 // Parent moves child node right after prev_sibling node. |
| 28 virtual void OnUIElementReordered(UIElement* parent, |
| 29 UIElement* child, |
| 30 UIElement* prev_sibling); |
| 31 virtual void RemoveNodeIdMap(UIElement* ui_element); |
| 32 // Retun true if element is sucessfully removed, false otherwise. |
| 33 virtual bool OnUIElementRemoved(UIElement* ui_element); |
| 34 virtual void OnUIElementBoundsChanged(UIElement* ui_element); |
| 35 virtual bool IsHighlightingWindow(aura::Window* window); |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(UIElementDelegate); |
| 38 }; |
| 39 |
| 40 } // namespace devtools |
| 41 } // namespace ash |
| 42 |
| 43 #endif // ASH_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
OLD | NEW |