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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 bool SetCapture(ServerWindow* window, ClientSpecificId client_id); | 62 bool SetCapture(ServerWindow* window, ClientSpecificId client_id); |
63 ServerWindow* capture_window() { return event_dispatcher_.capture_window(); } | 63 ServerWindow* capture_window() { return event_dispatcher_.capture_window(); } |
64 const ServerWindow* capture_window() const { | 64 const ServerWindow* capture_window() const { |
65 return event_dispatcher_.capture_window(); | 65 return event_dispatcher_.capture_window(); |
66 } | 66 } |
67 | 67 |
68 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); | 68 void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window); |
69 void ReleaseCaptureBlockedByAnyModalWindow(); | 69 void ReleaseCaptureBlockedByAnyModalWindow(); |
70 | 70 |
| 71 // Sets the location of the cursor to a location on display |display_id|. |
| 72 void SetCursorLocation(const gfx::Point& display_pixels, int64_t display_id); |
| 73 |
71 void SetDragDropSourceWindow( | 74 void SetDragDropSourceWindow( |
72 DragSource* drag_source, | 75 DragSource* drag_source, |
73 ServerWindow* window, | 76 ServerWindow* window, |
74 DragTargetConnection* source_connection, | 77 DragTargetConnection* source_connection, |
75 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 78 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
76 uint32_t drag_operation); | 79 uint32_t drag_operation); |
77 void CancelDragDrop(); | 80 void CancelDragDrop(); |
78 void EndDragDrop(); | 81 void EndDragDrop(); |
79 | 82 |
80 void AddSystemModalWindow(ServerWindow* window); | 83 void AddSystemModalWindow(ServerWindow* window); |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // All state regarding what the current cursor is. | 317 // All state regarding what the current cursor is. |
315 CursorState cursor_state_; | 318 CursorState cursor_state_; |
316 | 319 |
317 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); | 320 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); |
318 }; | 321 }; |
319 | 322 |
320 } // namespace ws | 323 } // namespace ws |
321 } // namespace ui | 324 } // namespace ui |
322 | 325 |
323 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ | 326 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ |
OLD | NEW |