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

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

Issue 10933049: Fixed position of plus image on action box button; added ICON_CENTERED placement to TextButton (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/text_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/button_example.cc
diff --git a/ui/views/examples/button_example.cc b/ui/views/examples/button_example.cc
index 8f1c46f1c7d5a03f3fb233e9014fa245d08174f0..ce1d6d0582f922e4ab60f9ed125397a3388983e0 100644
--- a/ui/views/examples/button_example.cc
+++ b/ui/views/examples/button_example.cc
@@ -77,6 +77,9 @@ void ButtonExample::ButtonPressed(Button* sender, const ui::Event& event) {
case TextButton::ICON_ON_RIGHT:
text_button_->set_icon_placement(TextButton::ICON_ON_LEFT);
break;
+ case TextButton::ICON_CENTERED:
+ // Do nothing.
+ break;
}
}
} else if (event.IsAltDown()) {
« no previous file with comments | « ui/views/controls/button/text_button.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698