base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / events / ozone / evdev / cursor_delegate_evdev.h
blob98f96b5ddf9191e7cefc5185c0a635235bd4775f
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
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_
6 #define UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_
8 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
9 #include "ui/gfx/geometry/point_f.h"
10 #include "ui/gfx/native_widget_types.h"
12 namespace gfx {
13 class Vector2dF;
14 class Rect;
17 namespace ui {
19 class EVENTS_OZONE_EVDEV_EXPORT CursorDelegateEvdev {
20 public:
21 virtual ~CursorDelegateEvdev() {}
23 // Move the cursor.
24 virtual void MoveCursor(const gfx::Vector2dF& delta) = 0;
25 virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
26 const gfx::PointF& location) = 0;
27 virtual void MoveCursorTo(const gfx::PointF& location) = 0;
29 // Location in screen.
30 virtual gfx::PointF GetLocation() = 0;
32 // Cursor visibility.
33 virtual bool IsCursorVisible() = 0;
35 // The bounds of the display that the cursor is currently on
36 virtual gfx::Rect GetCursorDisplayBounds() = 0;
39 } // namespace ui
41 #endif // UI_EVENTS_OZONE_EVDEV_CURSOR_DELEGATE_EVDEV_H_