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

Unified Diff: ui/views/controls/button/blue_button.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/views/button_drag_utils.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/blue_button.cc
diff --git a/ui/views/controls/button/blue_button.cc b/ui/views/controls/button/blue_button.cc
index 8bae234303b8235b84baeaeb8ccaf15ba4aa664e..eb0814fe1ae3018ab7beff4e5ef9895a6fa15371 100644
--- a/ui/views/controls/button/blue_button.cc
+++ b/ui/views/controls/button/blue_button.cc
@@ -5,6 +5,7 @@
#include "ui/views/controls/button/blue_button.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/sys_color_change_listener.h"
#include "ui/resources/grit/ui_resources.h"
#include "ui/views/controls/button/label_button_border.h"
@@ -36,12 +37,10 @@ void BlueButton::ResetColorsFromNativeTheme() {
GetSystemColor(ui::NativeTheme::kColorId_BlueButtonDisabledColor));
label()->SetShadows(gfx::ShadowValues(
- 1,
- gfx::ShadowValue(
- gfx::Point(0, 1),
- 0,
- GetNativeTheme()->GetSystemColor(
- ui::NativeTheme::kColorId_BlueButtonShadowColor))));
+ 1, gfx::ShadowValue(
+ gfx::Vector2d(0, 1), 0,
+ GetNativeTheme()->GetSystemColor(
+ ui::NativeTheme::kColorId_BlueButtonShadowColor))));
}
}
« no previous file with comments | « ui/views/button_drag_utils.cc ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698