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

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

Issue 1904753002: MenuButton: support Mac look & feel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add basic tests Created 4 years, 7 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: ui/views/examples/combobox_example.cc
diff --git a/ui/views/examples/combobox_example.cc b/ui/views/examples/combobox_example.cc
index 4c4fdb300b979d6f43ffe6c1f6e6a02875cb7c34..e2dfc2ccf0a1cc365993214cec4a03b712a006d8 100644
--- a/ui/views/examples/combobox_example.cc
+++ b/ui/views/examples/combobox_example.cc
@@ -49,11 +49,10 @@ void ComboboxExample::CreateExampleView(View* container) {
disabled_combobox_->SetSelectedIndex(4);
disabled_combobox_->SetEnabled(false);
- action_combobox_ = new Combobox(&combobox_model_);
- action_combobox_->set_listener(this);
- action_combobox_->SetStyle(Combobox::STYLE_ACTION);
// Note: STYLE_ACTION comboboxes always have the first item selected by
// default.
+ action_combobox_ = new Combobox(&combobox_model_, Combobox::STYLE_ACTION);
+ action_combobox_->set_listener(this);
container->SetLayoutManager(new BoxLayout(
BoxLayout::kVertical,

Powered by Google App Engine
This is Rietveld 408576698