Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Side by Side Diff: mojo/services/public/cpp/view_manager/view_manager.h

Issue 258623005: First step at synchronizing client model changes with service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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_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_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_tree_node.cc ('k') | mojo/services/public/cpp/view_manager/view_tree_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698