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

Unified Diff: ui/app_list/views/contents_animator.cc

Issue 884653003: gfx::ShadowValue: offset is a Vector2d, not Point. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/gfx/shadow_value.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/contents_animator.cc
diff --git a/ui/app_list/views/contents_animator.cc b/ui/app_list/views/contents_animator.cc
index cc38108175a3657b0025b22f64fe0a214ab22b2b..0c0bbfac3c4c2b43f05d442fcbc8a53e46063f6e 100644
--- a/ui/app_list/views/contents_animator.cc
+++ b/ui/app_list/views/contents_animator.cc
@@ -95,10 +95,10 @@ void ContentsAnimator::UpdateSearchBoxForDefaultAnimation(double progress,
gfx::ShadowValue target_shadow = GetSearchBoxShadowForState(to_state);
SearchBoxView* search_box = contents_view()->GetSearchBoxView();
- gfx::Point offset(gfx::Tween::LinearIntValueBetween(
- progress, original_shadow.x(), target_shadow.x()),
- gfx::Tween::LinearIntValueBetween(
- progress, original_shadow.y(), target_shadow.y()));
+ gfx::Vector2d offset(gfx::Tween::LinearIntValueBetween(
+ progress, original_shadow.x(), target_shadow.x()),
+ gfx::Tween::LinearIntValueBetween(
+ progress, original_shadow.y(), target_shadow.y()));
search_box->SetShadow(gfx::ShadowValue(
offset, gfx::Tween::LinearIntValueBetween(
progress, original_shadow.blur(), target_shadow.blur()),
« no previous file with comments | « ui/app_list/views/app_list_item_view.cc ('k') | ui/gfx/shadow_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698