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

Side by Side Diff: ui/base/animation/tween.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ui/base/animation/animation.cc ('k') | ui/base/clipboard/clipboard.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/base/animation/tween.h" 5 #include "ui/base/animation/tween.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <float.h> 10 #include <float.h>
11 #endif 11 #endif
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "gfx/rect.h" 14 #include "ui/gfx/rect.h"
15 15
16 namespace ui { 16 namespace ui {
17 17
18 // static 18 // static
19 double Tween::CalculateValue(Tween::Type type, double state) { 19 double Tween::CalculateValue(Tween::Type type, double state) {
20 DCHECK_GE(state, 0); 20 DCHECK_GE(state, 0);
21 DCHECK_LE(state, 1); 21 DCHECK_LE(state, 1);
22 22
23 switch (type) { 23 switch (type) {
24 case EASE_IN: 24 case EASE_IN:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const gfx::Rect& target_bounds) { 77 const gfx::Rect& target_bounds) {
78 return gfx::Rect(ValueBetween(value, start_bounds.x(), target_bounds.x()), 78 return gfx::Rect(ValueBetween(value, start_bounds.x(), target_bounds.x()),
79 ValueBetween(value, start_bounds.y(), target_bounds.y()), 79 ValueBetween(value, start_bounds.y(), target_bounds.y()),
80 ValueBetween(value, start_bounds.width(), 80 ValueBetween(value, start_bounds.width(),
81 target_bounds.width()), 81 target_bounds.width()),
82 ValueBetween(value, start_bounds.height(), 82 ValueBetween(value, start_bounds.height(),
83 target_bounds.height())); 83 target_bounds.height()));
84 } 84 }
85 85
86 } // namespace ui 86 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/animation/animation.cc ('k') | ui/base/clipboard/clipboard.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698