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

Unified Diff: ui/views/examples/label_example.cc

Issue 11377005: Replace Label::Alignment with gfx::HorizontalAlignment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix remaining Label::Alignment references. Created 8 years, 1 month 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/examples/button_example.cc ('k') | ui/views/focus/focus_traversal_unittest.cc » ('j') | 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 0ff667db67d037bd81f2d3442cdfb93fc9818047..471c54fd26be5f7738622dc6b82c3d65d4a4712f 100644
--- a/ui/views/examples/label_example.cc
+++ b/ui/views/examples/label_example.cc
@@ -51,15 +51,15 @@ void LabelExample::CreateExampleView(View* container) {
const wchar_t hello_world_hebrew[] =
L"\x5e9\x5dc\x5d5\x5dd \x5d4\x5e2\x5d5\x5dc\x5dd!";
label = new Label(WideToUTF16(hello_world_hebrew));
- label->SetHorizontalAlignment(Label::ALIGN_RIGHT);
+ label->SetHorizontalAlignment(gfx::ALIGN_RIGHT);
container->AddChildView(label);
label = new Label(WideToUTF16(L"A UTF16 surrogate pair: \x5d0\x5b0"));
- label->SetHorizontalAlignment(Label::ALIGN_RIGHT);
+ label->SetHorizontalAlignment(gfx::ALIGN_RIGHT);
container->AddChildView(label);
label = new Label(ASCIIToUTF16("A left-aligned blue label."));
- label->SetHorizontalAlignment(Label::ALIGN_LEFT);
+ label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
label->SetEnabledColor(SK_ColorBLUE);
container->AddChildView(label);
« no previous file with comments | « ui/views/examples/button_example.cc ('k') | ui/views/focus/focus_traversal_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698