Index: ash/devtools/ui_element_delegate.h |
diff --git a/ash/devtools/ui_element_delegate.h b/ash/devtools/ui_element_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..841ebeaa3d1865e65f91c35c3f0c81b9ee975bdb |
--- /dev/null |
+++ b/ash/devtools/ui_element_delegate.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
+#define ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |
+ |
+#include <vector> |
+ |
+#include "ash/ash_export.h" |
+#include "base/macros.h" |
+ |
+namespace ash { |
+namespace devtools { |
+ |
+class UIElement; |
+ |
+class ASH_EXPORT UIElementDelegate { |
+ public: |
+ UIElementDelegate(){}; |
+ ~UIElementDelegate(){}; |
+ virtual void OnUIElementAdded( |
+ int node_id, |
+ UIElement* child_ui_element, |
+ std::vector<UIElement*>::iterator prev_siblings); |
+ virtual std::vector<UIElement*>::iterator OnUIElementRemoved(int node_id); |
sadrul
2017/04/24 18:35:21
This is pretty weird. Why not just 'void OnUIEleme
thanhph
2017/04/26 13:50:38
Done. I changed it to bool OnUIElementRemoved(UIEl
|
+ virtual void OnUIElementBoundsChanged(int node_id); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(UIElementDelegate); |
+}; |
+ |
+} // namespace devtools |
+} // namespace ash |
+ |
+#endif // ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |