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..d339f668de317c028f6bbe2fca49925e5be61128 |
--- /dev/null |
+++ b/ash/devtools/ui_element_delegate.h |
@@ -0,0 +1,36 @@ |
+// 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_ |
sadrul
2017/05/01 16:22:27
Make sure to update these
thanhph
2017/05/03 21:58:10
Done.
|
+ |
+#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); |
sadrul
2017/05/01 16:22:27
This should be:
virtual void OnUIElementAdded(U
thanhph
2017/05/03 21:58:10
Done.
|
+ virtual void RemoveNodeIdMap(int node_id); |
+ virtual bool OnUIElementRemoved(int node_id); |
+ virtual void OnUIElementBoundsChanged(int node_id); |
sadrul
2017/05/01 16:22:27
Instead of getting node-id, can these callbacks ge
thanhph
2017/05/03 21:58:10
Done.
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(UIElementDelegate); |
+}; |
+ |
+} // namespace devtools |
+} // namespace ash |
+ |
+#endif // ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_ |