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

Unified Diff: ui/views/button_drag_utils.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 on Windows. 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
Index: ui/views/button_drag_utils.cc
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc
index e3be0e77bc370a86a94bc53efcd8226f8e81c6f7..5dd2c2eb0ff6ff30d9769d0460156decd723fd17 100644
--- a/ui/views/button_drag_utils.cc
+++ b/ui/views/button_drag_utils.cc
@@ -10,6 +10,7 @@
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/image/image.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/controls/button/label_button.h"
@@ -48,8 +49,11 @@ void SetDragImage(const GURL& url,
widget ? widget->GetNativeTheme() : ui::NativeTheme::instance();
button.SetTextColor(views::Button::STATE_NORMAL,
theme->GetSystemColor(ui::NativeTheme::kColorId_LabelEnabledColor));
- gfx::ShadowValues shadows(10, gfx::ShadowValue(gfx::Point(0,0), 1.0f,
- theme->GetSystemColor(ui::NativeTheme::kColorId_LabelBackgroundColor)));
+ gfx::ShadowValues shadows(
+ 10,
+ gfx::ShadowValue(gfx::Vector2d(0, 0), 1.0f,
+ theme->GetSystemColor(
+ ui::NativeTheme::kColorId_LabelBackgroundColor)));
button.SetTextShadows(shadows);
button.SetMaxSize(gfx::Size(kLinkDragImageMaxWidth, 0));
if (icon.isNull()) {

Powered by Google App Engine
This is Rietveld 408576698