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

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

Issue 250633003: Adds more to viewmanager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: override Created 6 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 | Annotate | Revision Log
« 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_
7 7
8 #include "mojo/services/view_manager/view_manager_export.h" 8 #include "mojo/services/view_manager/view_manager_export.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 namespace services { 11 namespace services {
12 namespace view_manager { 12 namespace view_manager {
13 13
14 struct NodeId; 14 struct NodeId;
15 struct ViewId;
15 16
16 class MOJO_VIEW_MANAGER_EXPORT NodeDelegate { 17 class MOJO_VIEW_MANAGER_EXPORT NodeDelegate {
17 public: 18 public:
18 // Invoked when the hierarchy has changed. 19 // Invoked when the hierarchy has changed.
19 virtual void OnNodeHierarchyChanged(const NodeId& node, 20 virtual void OnNodeHierarchyChanged(const NodeId& node,
20 const NodeId& new_parent, 21 const NodeId& new_parent,
21 const NodeId& old_parent) = 0; 22 const NodeId& old_parent) = 0;
22 23
24 // Invoked when the View associated with a node changes.
25 virtual void OnNodeViewReplaced(const NodeId& node,
26 const ViewId& new_view_id,
27 const ViewId& old_view_id) = 0;
28
23 protected: 29 protected:
24 virtual ~NodeDelegate() {} 30 virtual ~NodeDelegate() {}
25 }; 31 };
26 32
27 } // namespace view_manager 33 } // namespace view_manager
28 } // namespace services 34 } // namespace services
29 } // namespace mojo 35 } // namespace mojo
30 36
31 #endif // MOJO_SERVICES_VIEW_MANAGER_NODE_DELEGATE_H_ 37 #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