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

Side by Side Diff: ui/events/ozone/evdev/cursor_delegate_evdev.h

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on ToT Created 6 years, 1 month 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 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 // Move the cursor. 20 // Move the cursor.
21 virtual void MoveCursor(const gfx::Vector2dF& delta) = 0; 21 virtual void MoveCursor(const gfx::Vector2dF& delta) = 0;
22 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, 22 virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
23 const gfx::PointF& location) = 0; 23 const gfx::PointF& location) = 0;
24 24
25 // Location in window. 25 // Location in window.
26 virtual gfx::PointF location() = 0; 26 virtual gfx::PointF location() = 0;
27 27
28 // Location in screen.
29 virtual gfx::PointF root_location() = 0;
30
28 // Cursor visibility. 31 // Cursor visibility.
29 virtual bool IsCursorVisible() = 0; 32 virtual bool IsCursorVisible() = 0;
30 }; 33 };
31 34
32 } // namespace ui 35 } // namespace ui
33 36
34 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_ 37 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698