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

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

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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_SYNCHRONIZER_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 private: 64 private:
65 friend class ViewManagerTransaction; 65 friend class ViewManagerTransaction;
66 typedef ScopedVector<ViewManagerTransaction> Transactions; 66 typedef ScopedVector<ViewManagerTransaction> Transactions;
67 67
68 // Overridden from IViewManagerClient: 68 // Overridden from IViewManagerClient:
69 virtual void OnViewManagerConnectionEstablished( 69 virtual void OnViewManagerConnectionEstablished(
70 TransportConnectionId connection_id, 70 TransportConnectionId connection_id,
71 TransportChangeId next_server_change_id, 71 TransportChangeId next_server_change_id,
72 const mojo::Array<INode>& nodes) OVERRIDE; 72 mojo::Array<INodePtr> nodes) OVERRIDE;
73 virtual void OnServerChangeIdAdvanced( 73 virtual void OnServerChangeIdAdvanced(
74 uint32_t next_server_change_id) OVERRIDE; 74 uint32_t next_server_change_id) OVERRIDE;
75 virtual void OnNodeBoundsChanged(uint32 node_id, 75 virtual void OnNodeBoundsChanged(uint32 node_id,
76 const Rect& old_bounds, 76 RectPtr old_bounds,
77 const Rect& new_bounds) OVERRIDE; 77 RectPtr new_bounds) OVERRIDE;
78 virtual void OnNodeHierarchyChanged( 78 virtual void OnNodeHierarchyChanged(
79 uint32 node_id, 79 uint32 node_id,
80 uint32 new_parent_id, 80 uint32 new_parent_id,
81 uint32 old_parent_id, 81 uint32 old_parent_id,
82 TransportChangeId server_change_id, 82 TransportChangeId server_change_id,
83 const mojo::Array<INode>& nodes) OVERRIDE; 83 mojo::Array<INodePtr> nodes) OVERRIDE;
84 virtual void OnNodeDeleted(TransportNodeId node_id, 84 virtual void OnNodeDeleted(TransportNodeId node_id,
85 TransportChangeId server_change_id) OVERRIDE; 85 TransportChangeId server_change_id) OVERRIDE;
86 virtual void OnNodeViewReplaced(uint32_t node, 86 virtual void OnNodeViewReplaced(uint32_t node,
87 uint32_t new_view_id, 87 uint32_t new_view_id,
88 uint32_t old_view_id) OVERRIDE; 88 uint32_t old_view_id) OVERRIDE;
89 virtual void OnViewDeleted(uint32_t view_id) OVERRIDE; 89 virtual void OnViewDeleted(uint32_t view_id) OVERRIDE;
90 90
91 // Sync the client model with the service by enumerating the pending 91 // Sync the client model with the service by enumerating the pending
92 // transaction queue and applying them in order. 92 // transaction queue and applying them in order.
93 void Sync(); 93 void Sync();
(...skipping 20 matching lines...) Expand all
114 114
115 IViewManagerPtr service_; 115 IViewManagerPtr service_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); 117 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer);
118 }; 118 };
119 119
120 } // namespace view_manager 120 } // namespace view_manager
121 } // namespace mojo 121 } // namespace mojo
122 122
123 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H _ 123 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698