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

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

Issue 141523005: Combobox: Rename styles to STYLE_NORMAL and STYLE_ACTION and modify behaviors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug fix for Windows Created 6 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/examples/combobox_example.h ('k') | ui/views/examples/examples_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/combobox_example.cc
diff --git a/ui/views/examples/combobox_example.cc b/ui/views/examples/combobox_example.cc
index 6529564490251484011bb09d768c7a356e3a9f1d..ed07379b605fcaa7eb70ad32bd1cff2972cecb15 100644
--- a/ui/views/examples/combobox_example.cc
+++ b/ui/views/examples/combobox_example.cc
@@ -44,7 +44,7 @@ void ComboboxExample::CreateExampleView(View* container) {
container->AddChildView(combobox_);
}
-void ComboboxExample::OnSelectedIndexChanged(Combobox* combobox) {
+void ComboboxExample::OnPerformAction(Combobox* combobox) {
DCHECK_EQ(combobox_, combobox);
PrintStatus("Selected: %s", base::UTF16ToUTF8(combobox_model_.GetItemAt(
combobox->selected_index())).c_str());
« no previous file with comments | « ui/views/examples/combobox_example.h ('k') | ui/views/examples/examples_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698