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

Side by Side Diff: ash/devtools/ui_element_delegate.h

Issue 2776543002: Create a unified UIElement interface for Widget, View and Window. (Closed)
Patch Set: . 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 unified diff | Download patch
OLDNEW
(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_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_
6 #define ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_
7
8 #include <vector>
9
10 #include "ash/ash_export.h"
11 #include "base/macros.h"
12
13 namespace ash {
14 namespace devtools {
15
16 class UIElement;
17
18 class ASH_EXPORT UIElementDelegate {
19 public:
20 UIElementDelegate(){};
21 ~UIElementDelegate(){};
22 virtual void OnUIElementAdded(
23 int node_id,
24 UIElement* child_ui_element,
25 std::vector<UIElement*>::iterator prev_siblings);
26 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
27 virtual void OnUIElementBoundsChanged(int node_id);
28
29 DISALLOW_COPY_AND_ASSIGN(UIElementDelegate);
30 };
31
32 } // namespace devtools
33 } // namespace ash
34
35 #endif // ASH_COMMON_DEVTOOLS_UI_ELEMENT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698