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

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

Issue 2852733002: Duplicate -Move DevTools out of ash and turn it to a component. (Closed)
Patch Set: move unittest to ui/views Created 3 years, 7 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
« no previous file with comments | « ash/devtools/ui_element.cc ('k') | ash/devtools/view_element.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 virtual ~UIElementDelegate(){};
23
24 // |parent| adds |child| in DOM tree.
25 virtual void OnUIElementAdded(UIElement* parent, UIElement* child) = 0;
26
27 // Move |child| to different sibling index under |parent| in DOM tree.
28 virtual void OnUIElementReordered(UIElement* parent, UIElement* child) = 0;
29
30 // Remove ui_element in DOM tree.
31 virtual void OnUIElementRemoved(UIElement* ui_element) = 0;
32
33 // Update CSS agent when bounds change.
34 virtual void OnUIElementBoundsChanged(UIElement* ui_element) = 0;
35
36 // Return |window| highlighting status.
37 virtual bool IsHighlightingWindow(aura::Window* window) = 0;
38
39 DISALLOW_COPY_AND_ASSIGN(UIElementDelegate);
40 };
41
42 } // namespace devtools
43 } // namespace ash
44
45 #endif // ASH_DEVTOOLS_UI_ELEMENT_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/devtools/ui_element.cc ('k') | ash/devtools/view_element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698