| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 OrderDirection direction) OVERRIDE; | 116 OrderDirection direction) OVERRIDE; |
| 117 virtual void OnNodeDeleted(Id node_id) OVERRIDE; | 117 virtual void OnNodeDeleted(Id node_id) OVERRIDE; |
| 118 virtual void OnNodeViewReplaced(Id node, | 118 virtual void OnNodeViewReplaced(Id node, |
| 119 Id new_view_id, | 119 Id new_view_id, |
| 120 Id old_view_id) OVERRIDE; | 120 Id old_view_id) OVERRIDE; |
| 121 virtual void OnViewDeleted(Id view_id) OVERRIDE; | 121 virtual void OnViewDeleted(Id view_id) OVERRIDE; |
| 122 virtual void OnViewInputEvent(Id view, | 122 virtual void OnViewInputEvent(Id view, |
| 123 EventPtr event, | 123 EventPtr event, |
| 124 const Callback<void()>& callback) OVERRIDE; | 124 const Callback<void()>& callback) OVERRIDE; |
| 125 virtual void OnFocusChanged(Id gained_focus_id, Id lost_focus_id) OVERRIDE; | 125 virtual void OnFocusChanged(Id gained_focus_id, Id lost_focus_id) OVERRIDE; |
| 126 virtual void EmbedRoot(const String& url) OVERRIDE; | 126 virtual void Embed(const String& url) OVERRIDE; |
| 127 virtual void DispatchOnViewInputEvent(Id view_id, EventPtr event) OVERRIDE; | 127 virtual void DispatchOnViewInputEvent(Id view_id, EventPtr event) OVERRIDE; |
| 128 | 128 |
| 129 // Sync the client model with the service by enumerating the pending | 129 // Sync the client model with the service by enumerating the pending |
| 130 // transaction queue and applying them in order. | 130 // transaction queue and applying them in order. |
| 131 void Sync(); | 131 void Sync(); |
| 132 | 132 |
| 133 // Removes |transaction| from the pending queue. |transaction| must be at the | 133 // Removes |transaction| from the pending queue. |transaction| must be at the |
| 134 // front of the queue. | 134 // front of the queue. |
| 135 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); | 135 void RemoveFromPendingQueue(ViewManagerTransaction* transaction); |
| 136 | 136 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 157 | 157 |
| 158 ViewManagerService* service_; | 158 ViewManagerService* service_; |
| 159 | 159 |
| 160 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); | 160 DISALLOW_COPY_AND_ASSIGN(ViewManagerClientImpl); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace view_manager | 163 } // namespace view_manager |
| 164 } // namespace mojo | 164 } // namespace mojo |
| 165 | 165 |
| 166 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ | 166 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_LIB_VIEW_MANAGER_CLIENT_IMPL_H_ |
| OLD | NEW |