OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |