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

Unified Diff: ui/ozone/platform/dri/dri_cursor.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: Change GetBounds() visibility from public to protected 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 side-by-side diff with in-line comments
Download patch
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 4cea2d8822a23b70c74055ade662737d2a49a6d7..95b767023ce0fb92542b40063814d3d5ff06f69e 100644
--- a/ui/ozone/platform/dri/dri_cursor.h
+++ b/ui/ozone/platform/dri/dri_cursor.h
@@ -42,6 +42,7 @@ class DriCursor : public CursorDelegateEvdev {
void MoveCursor(const gfx::Vector2dF& delta) override;
bool IsCursorVisible() override;
gfx::PointF location() override;
+ gfx::PointF root_location() override;
private:
// The location of the bitmap (the cursor location is the hotspot location).
@@ -60,6 +61,9 @@ class DriCursor : public CursorDelegateEvdev {
// The location of the cursor within the window.
gfx::PointF cursor_location_;
+
+ // The location of the cursor within the screen.
+ gfx::PointF cursor_root_location_;
};
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698