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

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

Issue 802473003: Fix references to ui/gfx headers in a*/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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.h ('k') | ash/shelf/overflow_bubble_view.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/screen_rotation.h" 5 #include "ash/rotator/screen_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/interpolated_transform.h" 10 #include "ui/gfx/interpolated_transform.h"
10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 namespace { 15 namespace {
16 16
17 const int k90DegreeTransitionDurationMs = 350; 17 const int k90DegreeTransitionDurationMs = 350;
18 const int k180DegreeTransitionDurationMs = 550; 18 const int k180DegreeTransitionDurationMs = 550;
19 const int k360DegreeTransitionDurationMs = 750; 19 const int k360DegreeTransitionDurationMs = 750;
20 20
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 } 114 }
115 115
116 void ScreenRotation::OnGetTarget(TargetValue* target) const { 116 void ScreenRotation::OnGetTarget(TargetValue* target) const {
117 target->transform = interpolated_transform_->Interpolate(1.0); 117 target->transform = interpolated_transform_->Interpolate(1.0);
118 } 118 }
119 119
120 void ScreenRotation::OnAbort(ui::LayerAnimationDelegate* delegate) { 120 void ScreenRotation::OnAbort(ui::LayerAnimationDelegate* delegate) {
121 } 121 }
122 122
123 } // namespace ash 123 } // namespace ash
OLDNEW
« no previous file with comments | « ash/rotator/screen_rotation.h ('k') | ash/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698