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

Side by Side Diff: services/ui/ws/window_manager_state.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/ws/event_dispatcher.cc ('k') | services/ui/ws/window_manager_state.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WINDOW_MANAGER_STATE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 6 #define SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); 64 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window);
65 void ReleaseCaptureBlockedByAnyModalWindow(); 65 void ReleaseCaptureBlockedByAnyModalWindow();
66 66
67 void SetDragDropSourceWindow( 67 void SetDragDropSourceWindow(
68 DragSource* drag_source, 68 DragSource* drag_source,
69 ServerWindow* window, 69 ServerWindow* window,
70 DragTargetConnection* source_connection, 70 DragTargetConnection* source_connection,
71 int32_t drag_pointer, 71 int32_t drag_pointer,
72 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, 72 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
73 uint32_t drag_operation); 73 uint32_t drag_operation);
74 void CancelDragDrop();
74 void EndDragDrop(); 75 void EndDragDrop();
75 76
76 void AddSystemModalWindow(ServerWindow* window); 77 void AddSystemModalWindow(ServerWindow* window);
77 78
78 // Returns the ServerWindow corresponding to an orphaned root with the 79 // Returns the ServerWindow corresponding to an orphaned root with the
79 // specified id. See |orphaned_window_manager_display_roots_| for details on 80 // specified id. See |orphaned_window_manager_display_roots_| for details on
80 // what on orphaned root is. 81 // what on orphaned root is.
81 ServerWindow* GetOrphanedRootWithId(const WindowId& id); 82 ServerWindow* GetOrphanedRootWithId(const WindowId& id);
82 83
83 // TODO(sky): EventDispatcher is really an implementation detail and should 84 // TODO(sky): EventDispatcher is really an implementation detail and should
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 267
267 base::WeakPtrFactory<WindowManagerState> weak_factory_; 268 base::WeakPtrFactory<WindowManagerState> weak_factory_;
268 269
269 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 270 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
270 }; 271 };
271 272
272 } // namespace ws 273 } // namespace ws
273 } // namespace ui 274 } // namespace ui
274 275
275 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 276 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698