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

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

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: Rename OnSelectedChanged -> OnPerformAction Created 6 years, 11 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/controls/combobox/combobox_listener.h
diff --git a/ui/views/controls/combobox/combobox_listener.h b/ui/views/controls/combobox/combobox_listener.h
index faa41df89e4a113e97e461a0b1953dcc0f9078e5..2fc45cfb8032a99611ce4d1338517e7344a64da6 100644
--- a/ui/views/controls/combobox/combobox_listener.h
+++ b/ui/views/controls/combobox/combobox_listener.h
@@ -15,11 +15,9 @@ class Combobox;
// has changed.
class VIEWS_EXPORT ComboboxListener {
public:
- virtual void OnSelectedIndexChanged(Combobox* combobox) = 0;
-
- // Handles when the combobox's style is the button style and the button is
- // clicked.
- virtual void OnComboboxTextButtonClicked(Combobox* combobox) {}
+ // Handles events when the selected index is changed (STYLE_NORMAL) or the
sky 2014/02/03 16:58:19 Invoked when the user does the appropriate gesture
hajimehoshi 2014/02/04 04:06:32 Done.
+ // action button is clicked (STYLE_ACTION).
+ virtual void OnPerformAction(Combobox* combobox) = 0;
protected:
virtual ~ComboboxListener() {}

Powered by Google App Engine
This is Rietveld 408576698