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

Unified Diff: ui/views/controls/combobox/combobox_listener.h

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/controls/combobox/combobox.cc ('k') | ui/views/controls/combobox/native_combobox_views.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox_listener.h
diff --git a/ui/views/controls/combobox/combobox_listener.h b/ui/views/controls/combobox/combobox_listener.h
index cd0f48aa542b1605603ce8c6e8d9b41131379aed..a81c5795f1913d0771c35adcb9b665b5d9789825 100644
--- a/ui/views/controls/combobox/combobox_listener.h
+++ b/ui/views/controls/combobox/combobox_listener.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,14 +10,11 @@ namespace views {
class Combobox;
-// An interface implemented by an object to let it know that the selected item
-// of a combobox changed.
+// An interface implemented by an object to let it know that the selected index
+// has changed.
class ComboboxListener {
public:
- // This is invoked once the selected item changed.
- virtual void ItemChanged(Combobox* combo_box,
- int prev_index,
- int new_index) = 0;
+ virtual void OnSelectedIndexChanged(Combobox* combobox) = 0;
protected:
virtual ~ComboboxListener() {}
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/combobox/native_combobox_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698