Index: mojo/services/public/cpp/view_manager/view_manager.h |
diff --git a/mojo/services/public/cpp/view_manager/view_manager.h b/mojo/services/public/cpp/view_manager/view_manager.h |
index 45ab0e2f58657faa5eddf9a05a7450fe5bf54b4f..fb492ec50663928b65ede76d989cea61144d39c4 100644 |
--- a/mojo/services/public/cpp/view_manager/view_manager.h |
+++ b/mojo/services/public/cpp/view_manager/view_manager.h |
@@ -6,14 +6,31 @@ |
#define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_MANAGER_H_ |
#include "base/basictypes.h" |
+#include "base/memory/scoped_ptr.h" |
namespace mojo { |
+class Shell; |
namespace services { |
namespace view_manager { |
+class ViewManagerSynchronizer; |
+ |
+// Approximately encapsulates the View Manager service. |
+// Owns a synchronizer that keeps a client model in sync with the service. |
+// Owned by the creator. |
+// |
+// TODO: displays |
class ViewManager { |
public: |
+ explicit ViewManager(Shell* shell); |
+ ~ViewManager(); |
+ |
private: |
+ friend class ViewManagerPrivate; |
+ |
+ Shell* shell_; |
+ scoped_ptr<ViewManagerSynchronizer> synchronizer_; |
+ |
DISALLOW_COPY_AND_ASSIGN(ViewManager); |
}; |