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

Unified Diff: components/exo/pointer.h

Issue 2777343002: exo: Rotate cursor snapshot for rotated displays (Closed)
Patch Set: Add comment Created 3 years, 7 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 | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.h
diff --git a/components/exo/pointer.h b/components/exo/pointer.h
index 1a1bca5a5c6cf64ac1e8f05c40054cb3766daedf..09b3517f3e0dd9177223e584daa4039817bd6c77 100644
--- a/components/exo/pointer.h
+++ b/components/exo/pointer.h
@@ -77,7 +77,7 @@ class Pointer : public ui::EventHandler,
void CaptureCursor();
// Called when cursor snapshot has been captured.
- void OnCursorCaptured(const gfx::Point& hotspot,
+ void OnCursorCaptured(gfx::Point hotspot,
std::unique_ptr<cc::CopyOutputResult> result);
void UpdateCursor(gfx::NativeCursor cursor);
@@ -103,6 +103,9 @@ class Pointer : public ui::EventHandler,
// Device scale factor of the display where the mouse is located.
float device_scale_factor_ = 1.0f;
+ // Rotation of the display where the mouse is located.
+ display::Display::Rotation rotation_ = display::Display::ROTATE_0;
+
// The position of the pointer surface relative to the pointer location.
gfx::Point hotspot_;
« no previous file with comments | « no previous file | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698