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

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

Issue 300863003: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: , 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698