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

Unified Diff: ash/rotator/screen_rotation_animation.cc

Issue 1360863004: Snap screen rotation animation layers to final position if the animation is aborted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 years, 3 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/ash.gyp ('k') | ash/rotator/screen_rotation_animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/rotator/screen_rotation_animation.cc
diff --git a/ash/rotator/screen_rotation_animation.cc b/ash/rotator/screen_rotation_animation.cc
index d4ca5193c46ec5414ef2163c49277e053e40aae5..bd4da81314476d683e4b57de213c23978929091e 100644
--- a/ash/rotator/screen_rotation_animation.cc
+++ b/ash/rotator/screen_rotation_animation.cc
@@ -68,6 +68,9 @@ void ScreenRotationAnimation::OnGetTarget(TargetValue* target) const {
}
void ScreenRotationAnimation::OnAbort(ui::LayerAnimationDelegate* delegate) {
+ TargetValue target_value;
+ OnGetTarget(&target_value);
+ delegate->SetTransformFromAnimation(target_value.transform);
}
} // namespace ash
« no previous file with comments | « ash/ash.gyp ('k') | ash/rotator/screen_rotation_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698