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

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

Powered by Google App Engine
This is Rietveld 408576698