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

Unified Diff: ui/views/examples/label_example.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/controls/button/label_button.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/label_example.cc
diff --git a/ui/views/examples/label_example.cc b/ui/views/examples/label_example.cc
index 0d3e67559621477c2b4c8e3b1ac6029b00fb4597..f06332ab9402a3c4261a889f6782ec1cd9aa0036 100644
--- a/ui/views/examples/label_example.cc
+++ b/ui/views/examples/label_example.cc
@@ -5,6 +5,7 @@
#include "ui/views/examples/label_example.h"
#include "base/strings/utf_string_conversions.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/views/background.h"
#include "ui/views/border.h"
#include "ui/views/controls/button/checkbox.h"
@@ -89,8 +90,9 @@ void LabelExample::CreateExampleView(View* container) {
label = new Label(ASCIIToUTF16("A Courier-18 label with shadows."));
label->SetFontList(gfx::FontList("Courier, 18px"));
- gfx::ShadowValues shadows(1, gfx::ShadowValue(gfx::Point(), 1, SK_ColorRED));
- gfx::ShadowValue shadow(gfx::Point(2, 2), 0, SK_ColorGRAY);
+ gfx::ShadowValues shadows(1,
+ gfx::ShadowValue(gfx::Vector2d(), 1, SK_ColorRED));
+ gfx::ShadowValue shadow(gfx::Vector2d(2, 2), 0, SK_ColorGRAY);
shadows.push_back(shadow);
label->SetShadows(shadows);
container->AddChildView(label);
@@ -116,8 +118,8 @@ void LabelExample::ButtonPressed(Button* button, const ui::Event& event) {
} else if (button == shadows_) {
gfx::ShadowValues shadows;
if (shadows_->checked()) {
- shadows.push_back(gfx::ShadowValue(gfx::Point(), 1, SK_ColorRED));
- shadows.push_back(gfx::ShadowValue(gfx::Point(2, 2), 0, SK_ColorGRAY));
+ shadows.push_back(gfx::ShadowValue(gfx::Vector2d(), 1, SK_ColorRED));
+ shadows.push_back(gfx::ShadowValue(gfx::Vector2d(2, 2), 0, SK_ColorGRAY));
}
custom_label_->SetShadows(shadows);
}
« no previous file with comments | « ui/views/controls/button/label_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698