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

Unified Diff: ui/base/animation/tween.h

Issue 23531053: ui/base/animation -> ui/gfx/animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 2 trunk Created 7 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 | « ui/base/animation/throb_animation.cc ('k') | ui/base/animation/tween.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/animation/tween.h
diff --git a/ui/base/animation/tween.h b/ui/base/animation/tween.h
deleted file mode 100644
index 6e2f17977bc45f4bc8f64967213343b95c7e987a..0000000000000000000000000000000000000000
--- a/ui/base/animation/tween.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_BASE_ANIMATION_TWEEN_H_
-#define UI_BASE_ANIMATION_TWEEN_H_
-
-#include "base/basictypes.h"
-#include "ui/base/ui_export.h"
-#include "ui/gfx/rect.h"
-#include "ui/gfx/transform.h"
-
-namespace ui {
-
-class UI_EXPORT Tween {
- public:
- enum Type {
- LINEAR, // Linear.
- EASE_OUT, // Fast in, slow out (default).
- EASE_IN, // Slow in, fast out.
- EASE_IN_2, // Variant of EASE_IN that starts out slower.
- EASE_IN_OUT, // Slow in and out, fast in the middle.
- FAST_IN_OUT, // Fast in and out, slow in the middle.
- EASE_OUT_SNAP, // Fast in, slow out, snap to final value.
- SMOOTH_IN_OUT, // Smooth, consistent speeds in and out (sine wave).
- ZERO, // Returns a value of 0 always.
- };
-
- // Returns the value based on the tween type. |state| is from 0-1.
- static double CalculateValue(Type type, double state);
-
- // Conveniences for getting a value between a start and end point.
- static double ValueBetween(double value, double start, double target);
- static int ValueBetween(double value, int start, int target);
- static gfx::Rect ValueBetween(double value,
- const gfx::Rect& start_bounds,
- const gfx::Rect& target_bounds);
- static gfx::Transform ValueBetween(double value,
- const gfx::Transform& start_transform,
- const gfx::Transform& target_transform);
-
- private:
- Tween();
- ~Tween();
-
- DISALLOW_COPY_AND_ASSIGN(Tween);
-};
-
-} // namespace ui
-
-#endif // UI_BASE_ANIMATION_TWEEN_H_
« no previous file with comments | « ui/base/animation/throb_animation.cc ('k') | ui/base/animation/tween.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698