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

Side by Side Diff: mojo/services/public/interfaces/view_manager/view_manager.mojom

Issue 338353006: Changes routing of input events in view manager (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 import "../geometry/geometry.mojom" 5 import "../geometry/geometry.mojom"
6 import "../input_events/input_events.mojom" 6 import "../input_events/input_events.mojom"
7 import "view_manager_constants.mojom" 7 import "view_manager_constants.mojom"
8 8
9 module mojo.view_manager { 9 module mojo.view_manager {
10 10
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // Embeds the app at |url| in the specified nodes. More specifically this 112 // Embeds the app at |url| in the specified nodes. More specifically this
113 // creates a new connection to the specified url, expecting to get an 113 // creates a new connection to the specified url, expecting to get an
114 // ViewManagerClient and configures it with the root nodes |nodes|. Fails 114 // ViewManagerClient and configures it with the root nodes |nodes|. Fails
115 // if |nodes| is empty or contains nodes that were not created by this 115 // if |nodes| is empty or contains nodes that were not created by this
116 // connection. 116 // connection.
117 // If a particular client invokes Embed() multiple times with the same url, 117 // If a particular client invokes Embed() multiple times with the same url,
118 // the connection is reused. When this happens the ViewManagerClient is 118 // the connection is reused. When this happens the ViewManagerClient is
119 // notified of the additional roots by way of OnRootsAdded(). 119 // notified of the additional roots by way of OnRootsAdded().
120 Embed(string url, uint32[] nodes) => (bool success); 120 Embed(string url, uint32[] nodes) => (bool success);
121
122 // TODO(sky): move these to a separate interface when FIFO works.
123
124 // Sends OnViewInputEvent() to the owner of the specified view.
125 DispatchOnViewInputEvent(uint32 view_id, mojo.Event event);
121 }; 126 };
122 127
123 // Changes to nodes/views are not sent to the connection that originated the 128 // Changes to nodes/views are not sent to the connection that originated the
124 // change. For example, if connection 1 attaches a view to a node (SetView()) 129 // change. For example, if connection 1 attaches a view to a node (SetView())
125 // connection 1 does not receive OnNodeViewReplaced(). 130 // connection 1 does not receive OnNodeViewReplaced().
126 [Client=ViewManagerService] 131 [Client=ViewManagerService]
127 interface ViewManagerClient { 132 interface ViewManagerClient {
128 // Invoked once the connection has been established. |connection_id| is the id 133 // Invoked once the connection has been established. |connection_id| is the id
129 // that uniquely identifies this connection. |next_server_change_id| is the 134 // that uniquely identifies this connection. |next_server_change_id| is the
130 // id of the next change the server is expecting. |nodes| are the nodes 135 // id of the next change the server is expecting. |nodes| are the nodes
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 177
173 // Invoked when the view associated with a node is replaced by another view. 178 // Invoked when the view associated with a node is replaced by another view.
174 // 0 is used to identify a null view. 179 // 0 is used to identify a null view.
175 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id); 180 OnNodeViewReplaced(uint32 node, uint32 new_view_id, uint32 old_view_id);
176 181
177 // Invoked when a view is deleted. 182 // Invoked when a view is deleted.
178 OnViewDeleted(uint32 view); 183 OnViewDeleted(uint32 view);
179 184
180 // Invoked when an event is targeted at the specified view. 185 // Invoked when an event is targeted at the specified view.
181 OnViewInputEvent(uint32 view, mojo.Event event) => (); 186 OnViewInputEvent(uint32 view, mojo.Event event) => ();
187
188 // TODO(sky): move to separate interface when FIFO sorted out.
189
190 DispatchOnViewInputEvent(uint32 view, mojo.Event event);
182 }; 191 };
183 192
184 } 193 }
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc ('k') | mojo/services/view_manager/ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698