| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EVENT_DISPATCHER_H_ | 5 #ifndef SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ | 6 #define SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // any events to the delegate. | 59 // any events to the delegate. |
| 60 void Reset(); | 60 void Reset(); |
| 61 | 61 |
| 62 void SetMousePointerScreenLocation(const gfx::Point& screen_location); | 62 void SetMousePointerScreenLocation(const gfx::Point& screen_location); |
| 63 const gfx::Point& mouse_pointer_last_location() const { | 63 const gfx::Point& mouse_pointer_last_location() const { |
| 64 return mouse_pointer_last_location_; | 64 return mouse_pointer_last_location_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 // Returns the cursor for the current target, or POINTER if the mouse is not | 67 // Returns the cursor for the current target, or POINTER if the mouse is not |
| 68 // over a valid target. | 68 // over a valid target. |
| 69 ui::mojom::CursorType GetCurrentMouseCursor() const; | 69 ui::CursorData GetCurrentMouseCursor() const; |
| 70 | 70 |
| 71 // |capture_window_| will receive all input. See window_tree.mojom for | 71 // |capture_window_| will receive all input. See window_tree.mojom for |
| 72 // details. | 72 // details. |
| 73 ServerWindow* capture_window() { return capture_window_; } | 73 ServerWindow* capture_window() { return capture_window_; } |
| 74 const ServerWindow* capture_window() const { return capture_window_; } | 74 const ServerWindow* capture_window() const { return capture_window_; } |
| 75 // Setting capture can fail if the window is blocked by a modal window | 75 // Setting capture can fail if the window is blocked by a modal window |
| 76 // (indicated by returning |false|). | 76 // (indicated by returning |false|). |
| 77 bool SetCaptureWindow(ServerWindow* capture_window, | 77 bool SetCaptureWindow(ServerWindow* capture_window, |
| 78 ClientSpecificId client_id); | 78 ClientSpecificId client_id); |
| 79 | 79 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 AcceleratorMatchPhase::ANY; | 287 AcceleratorMatchPhase::ANY; |
| 288 #endif | 288 #endif |
| 289 | 289 |
| 290 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); | 290 DISALLOW_COPY_AND_ASSIGN(EventDispatcher); |
| 291 }; | 291 }; |
| 292 | 292 |
| 293 } // namespace ws | 293 } // namespace ws |
| 294 } // namespace ui | 294 } // namespace ui |
| 295 | 295 |
| 296 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ | 296 #endif // SERVICES_UI_WS_EVENT_DISPATCHER_H_ |
| OLD | NEW |