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

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

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear the implicit pointer drags before start. Created 4 years, 3 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 bool SetCapture(ServerWindow* window, ClientSpecificId client_id); 55 bool SetCapture(ServerWindow* window, ClientSpecificId client_id);
56 ServerWindow* capture_window() { return event_dispatcher_.capture_window(); } 56 ServerWindow* capture_window() { return event_dispatcher_.capture_window(); }
57 const ServerWindow* capture_window() const { 57 const ServerWindow* capture_window() const {
58 return event_dispatcher_.capture_window(); 58 return event_dispatcher_.capture_window();
59 } 59 }
60 60
61 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); 61 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window);
62 void ReleaseCaptureBlockedByAnyModalWindow(); 62 void ReleaseCaptureBlockedByAnyModalWindow();
63 63
64 void SetDragDropSourceWindow(
65 DragSource* drag_source,
66 ServerWindow* window,
67 int32_t drag_pointer,
68 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
69 uint32_t drag_operation);
70 void EndDragDrop();
71
64 void AddSystemModalWindow(ServerWindow* window); 72 void AddSystemModalWindow(ServerWindow* window);
65 73
66 // TODO(sky): EventDispatcher is really an implementation detail and should 74 // TODO(sky): EventDispatcher is really an implementation detail and should
67 // not be exposed. 75 // not be exposed.
68 EventDispatcher* event_dispatcher() { return &event_dispatcher_; } 76 EventDispatcher* event_dispatcher() { return &event_dispatcher_; }
69 77
70 // Returns true if this is the WindowManager of the active user. 78 // Returns true if this is the WindowManager of the active user.
71 bool IsActive() const; 79 bool IsActive() const;
72 80
73 void Activate(const gfx::Point& mouse_location_on_screen); 81 void Activate(const gfx::Point& mouse_location_on_screen);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 231
224 base::WeakPtrFactory<WindowManagerState> weak_factory_; 232 base::WeakPtrFactory<WindowManagerState> weak_factory_;
225 233
226 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 234 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
227 }; 235 };
228 236
229 } // namespace ws 237 } // namespace ws
230 } // namespace ui 238 } // namespace ui
231 239
232 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 240 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698