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

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

Issue 320193002: Consolidates view_manager typedefs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 6 years, 6 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 11 matching lines...) Expand all
22 ViewManagerSynchronizer* synchronizer() { 22 ViewManagerSynchronizer* synchronizer() {
23 return manager_->synchronizer_; 23 return manager_->synchronizer_;
24 } 24 }
25 void set_synchronizer(ViewManagerSynchronizer* synchronizer) { 25 void set_synchronizer(ViewManagerSynchronizer* synchronizer) {
26 manager_->synchronizer_ = synchronizer; 26 manager_->synchronizer_ = synchronizer;
27 } 27 }
28 28
29 void AddRoot(ViewTreeNode* root); 29 void AddRoot(ViewTreeNode* root);
30 void RemoveRoot(ViewTreeNode* root); 30 void RemoveRoot(ViewTreeNode* root);
31 31
32 void AddNode(TransportNodeId node_id, ViewTreeNode* node); 32 void AddNode(Id node_id, ViewTreeNode* node);
33 void RemoveNode(TransportNodeId node_id); 33 void RemoveNode(Id node_id);
34 34
35 void AddView(TransportViewId view_id, View* view); 35 void AddView(Id view_id, View* view);
36 void RemoveView(TransportViewId view_id); 36 void RemoveView(Id view_id);
37 37
38 // Returns true if the ViewManager's synchronizer is connected to the service. 38 // Returns true if the ViewManager's synchronizer is connected to the service.
39 bool connected() { return manager_->synchronizer_->connected(); } 39 bool connected() { return manager_->synchronizer_->connected(); }
40 40
41 private: 41 private:
42 ViewManager* manager_; 42 ViewManager* manager_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(ViewManagerPrivate); 44 DISALLOW_COPY_AND_ASSIGN(ViewManagerPrivate);
45 }; 45 };
46 46
47 } // namespace view_manager 47 } // namespace view_manager
48 } // namespace mojo 48 } // namespace mojo
49 49
50 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_ 50 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698