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

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

Issue 2918553003: Implement a MoveCursorToScreenLocation for just the window manager. (Closed)
Patch Set: Created 3 years, 6 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void SetCursorLocation(const gfx::Point& point);
72
71 void SetDragDropSourceWindow( 73 void SetDragDropSourceWindow(
72 DragSource* drag_source, 74 DragSource* drag_source,
73 ServerWindow* window, 75 ServerWindow* window,
74 DragTargetConnection* source_connection, 76 DragTargetConnection* source_connection,
75 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, 77 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data,
76 uint32_t drag_operation); 78 uint32_t drag_operation);
77 void CancelDragDrop(); 79 void CancelDragDrop();
78 void EndDragDrop(); 80 void EndDragDrop();
79 81
80 void AddSystemModalWindow(ServerWindow* window); 82 void AddSystemModalWindow(ServerWindow* window);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // All state regarding what the current cursor is. 316 // All state regarding what the current cursor is.
315 CursorState cursor_state_; 317 CursorState cursor_state_;
316 318
317 DISALLOW_COPY_AND_ASSIGN(WindowManagerState); 319 DISALLOW_COPY_AND_ASSIGN(WindowManagerState);
318 }; 320 };
319 321
320 } // namespace ws 322 } // namespace ws
321 } // namespace ui 323 } // namespace ui
322 324
323 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_ 325 #endif // SERVICES_UI_WS_WINDOW_MANAGER_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698