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

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: Remove explicit gfx::Rect to gfx::RectF conversion 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 177ad9c33f06523e917c323cdc58dd67cea8e936..36558668b5b089dd25930f48e33b4965b34f794b 100644
--- a/ui/ozone/platform/dri/dri_cursor.h
+++ b/ui/ozone/platform/dri/dri_cursor.h
@@ -43,7 +43,8 @@ class DriCursor : public CursorDelegateEvdev {
void MoveCursorTo(const gfx::PointF& location) override;
void MoveCursor(const gfx::Vector2dF& delta) override;
bool IsCursorVisible() override;
- gfx::PointF location() override;
+ gfx::PointF GetLocation() override;
+ gfx::PointF GetRootLocation() override;
gfx::Rect GetCursorDisplayBounds() override;
private:
@@ -63,6 +64,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