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

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

Issue 8247009: Explicit animation support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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
Index: ui/base/animation/tween.h
diff --git a/ui/base/animation/tween.h b/ui/base/animation/tween.h
index 6bde5dda89abdc2ca934cf02dad863063a3aa72d..5588eb22b0e4c8c1ed898f43f09409fc85464de2 100644
--- a/ui/base/animation/tween.h
+++ b/ui/base/animation/tween.h
@@ -15,6 +15,8 @@ class Rect;
namespace ui {
+class Transform;
+
class UI_EXPORT Tween {
public:
enum Type {
@@ -36,6 +38,9 @@ class UI_EXPORT Tween {
static gfx::Rect ValueBetween(double value,
const gfx::Rect& start_bounds,
const gfx::Rect& target_bounds);
+ static Transform ValueBetween(double value,
+ const Transform& start_transform,
+ const Transform& target_transform);
private:
Tween();

Powered by Google App Engine
This is Rietveld 408576698