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

Unified Diff: ash/rotator/screen_rotation_animation.cc

Issue 1315573003: Snap screen rotation animation layers to final position if the animation is aborted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added // AshTestBase: to override list. 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 eaabe2efdca545596edeec7e2ffd352e52c11182..cc8698d4351b9019a641dffdae42512962760ec0 100644
--- a/ash/rotator/screen_rotation_animation.cc
+++ b/ash/rotator/screen_rotation_animation.cc
@@ -61,6 +61,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