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_CLIENT_IMPL_H_ | 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 OrderDirection direction, | 113 OrderDirection direction, |
114 Id server_change_id) OVERRIDE; | 114 Id server_change_id) OVERRIDE; |
115 virtual void OnNodeDeleted(Id node_id, Id server_change_id) OVERRIDE; | 115 virtual void OnNodeDeleted(Id node_id, Id server_change_id) OVERRIDE; |
116 virtual void OnNodeViewReplaced(Id node, | 116 virtual void OnNodeViewReplaced(Id node, |
117 Id new_view_id, | 117 Id new_view_id, |
118 Id old_view_id) OVERRIDE; | 118 Id old_view_id) OVERRIDE; |
119 virtual void OnViewDeleted(Id view_id) OVERRIDE; | 119 virtual void OnViewDeleted(Id view_id) OVERRIDE; |
120 virtual void OnViewInputEvent(Id view, | 120 virtual void OnViewInputEvent(Id view, |
121 EventPtr event, | 121 EventPtr event, |
122 const Callback<void()>& callback) OVERRIDE; | 122 const Callback<void()>& callback) OVERRIDE; |
| 123 virtual void DispatchOnViewInputEvent(Id view_id, EventPtr event) OVERRIDE; |
123 | 124 |
124 // Sync the client model with the service by enumerating the pending | 125 // Sync the client model with the service by enumerating the pending |
125 // transaction queue and applying them in order. | 126 // transaction queue and applying them in order. |
126 void Sync(); | 127 void Sync(); |
127 | 128 |
128 // Removes |transaction| from the pending queue. |transaction| must be at the | 129 // Removes |transaction| from the pending queue. |transaction| must be at the |
129 // front of the queue. | 130 // front of the queue. |
130 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); | 131 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); |
131 | 132 |
132 void AddRoot(Node* root); | 133 void AddRoot(Node* root); |
(...skipping 19 matching lines...) Expand all Loading... |
152 | 153 |
153 ViewManagerService* service_; | 154 ViewManagerService* service_; |
154 | 155 |
155 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 156 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
156 }; | 157 }; |
157 | 158 |
158 } // namespace view_manager | 159 } // namespace view_manager |
159 } // namespace mojo | 160 } // namespace mojo |
160 | 161 |
161 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 162 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
OLD | NEW |