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: trunk/src/mojo/services/view_manager/root_node_manager.h

Issue 304593002: Revert 272983 "Change Shell / ShellClient to ServiceProvider" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | Annotate | Revision Log
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_ROOT_NODE_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "mojo/services/view_manager/ids.h" 11 #include "mojo/services/view_manager/ids.h"
12 #include "mojo/services/view_manager/node.h" 12 #include "mojo/services/view_manager/node.h"
13 #include "mojo/services/view_manager/node_delegate.h" 13 #include "mojo/services/view_manager/node_delegate.h"
14 #include "mojo/services/view_manager/root_view_manager.h" 14 #include "mojo/services/view_manager/root_view_manager.h"
15 #include "mojo/services/view_manager/view_manager_export.h" 15 #include "mojo/services/view_manager/view_manager_export.h"
16 16
17 namespace mojo { 17 namespace mojo {
18 18
19 class ServiceProvider; 19 class Shell;
20 20
21 namespace view_manager { 21 namespace view_manager {
22 namespace service { 22 namespace service {
23 23
24 class View; 24 class View;
25 class ViewManagerConnection; 25 class ViewManagerConnection;
26 26
27 // RootNodeManager is responsible for managing the set of ViewManagerConnections 27 // RootNodeManager is responsible for managing the set of ViewManagerConnections
28 // as well as providing the root of the node hierarchy. 28 // as well as providing the root of the node hierarchy.
29 class MOJO_VIEW_MANAGER_EXPORT RootNodeManager : public NodeDelegate { 29 class MOJO_VIEW_MANAGER_EXPORT RootNodeManager : public NodeDelegate {
(...skipping 15 matching lines...) Expand all
45 bool is_delete_node); 45 bool is_delete_node);
46 ~ScopedChange(); 46 ~ScopedChange();
47 47
48 private: 48 private:
49 RootNodeManager* root_; 49 RootNodeManager* root_;
50 const ChangeType change_type_; 50 const ChangeType change_type_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(ScopedChange); 52 DISALLOW_COPY_AND_ASSIGN(ScopedChange);
53 }; 53 };
54 54
55 explicit RootNodeManager(ServiceProvider* service_provider); 55 explicit RootNodeManager(Shell* shell);
56 virtual ~RootNodeManager(); 56 virtual ~RootNodeManager();
57 57
58 // Returns the id for the next ViewManagerConnection. 58 // Returns the id for the next ViewManagerConnection.
59 TransportConnectionId GetAndAdvanceNextConnectionId(); 59 TransportConnectionId GetAndAdvanceNextConnectionId();
60 60
61 TransportChangeId next_server_change_id() const { 61 TransportChangeId next_server_change_id() const {
62 return next_server_change_id_; 62 return next_server_change_id_;
63 } 63 }
64 64
65 void AddConnection(ViewManagerConnection* connection); 65 void AddConnection(ViewManagerConnection* connection);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Node root_; 149 Node root_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 151 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
152 }; 152 };
153 153
154 } // namespace service 154 } // namespace service
155 } // namespace view_manager 155 } // namespace view_manager
156 } // namespace mojo 156 } // namespace mojo
157 157
158 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 158 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW
« no previous file with comments | « trunk/src/mojo/services/view_manager/main.cc ('k') | trunk/src/mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698