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

Unified Diff: ash/rotator/screen_rotation_animator.h

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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 | « ash/display/root_window_transformers_unittest.cc ('k') | ash/rotator/screen_rotation_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/screen_rotation_animator.h
diff --git a/ash/rotator/screen_rotation_animator.h b/ash/rotator/screen_rotation_animator.h
index 055e755906dc483d95f4da29cc666749d893eb66..89c17848f46127fa81b3838751a1f779992b3884 100644
--- a/ash/rotator/screen_rotation_animator.h
+++ b/ash/rotator/screen_rotation_animator.h
@@ -17,8 +17,10 @@ class ASH_EXPORT ScreenRotationAnimator {
explicit ScreenRotationAnimator(int64 display_id);
~ScreenRotationAnimator();
- // Rotates |display_| to the |new_rotation| orientation.
- void Rotate(gfx::Display::Rotation new_rotation);
+ // Rotates |display_| to the |new_rotation| orientation, for the given
+ // |source|. The rotation will also become active.
+ void Rotate(gfx::Display::Rotation new_rotation,
+ gfx::Display::RotationSource source);
private:
// The id of the display to rotate.
« no previous file with comments | « ash/display/root_window_transformers_unittest.cc ('k') | ash/rotator/screen_rotation_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698