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

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

Issue 9965017: views: Rename ComboboxListener::ItemChanged to something more accurate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: combo_box -> combobox Created 8 years, 9 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 cc5344073f7cb03d8709d26c8e5898e90ea3ca19..2810450dc0d32b1c68b1accc78a13055640241ea 100644
--- a/ui/views/examples/combobox_example.cc
+++ b/ui/views/examples/combobox_example.cc
@@ -41,12 +41,10 @@ void ComboboxExample::CreateExampleView(View* container) {
container->AddChildView(combobox_);
}
-void ComboboxExample::ItemChanged(Combobox* combo_box,
- int prev_index,
- int new_index) {
- DCHECK_EQ(combobox_, combo_box);
- PrintStatus("Selected: %s",
- UTF16ToUTF8(combobox_model_.GetItemAt(new_index)).c_str());
+void ComboboxExample::OnSelectedIndexChanged(Combobox* combobox) {
+ DCHECK_EQ(combobox_, combobox);
+ PrintStatus("Selected: %s", UTF16ToUTF8(combobox_model_.GetItemAt(
+ combobox->selected_index())).c_str());
}
} // namespace examples
« 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