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_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 | 9 |
11 namespace mojo { | 10 namespace mojo { |
12 class Shell; | |
13 namespace services { | 11 namespace services { |
14 namespace view_manager { | 12 namespace view_manager { |
15 | 13 |
16 class ViewManagerSynchronizer; | |
17 | |
18 // Approximately encapsulates the View Manager service. | |
19 // Owns a synchronizer that keeps a client model in sync with the service. | |
20 // Owned by the creator. | |
21 // | |
22 // TODO: displays | |
23 class ViewManager { | 14 class ViewManager { |
24 public: | 15 public: |
25 explicit ViewManager(Shell* shell); | |
26 ~ViewManager(); | |
27 | |
28 private: | 16 private: |
29 friend class ViewManagerPrivate; | |
30 | |
31 Shell* shell_; | |
32 scoped_ptr<ViewManagerSynchronizer> synchronizer_; | |
33 | |
34 DISALLOW_COPY_AND_ASSIGN(ViewManager); | 17 DISALLOW_COPY_AND_ASSIGN(ViewManager); |
35 }; | 18 }; |
36 | 19 |
37 } // namespace view_manager | 20 } // namespace view_manager |
38 } // namespace services | 21 } // namespace services |
39 } // namespace mojo | 22 } // namespace mojo |
40 | 23 |
41 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ | 24 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ |
OLD | NEW |