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

Unified Diff: ui/app_list/views/app_list_item_view.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/app_list_constants.cc ('k') | ui/app_list/views/contents_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_item_view.cc
diff --git a/ui/app_list/views/app_list_item_view.cc b/ui/app_list/views/app_list_item_view.cc
index b4b39eed5feb75201f8a9f98d7ba99b8a1a0e5e3..74b487dfd064164aebae3dd05b3d0aabbe5156da 100644
--- a/ui/app_list/views/app_list_item_view.cc
+++ b/ui/app_list/views/app_list_item_view.cc
@@ -25,6 +25,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/font_list.h"
#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/image/image_skia_operations.h"
#include "ui/gfx/shadow_value.h"
#include "ui/gfx/transform_util.h"
@@ -55,11 +56,9 @@ const float kDraggingIconScale = 1.5f;
const int kMouseDragUIDelayInMs = 200;
const gfx::ShadowValues& GetIconShadows() {
- CR_DEFINE_STATIC_LOCAL(
- const gfx::ShadowValues,
- icon_shadows,
- (1,
- gfx::ShadowValue(gfx::Point(0, 2), 2, SkColorSetARGB(0x24, 0, 0, 0))));
+ CR_DEFINE_STATIC_LOCAL(const gfx::ShadowValues, icon_shadows,
+ (1, gfx::ShadowValue(gfx::Vector2d(0, 2), 2,
+ SkColorSetARGB(0x24, 0, 0, 0))));
return icon_shadows;
}
« no previous file with comments | « ui/app_list/app_list_constants.cc ('k') | ui/app_list/views/contents_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698