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

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: Remove stray mark 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 CurrentDragOperationSource* drag_source,
66 ServerWindow* window,
67 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data,
68 uint32_t drag_operation);
69 void EndDragDrop();
70
64 void AddSystemModalWindow(ServerWindow* window); 71 void AddSystemModalWindow(ServerWindow* window);
65 72
66 // TODO(sky): EventDispatcher is really an implementation detail and should 73 // TODO(sky): EventDispatcher is really an implementation detail and should
67 // not be exposed. 74 // not be exposed.
68 EventDispatcher* event_dispatcher() { return &event_dispatcher_; } 75 EventDispatcher* event_dispatcher() { return &event_dispatcher_; }
69 76
70 // Returns true if this is the WindowManager of the active user. 77 // Returns true if this is the WindowManager of the active user.
71 bool IsActive() const; 78 bool IsActive() const;
72 79
73 void Activate(const gfx::Point& mouse_location_on_screen); 80 void Activate(const gfx::Point& mouse_location_on_screen);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 230
224 base::WeakPtrFactory<WindowManagerState> weak_factory_; 231 base::WeakPtrFactory<WindowManagerState> weak_factory_;
225 232
226 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 233 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
227 }; 234 };
228 235
229 } // namespace ws 236 } // namespace ws
230 } // namespace ui 237 } // namespace ui
231 238
232 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 239 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698