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

Side by Side Diff: services/ui/ws/event_dispatcher.h

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/interfaces/window_tree.mojom ('k') | services/ui/ws/event_dispatcher.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_WS_EVENT_DISPATCHER_H_ 5 #ifndef SERVICES_UI_WS_EVENT_DISPATCHER_H_
6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 return capture_window_client_id_; 79 return capture_window_client_id_;
80 } 80 }
81 81
82 void SetDragDropSourceWindow( 82 void SetDragDropSourceWindow(
83 DragSource* drag_source, 83 DragSource* drag_source,
84 ServerWindow* window, 84 ServerWindow* window,
85 DragTargetConnection* source_connection, 85 DragTargetConnection* source_connection,
86 int32_t drag_pointer, 86 int32_t drag_pointer,
87 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data, 87 mojo::Map<mojo::String, mojo::Array<uint8_t>> mime_data,
88 uint32_t drag_operations); 88 uint32_t drag_operations);
89 void CancelDragDrop();
89 void EndDragDrop(); 90 void EndDragDrop();
90 91
91 void OnWillDestroyDragTargetConnection(DragTargetConnection* connection); 92 void OnWillDestroyDragTargetConnection(DragTargetConnection* connection);
92 93
93 // Adds a system modal window. The window remains modal to system until it is 94 // Adds a system modal window. The window remains modal to system until it is
94 // destroyed. There can exist multiple system modal windows, in which case the 95 // destroyed. There can exist multiple system modal windows, in which case the
95 // one that is visible and added most recently or shown most recently would be 96 // one that is visible and added most recently or shown most recently would be
96 // the active one. 97 // the active one.
97 void AddSystemModalWindow(ServerWindow* window); 98 void AddSystemModalWindow(ServerWindow* window);
98 99
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 AcceleratorMatchPhase::ANY; 266 AcceleratorMatchPhase::ANY;
266 #endif 267 #endif
267 268
268 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); 269 DISALLOW_COPY_AND_ASSIGN(EventDispatcher);
269 }; 270 };
270 271
271 } // namespace ws 272 } // namespace ws
272 } // namespace ui 273 } // namespace ui
273 274
274 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ 275 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « services/ui/public/interfaces/window_tree.mojom ('k') | services/ui/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698