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" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 class Vector2dF; | 13 class Vector2dF; |
14 } | 14 } |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 class EVENTS_OZONE_EVDEV_EXPORT CursorDelegateEvdev { | 18 class EVENTS_OZONE_EVDEV_EXPORT CursorDelegateEvdev { |
19 public: | 19 public: |
20 virtual ~CursorDelegateEvdev() {} | 20 virtual ~CursorDelegateEvdev() {} |
21 | 21 |
22 // Move the cursor. | 22 // Move the cursor. |
23 virtual void MoveCursor(const gfx::Vector2dF& delta) = 0; | 23 virtual void MoveCursor(const gfx::Vector2dF& delta) = 0; |
24 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, | 24 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, |
25 const gfx::PointF& location) = 0; | 25 const gfx::PointF& location) = 0; |
26 | 26 |
27 // Location in window. | 27 // Location in window. |
28 virtual gfx::PointF location() = 0; | 28 virtual gfx::PointF location() = 0; |
29 | 29 |
30 // Location in screen. | |
31 virtual gfx::PointF root_location() = 0; | |
sadrul
2014/11/11 14:41:14
virtual functions shouldn't be in unix_hacker_styl
llandwerlin-old
2014/11/11 18:29:17
Done.
| |
32 | |
30 // Cursor visibility. | 33 // Cursor visibility. |
31 virtual bool IsCursorVisible() = 0; | 34 virtual bool IsCursorVisible() = 0; |
32 }; | 35 }; |
33 | 36 |
34 } // namespace ui | 37 } // namespace ui |
35 | 38 |
36 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ | 39 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ |
OLD | NEW |