OLD | NEW |
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 void ClearChangesAckedCallback() { | 60 void ClearChangesAckedCallback() { |
61 changes_acked_callback_ = base::Callback<void(void)>(); | 61 changes_acked_callback_ = base::Callback<void(void)>(); |
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 OnConnectionEstablished( | 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 const mojo::Array<INode>& 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 const Rect& old_bounds, |
77 const Rect& new_bounds) OVERRIDE; | 77 const Rect& new_bounds) OVERRIDE; |
78 virtual void OnNodeHierarchyChanged( | 78 virtual void OnNodeHierarchyChanged( |
79 uint32 node_id, | 79 uint32 node_id, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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
_ |
OLD | NEW |