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

Unified Diff: chrome/browser/ui/views/profiles/new_avatar_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
Index: chrome/browser/ui/views/profiles/new_avatar_button.cc
diff --git a/chrome/browser/ui/views/profiles/new_avatar_button.cc b/chrome/browser/ui/views/profiles/new_avatar_button.cc
index cce152acdfbcba9d2fa2e3a7a95e63894c78e6d8..4213119201692fc6f3e1d2e7a191e6da68b0ea4a 100644
--- a/chrome/browser/ui/views/profiles/new_avatar_button.cc
+++ b/chrome/browser/ui/views/profiles/new_avatar_button.cc
@@ -13,6 +13,7 @@
#include "grit/theme_resources.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/label_button_border.h"
#include "ui/views/painter.h"
@@ -183,8 +184,11 @@ void NewAvatarButton::UpdateAvatarButtonAndRelayoutParent() {
// If the button has no text, clear the text shadows to make sure the
// image is centered correctly.
- SetTextShadows(use_generic_button ? gfx::ShadowValues() : gfx::ShadowValues(
- 10, gfx::ShadowValue(gfx::Point(), 1.0f, SK_ColorDKGRAY)));
+ SetTextShadows(
+ use_generic_button
+ ? gfx::ShadowValues()
+ : gfx::ShadowValues(
+ 10, gfx::ShadowValue(gfx::Vector2d(), 1.0f, SK_ColorDKGRAY)));
// We want the button to resize if the new text is shorter.
SetMinSize(gfx::Size());
« no previous file with comments | « chrome/browser/ui/views/message_center/message_center_frame_view.cc ('k') | ui/app_list/app_list_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698