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

Side by Side Diff: mojo/services/view_manager/node_delegate.h

Issue 513923004: More viewmanager renaming: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sim30 Created 6 years, 3 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 | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.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 2014 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 MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
7
8 #include "mojo/services/view_manager/view_manager_export.h"
9
10 namespace gfx {
11 class Rect;
12 }
13
14 namespace mojo {
15 namespace service {
16
17 class Node;
18
19 class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
20 public:
21 // Invoked at the end of the Node's destructor (after it has been removed from
22 // the hierarchy and its active view has been reset).
23 virtual void OnNodeDestroyed(const Node* node) = 0;
24
25 // Invoked when the hierarchy has changed.
26 virtual void OnNodeHierarchyChanged(const Node* node,
27 const Node* new_parent,
28 const Node* old_parent) = 0;
29
30 virtual void OnNodeBoundsChanged(const Node* node,
31 const gfx::Rect& old_bounds,
32 const gfx::Rect& new_bounds) = 0;
33
34 virtual void OnNodeBitmapChanged(const Node* node) = 0;
35
36 protected:
37 virtual ~NodeDelegate() {}
38 };
39
40 } // namespace service
41 } // namespace mojo
42
43 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/node.cc ('k') | mojo/services/view_manager/root_node_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698