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

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

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/screen_rotation_animation.cc ('k') | ash/rotator/window_rotation.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 #ifndef ASH_WINDOW_ROTATION_H_ 5 #ifndef ASH_WINDOW_ROTATION_H_
6 #define ASH_WINDOW_ROTATION_H_ 6 #define ASH_WINDOW_ROTATION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 26 matching lines...) Expand all
37 private: 37 private:
38 // Generates the intermediate transformation matrices used during the 38 // Generates the intermediate transformation matrices used during the
39 // animation. 39 // animation.
40 void InitTransform(ui::Layer* layer); 40 void InitTransform(ui::Layer* layer);
41 41
42 // Implementation of ui::LayerAnimationDelegate 42 // Implementation of ui::LayerAnimationDelegate
43 void OnStart(ui::LayerAnimationDelegate* delegate) override; 43 void OnStart(ui::LayerAnimationDelegate* delegate) override;
44 bool OnProgress(double t, ui::LayerAnimationDelegate* delegate) override; 44 bool OnProgress(double t, ui::LayerAnimationDelegate* delegate) override;
45 void OnGetTarget(TargetValue* target) const override; 45 void OnGetTarget(TargetValue* target) const override;
46 void OnAbort(ui::LayerAnimationDelegate* delegate) override; 46 void OnAbort(ui::LayerAnimationDelegate* delegate) override;
47 bool AreStartAndTargetSame() override;
47 48
48 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_; 49 std::unique_ptr<ui::InterpolatedTransform> interpolated_transform_;
49 50
50 // The number of degrees to rotate. 51 // The number of degrees to rotate.
51 int degrees_; 52 int degrees_;
52 53
53 // The target origin. 54 // The target origin.
54 gfx::Point new_origin_; 55 gfx::Point new_origin_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(WindowRotation); 57 DISALLOW_COPY_AND_ASSIGN(WindowRotation);
57 }; 58 };
58 59
59 } // namespace ash 60 } // namespace ash
60 61
61 #endif // ASH_WINDOW_ROTATION_H_ 62 #endif // ASH_WINDOW_ROTATION_H_
OLDNEW
« no previous file with comments | « ash/rotator/screen_rotation_animation.cc ('k') | ash/rotator/window_rotation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698