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

Unified Diff: ui/gfx/animation/tween.cc

Issue 2966723003: Add support for bounds animations (Closed)
Patch Set: address reviewer feedback Created 3 years, 5 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/gfx/animation/tween.h ('k') | ui/gfx/animation/tween_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/tween.cc
diff --git a/ui/gfx/animation/tween.cc b/ui/gfx/animation/tween.cc
index a3415484a75520b82bedaaeb94e43cc38442736a..1cebe30c4ae8b0809f1d738ab1431834af06c1d3 100644
--- a/ui/gfx/animation/tween.cc
+++ b/ui/gfx/animation/tween.cc
@@ -203,4 +203,13 @@ gfx::Transform Tween::TransformValueBetween(
return to_return;
}
+gfx::SizeF Tween::SizeValueBetween(double value,
+ const gfx::SizeF& start_size,
+ const gfx::SizeF& target_size) {
+ return gfx::SizeF(
+ Tween::FloatValueBetween(value, start_size.width(), target_size.width()),
+ Tween::FloatValueBetween(value, start_size.height(),
+ target_size.height()));
+}
+
} // namespace gfx
« no previous file with comments | « ui/gfx/animation/tween.h ('k') | ui/gfx/animation/tween_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698