| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ | 5 #ifndef UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ |
| 6 #define UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ | 6 #define UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ |
| 7 | 7 |
| 8 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" | 8 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h" |
| 9 #include "ui/gfx/geometry/point_f.h" | 9 #include "ui/gfx/geometry/point_f.h" |
| 10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, | 25 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, |
| 26 const gfx::PointF& location) = 0; | 26 const gfx::PointF& location) = 0; |
| 27 virtual void MoveCursorTo(const gfx::PointF& location) = 0; | 27 virtual void MoveCursorTo(const gfx::PointF& location) = 0; |
| 28 | 28 |
| 29 // Location in screen. | 29 // Location in screen. |
| 30 virtual gfx::PointF GetLocation() = 0; | 30 virtual gfx::PointF GetLocation() = 0; |
| 31 | 31 |
| 32 // Cursor visibility. | 32 // Cursor visibility. |
| 33 virtual bool IsCursorVisible() = 0; | 33 virtual bool IsCursorVisible() = 0; |
| 34 | 34 |
| 35 // The bounds of the display that the cursor is currently on | 35 // The bounds that the cursor is confined to. |
| 36 virtual gfx::Rect GetCursorDisplayBounds() = 0; | 36 virtual gfx::Rect GetCursorConfinedBounds() = 0; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace ui | 39 } // namespace ui |
| 40 | 40 |
| 41 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ | 41 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ |
| OLD | NEW |