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

Unified Diff: components/exo/pointer.h

Issue 2777343002: exo: Rotate cursor snapshot for rotated displays (Closed)
Patch Set: Rebase Created 3 years, 8 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 0757188311a94662ae9e53befd9c899e9e5e8547..a89a364ab3aca5f5c9a583460a575a80cdd0d615 100644
--- a/components/exo/pointer.h
+++ b/components/exo/pointer.h
@@ -76,7 +76,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);
@@ -101,6 +101,7 @@ class Pointer : public ui::EventHandler,
// Device scale factor of the display where the mouse is located.
float device_scale_factor_ = 1.0f;
+ display::Display::Rotation rotation_ = display::Display::ROTATE_0;
reveman 2017/04/28 21:27:42 nit: please give this a blank line and short comme
Dominik Laskowski 2017/05/06 00:37:16 Done.
// 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