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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 mojo::Array<INodePtr> 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 virtual void OnViewInputEvent(uint32_t view, |
| 91 EventPtr event, |
| 92 const Callback<void()>& callback) OVERRIDE; |
90 | 93 |
91 // Sync the client model with the service by enumerating the pending | 94 // Sync the client model with the service by enumerating the pending |
92 // transaction queue and applying them in order. | 95 // transaction queue and applying them in order. |
93 void Sync(); | 96 void Sync(); |
94 | 97 |
95 // Removes |transaction| from the pending queue. |transaction| must be at the | 98 // Removes |transaction| from the pending queue. |transaction| must be at the |
96 // front of the queue. | 99 // front of the queue. |
97 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); | 100 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); |
98 | 101 |
99 ViewManager* view_manager_; | 102 ViewManager* view_manager_; |
(...skipping 14 matching lines...) Expand all Loading... |
114 | 117 |
115 IViewManagerPtr service_; | 118 IViewManagerPtr service_; |
116 | 119 |
117 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); | 120 DISALLOW_COPY_AND_ASSIGN(ViewManagerSynchronizer); |
118 }; | 121 }; |
119 | 122 |
120 } // namespace view_manager | 123 } // namespace view_manager |
121 } // namespace mojo | 124 } // namespace mojo |
122 | 125 |
123 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H
_ | 126 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_SYNCHRONIZER_H
_ |
OLD | NEW |