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

Side by Side Diff: ash/rotator/window_rotation.cc

Issue 2291923002: Check target value
Patch Set: Test Created 4 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 unified diff | Download patch
« no previous file with comments | « ash/rotator/window_rotation.h ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/rotator/window_rotation.h" 5 #include "ash/rotator/window_rotation.h"
6 6
7 #include "base/time/time.h" 7 #include "base/time/time.h"
8 #include "ui/compositor/layer.h" 8 #include "ui/compositor/layer.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/interpolated_transform.h" 10 #include "ui/gfx/interpolated_transform.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 delegate->SetTransformFromAnimation(interpolated_transform_->Interpolate(t)); 108 delegate->SetTransformFromAnimation(interpolated_transform_->Interpolate(t));
109 return true; 109 return true;
110 } 110 }
111 111
112 void WindowRotation::OnGetTarget(TargetValue* target) const { 112 void WindowRotation::OnGetTarget(TargetValue* target) const {
113 target->transform = interpolated_transform_->Interpolate(1.0); 113 target->transform = interpolated_transform_->Interpolate(1.0);
114 } 114 }
115 115
116 void WindowRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {} 116 void WindowRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {}
117 117
118 bool WindowRotation::AreStartAndTargetSame() {
119 return false;
120 }
121
118 } // namespace ash 122 } // namespace ash
OLDNEW
« no previous file with comments | « ash/rotator/window_rotation.h ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698