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

Side by Side Diff: services/ui/public/interfaces/window_tree.mojom

Issue 2352233002: mus drag and drop: Add API to let the client cancel the drag. (Closed)
Patch Set: A bunch of dvlogs Created 4 years, 2 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
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/event_dispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 module ui.mojom; 5 module ui.mojom;
6 6
7 import "cc/ipc/surface_id.mojom"; 7 import "cc/ipc/surface_id.mojom";
8 import "services/ui/public/interfaces/cursor.mojom"; 8 import "services/ui/public/interfaces/cursor.mojom";
9 import "services/ui/public/interfaces/event_matcher.mojom"; 9 import "services/ui/public/interfaces/event_matcher.mojom";
10 import "services/ui/public/interfaces/mus_constants.mojom"; 10 import "services/ui/public/interfaces/mus_constants.mojom";
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 // Called by the client to start a drag operation. |source_window_id| is the 282 // Called by the client to start a drag operation. |source_window_id| is the
283 // source window, |drag_data| is the entire set of mime to raw data 283 // source window, |drag_data| is the entire set of mime to raw data
284 // mapping. We send this during the start of the drag because most views 284 // mapping. We send this during the start of the drag because most views
285 // clients will try to read all this data on first entry. 285 // clients will try to read all this data on first entry.
286 PerformDragDrop(uint32 change_id, 286 PerformDragDrop(uint32 change_id,
287 uint32 source_window_id, 287 uint32 source_window_id,
288 int32 drag_pointer, 288 int32 drag_pointer,
289 map<string, array<uint8>> drag_data, 289 map<string, array<uint8>> drag_data,
290 uint32 drag_operation); 290 uint32 drag_operation);
291
292 // Called by the client to cancel any in progress drag drop operation. This
293 // will result in a change completed for the underlying change.
294 CancelDragDrop(uint32 window_id);
291 }; 295 };
292 296
293 // Changes to windows are not sent to the connection that originated the 297 // Changes to windows are not sent to the connection that originated the
294 // change. For example, if connection 1 changes the bounds of a window by 298 // change. For example, if connection 1 changes the bounds of a window by
295 // calling SetWindowBounds(), connection 1 does not receive 299 // calling SetWindowBounds(), connection 1 does not receive
296 // OnWindowBoundsChanged(). 300 // OnWindowBoundsChanged().
297 interface WindowTreeClient { 301 interface WindowTreeClient {
298 // Invoked when the client application has been embedded at |root|. 302 // Invoked when the client application has been embedded at |root|.
299 // See Embed() on WindowTree for more details. |tree| will be a handle back to 303 // See Embed() on WindowTree for more details. |tree| will be a handle back to
300 // the window manager service, unless the connection is to the root connection 304 // the window manager service, unless the connection is to the root connection
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 // See description of WindowManager for details. 476 // See description of WindowManager for details.
473 GetWindowManager(associated WindowManager& internal); 477 GetWindowManager(associated WindowManager& internal);
474 }; 478 };
475 479
476 // Mus provides this interface as a way for clients to connect and obtain a 480 // Mus provides this interface as a way for clients to connect and obtain a
477 // WindowTree handle with a supplied WindowTreeClient handle. The 481 // WindowTree handle with a supplied WindowTreeClient handle. The
478 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one. 482 // WindowTreeClient has no roots, use NewTopLevelWindow() to create one.
479 interface WindowTreeFactory { 483 interface WindowTreeFactory {
480 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client); 484 CreateWindowTree(WindowTree& tree_request, WindowTreeClient client);
481 }; 485 };
OLDNEW
« no previous file with comments | « services/ui/public/cpp/window_tree_client.cc ('k') | services/ui/ws/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698