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

Side by Side Diff: ui/ozone/platform/dri/cursor_factory_evdev_dri.h

Issue 527293002: ozone: Remove CursorFactoryOzone::SetCursor, GetCursorWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months 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
« no previous file with comments | « ui/ozone/platform/dri/BUILD.gn ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef UI_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
7
8 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h"
9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
10 #include "ui/gfx/geometry/point.h"
11 #include "ui/gfx/geometry/point_f.h"
12 #include "ui/gfx/geometry/rect_f.h"
13 #include "ui/gfx/native_widget_types.h"
14
15 namespace ui {
16
17 class HardwareCursorDelegate;
18
19 class CursorFactoryEvdevDri : public BitmapCursorFactoryOzone,
20 public CursorDelegateEvdev {
21 public:
22 CursorFactoryEvdevDri(HardwareCursorDelegate* cursor);
23 virtual ~CursorFactoryEvdevDri();
24
25 // BitmapCursorFactoryOzone:
26 virtual gfx::AcceleratedWidget GetCursorWindow() OVERRIDE;
27 virtual void SetBitmapCursor(gfx::AcceleratedWidget widget,
28 scoped_refptr<BitmapCursorOzone> cursor)
29 OVERRIDE;
30
31 // CursorDelegateEvdev:
32 virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
33 const gfx::PointF& location) OVERRIDE;
34 virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE;
35 virtual bool IsCursorVisible() OVERRIDE;
36 virtual gfx::PointF location() OVERRIDE;
37
38 private:
39 // The location of the bitmap (the cursor location is the hotspot location).
40 gfx::Point bitmap_location();
41
42 // The DRI implementation for setting the hardware cursor.
43 HardwareCursorDelegate* hardware_;
44
45 // The current cursor bitmap.
46 scoped_refptr<BitmapCursorOzone> cursor_;
47
48 // The window under the cursor.
49 gfx::AcceleratedWidget cursor_window_;
50
51 // The location of the cursor within the window.
52 gfx::PointF cursor_location_;
53 };
54
55 } // namespace ui
56
57 #endif // UI_OZONE_PLATFORM_DRI_CURSOR_FACTORY_EVDEV_DRI_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/BUILD.gn ('k') | ui/ozone/platform/dri/cursor_factory_evdev_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698