Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1616)

Unified Diff: ash/devtools/ui_element_delegate.h

Issue 2776543002: Create a unified UIElement interface for Widget, View and Window. (Closed)
Patch Set: nits Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698