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

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

Issue 272833002: View synchronization (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_LIB_VIEW_MANAGER_PRIVATE_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h" 9 #include "mojo/services/public/cpp/view_manager/lib/view_manager_synchronizer.h"
10 #include "mojo/services/public/cpp/view_manager/view_manager.h" 10 #include "mojo/services/public/cpp/view_manager/view_manager.h"
(...skipping 12 matching lines...) Expand all
23 ViewManagerSynchronizer* synchronizer() { 23 ViewManagerSynchronizer* synchronizer() {
24 return manager_->synchronizer_.get(); 24 return manager_->synchronizer_.get();
25 } 25 }
26 Shell* shell() { return manager_->shell_; } 26 Shell* shell() { return manager_->shell_; }
27 27
28 void set_root(ViewTreeNode* root) { manager_->tree_ = root; } 28 void set_root(ViewTreeNode* root) { manager_->tree_ = root; }
29 29
30 void AddNode(TransportNodeId node_id, ViewTreeNode* node); 30 void AddNode(TransportNodeId node_id, ViewTreeNode* node);
31 void RemoveNode(TransportNodeId node_id); 31 void RemoveNode(TransportNodeId node_id);
32 32
33 void AddView(TransportViewId view_id, View* view);
34 void RemoveView(TransportViewId view_id);
35
33 // Returns true if the ViewManager's synchronizer is connected to the service. 36 // Returns true if the ViewManager's synchronizer is connected to the service.
34 bool connected() { return manager_->synchronizer_->connected(); } 37 bool connected() { return manager_->synchronizer_->connected(); }
35 38
36 private: 39 private:
37 ViewManager* manager_; 40 ViewManager* manager_;
38 41
39 DISALLOW_COPY_AND_ASSIGN(ViewManagerPrivate); 42 DISALLOW_COPY_AND_ASSIGN(ViewManagerPrivate);
40 }; 43 };
41 44
42 } // namespace view_manager 45 } // namespace view_manager
43 } // namespace services 46 } // namespace services
44 } // namespace mojo 47 } // namespace mojo
45 48
46 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_ 49 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698