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" |
9 | 10 |
10 namespace mojo { | 11 namespace mojo { |
| 12 class Shell; |
11 namespace services { | 13 namespace services { |
12 namespace view_manager { | 14 namespace view_manager { |
13 | 15 |
| 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 |
14 class ViewManager { | 23 class ViewManager { |
15 public: | 24 public: |
| 25 explicit ViewManager(Shell* shell); |
| 26 ~ViewManager(); |
| 27 |
16 private: | 28 private: |
| 29 friend class ViewManagerPrivate; |
| 30 |
| 31 Shell* shell_; |
| 32 scoped_ptr<ViewManagerSynchronizer> synchronizer_; |
| 33 |
17 DISALLOW_COPY_AND_ASSIGN(ViewManager); | 34 DISALLOW_COPY_AND_ASSIGN(ViewManager); |
18 }; | 35 }; |
19 | 36 |
20 } // namespace view_manager | 37 } // namespace view_manager |
21 } // namespace services | 38 } // namespace services |
22 } // namespace mojo | 39 } // namespace mojo |
23 | 40 |
24 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ | 41 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ |
OLD | NEW |