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

Unified Diff: ui/display/display.h

Issue 2777343002: exo: Rotate cursor snapshot for rotated displays (Closed)
Patch Set: Created 3 years, 9 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 | « components/exo/pointer.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index c5290857bb7b34e70f5b3a56ccb4ced85e58bbd9..3dd8ca7acc0b73957454196fc7447679ef072917 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -101,6 +101,8 @@ class DISPLAY_EXPORT Display final {
float device_scale_factor() const { return device_scale_factor_; }
void set_device_scale_factor(float scale) { device_scale_factor_ = scale; }
+ static int RotationAsDegree(Rotation rotation);
oshima 2017/03/28 12:50:15 Can you rename to RotateToDegree, and move it afte
Dominik Laskowski 2017/03/30 01:17:15 Done.
+
Rotation rotation() const { return rotation_; }
void set_rotation(Rotation rotation) { rotation_ = rotation; }
int RotationAsDegree() const;
« no previous file with comments | « components/exo/pointer.cc ('k') | ui/display/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698