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

Unified Diff: ui/ozone/platform/dri/dri_cursor.h

Issue 556073003: [Ozone-DRI] Do proper bounds checks when moving the cursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@restore-cursor
Patch Set: . 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_cursor.h
diff --git a/ui/ozone/platform/dri/dri_cursor.h b/ui/ozone/platform/dri/dri_cursor.h
index ece6b423138bd862e1b701faa88507b24d318046..949584cbc2ad5ce9062865f869fca0652d52df94 100644
--- a/ui/ozone/platform/dri/dri_cursor.h
+++ b/ui/ozone/platform/dri/dri_cursor.h
@@ -19,11 +19,13 @@ namespace ui {
class BitmapCursorOzone;
class BitmapCursorFactoryOzone;
+class DriWindowManager;
class HardwareCursorDelegate;
class DriCursor : public CursorDelegateEvdev {
public:
- explicit DriCursor(HardwareCursorDelegate* hardware);
+ explicit DriCursor(HardwareCursorDelegate* hardware,
+ DriWindowManager* window_manager);
virtual ~DriCursor();
void SetCursor(gfx::AcceleratedWidget widget, PlatformCursor platform_cursor);
@@ -45,6 +47,8 @@ class DriCursor : public CursorDelegateEvdev {
// The DRI implementation for setting the hardware cursor.
HardwareCursorDelegate* hardware_;
+ DriWindowManager* window_manager_; // Not owned.
+
// The current cursor bitmap.
scoped_refptr<BitmapCursorOzone> cursor_;
« no previous file with comments | « ui/ozone/platform/dri/dri.gypi ('k') | ui/ozone/platform/dri/dri_cursor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698