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

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

Issue 543643003: ozone: Plumb animated cursors from BitmapCursorFactoryOzone to DriSurfaceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix dri_surface_factory_unittest 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/common/gpu/ozone_gpu_messages.h ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ 6 #define UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "ui/base/cursor/cursor.h" 9 #include "ui/base/cursor/cursor.h"
10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 10 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
(...skipping 19 matching lines...) Expand all
30 gfx::AcceleratedWidget GetCursorWindow(); 30 gfx::AcceleratedWidget GetCursorWindow();
31 31
32 // CursorDelegateEvdev: 32 // CursorDelegateEvdev:
33 virtual void MoveCursorTo(gfx::AcceleratedWidget widget, 33 virtual void MoveCursorTo(gfx::AcceleratedWidget widget,
34 const gfx::PointF& location) OVERRIDE; 34 const gfx::PointF& location) OVERRIDE;
35 virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE; 35 virtual void MoveCursor(const gfx::Vector2dF& delta) OVERRIDE;
36 virtual bool IsCursorVisible() OVERRIDE; 36 virtual bool IsCursorVisible() OVERRIDE;
37 virtual gfx::PointF location() OVERRIDE; 37 virtual gfx::PointF location() OVERRIDE;
38 38
39 private: 39 private:
40 void UnsetCursor(gfx::AcceleratedWidget widget);
41
40 // The location of the bitmap (the cursor location is the hotspot location). 42 // The location of the bitmap (the cursor location is the hotspot location).
41 gfx::Point bitmap_location(); 43 gfx::Point bitmap_location();
42 44
43 // The DRI implementation for setting the hardware cursor. 45 // The DRI implementation for setting the hardware cursor.
44 HardwareCursorDelegate* hardware_; 46 HardwareCursorDelegate* hardware_;
45 47
46 // The current cursor bitmap. 48 // The current cursor bitmap.
47 scoped_refptr<BitmapCursorOzone> cursor_; 49 scoped_refptr<BitmapCursorOzone> cursor_;
48 50
49 // The window under the cursor. 51 // The window under the cursor.
50 gfx::AcceleratedWidget cursor_window_; 52 gfx::AcceleratedWidget cursor_window_;
51 53
52 // The location of the cursor within the window. 54 // The location of the cursor within the window.
53 gfx::PointF cursor_location_; 55 gfx::PointF cursor_location_;
54 }; 56 };
55 57
56 } // namespace ui 58 } // namespace ui
57 59
58 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_ 60 #endif // UI_OZONE_PLATFORM_DRI_DRI_CURSOR_H_
OLDNEW
« no previous file with comments | « ui/ozone/common/gpu/ozone_gpu_messages.h ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698