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

Unified Diff: ui/views/examples/button_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/controls/message_box_view.cc ('k') | ui/views/examples/label_example.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/button_example.cc
diff --git a/ui/views/examples/button_example.cc b/ui/views/examples/button_example.cc
index 7e4b5790d133bc99b2ad9fc0004d39220dd2c03f..54f5363b9aa20c151dd590591e477b007e330b15 100644
--- a/ui/views/examples/button_example.cc
+++ b/ui/views/examples/button_example.cc
@@ -154,8 +154,9 @@ void ButtonExample::LabelButtonPressed(const ui::Event& event) {
label_button_->GetImage(CustomButton::BS_NORMAL).isNull() ?
*icon_ : gfx::ImageSkia());
} else {
- label_button_->SetHorizontalAlignment(static_cast<Label::Alignment>(
- (label_button_->GetHorizontalAlignment() + 1) % 3));
+ label_button_->SetHorizontalAlignment(
+ static_cast<gfx::HorizontalAlignment>(
+ (label_button_->GetHorizontalAlignment() + 1) % 3));
}
} else if (event.IsShiftDown()) {
if (event.IsAltDown()) {
« no previous file with comments | « ui/views/controls/message_box_view.cc ('k') | ui/views/examples/label_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698