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

Unified Diff: ui/views/controls/combobox/combobox.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 | « chrome/browser/ui/views/cookie_info_view.cc ('k') | ui/views/controls/combobox/combobox_listener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index 697def58bbdf49432417d1dc908ea42d79b1f11c..9f2a158603ddd1203c52aceac9488a80053e444a 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -54,10 +54,9 @@ void Combobox::SetSelectedIndex(int index) {
}
void Combobox::SelectionChanged() {
- int prev_selected_index = selected_index_;
selected_index_ = native_wrapper_->GetSelectedIndex();
if (listener_)
- listener_->ItemChanged(this, prev_selected_index, selected_index_);
+ listener_->OnSelectedIndexChanged(this);
if (GetWidget()) {
GetWidget()->NotifyAccessibilityEvent(
this, ui::AccessibilityTypes::EVENT_VALUE_CHANGED, false);
« no previous file with comments | « chrome/browser/ui/views/cookie_info_view.cc ('k') | ui/views/controls/combobox/combobox_listener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698