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

Side by Side Diff: mojo/services/view_manager/root_node_manager.h

Issue 316713002: Wire input events through the ViewManagerClient interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android 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_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 6 #define MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "mojo/public/cpp/bindings/array.h" 12 #include "mojo/public/cpp/bindings/array.h"
13 #include "mojo/services/view_manager/ids.h" 13 #include "mojo/services/view_manager/ids.h"
14 #include "mojo/services/view_manager/node.h" 14 #include "mojo/services/view_manager/node.h"
15 #include "mojo/services/view_manager/node_delegate.h" 15 #include "mojo/services/view_manager/node_delegate.h"
16 #include "mojo/services/view_manager/root_view_manager.h" 16 #include "mojo/services/view_manager/root_view_manager.h"
17 #include "mojo/services/view_manager/view_manager_export.h" 17 #include "mojo/services/view_manager/view_manager_export.h"
18 18
19 namespace ui {
20 class Event;
21 }
22
19 namespace mojo { 23 namespace mojo {
20 24
21 class ServiceProvider; 25 class ServiceProvider;
22 26
23 namespace view_manager { 27 namespace view_manager {
24 namespace service { 28 namespace service {
25 29
26 class RootViewManagerDelegate; 30 class RootViewManagerDelegate;
27 class View; 31 class View;
28 class ViewManagerConnection; 32 class ViewManagerConnection;
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 ViewManagerConnection* ConnectImpl(const String& url, 166 ViewManagerConnection* ConnectImpl(const String& url,
163 const Array<TransportNodeId>& node_ids); 167 const Array<TransportNodeId>& node_ids);
164 168
165 // Overridden from NodeDelegate: 169 // Overridden from NodeDelegate:
166 virtual void OnNodeHierarchyChanged(const Node* node, 170 virtual void OnNodeHierarchyChanged(const Node* node,
167 const Node* new_parent, 171 const Node* new_parent,
168 const Node* old_parent) OVERRIDE; 172 const Node* old_parent) OVERRIDE;
169 virtual void OnNodeViewReplaced(const Node* node, 173 virtual void OnNodeViewReplaced(const Node* node,
170 const View* new_view, 174 const View* new_view,
171 const View* old_view) OVERRIDE; 175 const View* old_view) OVERRIDE;
176 virtual void OnViewInputEvent(const View* view,
177 const ui::Event* event) OVERRIDE;
172 178
173 Context context_; 179 Context context_;
174 180
175 ServiceProvider* service_provider_; 181 ServiceProvider* service_provider_;
176 182
177 // ID to use for next ViewManagerConnection. 183 // ID to use for next ViewManagerConnection.
178 TransportConnectionId next_connection_id_; 184 TransportConnectionId next_connection_id_;
179 185
180 TransportChangeId next_server_change_id_; 186 TransportChangeId next_server_change_id_;
181 187
(...skipping 14 matching lines...) Expand all
196 ScopedChange* current_change_; 202 ScopedChange* current_change_;
197 203
198 DISALLOW_COPY_AND_ASSIGN(RootNodeManager); 204 DISALLOW_COPY_AND_ASSIGN(RootNodeManager);
199 }; 205 };
200 206
201 } // namespace service 207 } // namespace service
202 } // namespace view_manager 208 } // namespace view_manager
203 } // namespace mojo 209 } // namespace mojo
204 210
205 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_ 211 #endif // MOJO_SERVICES_VIEW_MANAGER_ROOT_NODE_MANAGER_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/node_delegate.h ('k') | mojo/services/view_manager/root_node_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698