OLD | NEW |
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 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "mojo/public/cpp/bindings/array.h" | 12 #include "mojo/public/cpp/bindings/array.h" |
13 #include "mojo/services/view_manager/ids.h" | 13 #include "mojo/services/view_manager/ids.h" |
14 #include "mojo/services/view_manager/node.h" | 14 #include "mojo/services/view_manager/node.h" |
15 #include "mojo/services/view_manager/node_delegate.h" | 15 #include "mojo/services/view_manager/node_delegate.h" |
16 #include "mojo/services/view_manager/root_view_manager.h" | 16 #include "mojo/services/view_manager/root_view_manager.h" |
17 #include "mojo/services/view_manager/view_manager_export.h" | 17 #include "mojo/services/view_manager/view_manager_export.h" |
18 #include "ui/aura/client/focus_change_observer.h" | 18 #include "ui/aura/client/focus_change_observer.h" |
19 | 19 |
20 namespace ui { | 20 namespace ui { |
21 class Event; | 21 class Event; |
22 } | 22 } |
23 | 23 |
24 namespace mojo { | 24 namespace mojo { |
25 | 25 |
26 class ApplicationConnection; | 26 class ApplicationConnection; |
27 | 27 |
28 namespace view_manager { | |
29 namespace service { | 28 namespace service { |
30 | 29 |
31 class RootViewManagerDelegate; | 30 class RootViewManagerDelegate; |
32 class View; | 31 class View; |
33 class ViewManagerServiceImpl; | 32 class ViewManagerServiceImpl; |
34 | 33 |
35 // RootNodeManager is responsible for managing the set of | 34 // RootNodeManager is responsible for managing the set of |
36 // ViewManagerServiceImpls as well as providing the root of the node hierarchy. | 35 // ViewManagerServiceImpls as well as providing the root of the node hierarchy. |
37 class MOJO_VIEW_MANAGER_EXPORT RootNodeManager | 36 class MOJO_VIEW_MANAGER_EXPORT RootNodeManager |
38 : public NodeDelegate, | 37 : public NodeDelegate, |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 std::set<ViewManagerServiceImpl*> connections_created_by_connect_; | 214 std::set<ViewManagerServiceImpl*> connections_created_by_connect_; |
216 | 215 |
217 // If non-null we're processing a change. The ScopedChange is not owned by us | 216 // If non-null we're processing a change. The ScopedChange is not owned by us |
218 // (it's created on the stack by ViewManagerServiceImpl). | 217 // (it's created on the stack by ViewManagerServiceImpl). |
219 ScopedChange* current_change_; | 218 ScopedChange* current_change_; |
220 | 219 |
221 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); | 220 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); |
222 }; | 221 }; |
223 | 222 |
224 } // namespace service | 223 } // namespace service |
225 } // namespace view_manager | |
226 } // namespace mojo | 224 } // namespace mojo |
227 | 225 |
228 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ | 226 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ |
OLD | NEW |