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

Unified Diff: ui/views/controls/combobox/combobox.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: 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
« no previous file with comments | « chrome/browser/ui/views/translate/translate_bubble_view.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.h
diff --git a/ui/views/controls/combobox/combobox.h b/ui/views/controls/combobox/combobox.h
index 20b65e0a4c06b9a9ca095aef60c123bfdd2acab2..1e0082d4eb4d498be7328aafcd55034ba5d6656b 100644
--- a/ui/views/controls/combobox/combobox.h
+++ b/ui/views/controls/combobox/combobox.h
@@ -65,6 +65,8 @@ class VIEWS_EXPORT Combobox : public MenuDelegate,
void SetStyle(Style style);
+ void SetMenuItemRaisesClickEvent(bool value);
+
// Informs the combobox that its model changed.
void ModelChanged();
@@ -158,6 +160,10 @@ class VIEWS_EXPORT Combobox : public MenuDelegate,
// The visual style of this combobox.
Style style_;
+ // Whether clicking a menu item raises a click event. When |style_| is not
+ // STYLE_NOTIFY_ON_CLICK, this is ignored.
sky 2014/01/17 16:01:55 AFAIK you are the only using STYLE_NOTIFY_ON_CLICK
hajimehoshi 2014/01/20 03:06:14 Done.
+ bool menu_item_raises_click_event_;
+
// Our listener. Not owned. Notified when the selected index change.
ComboboxListener* listener_;
« no previous file with comments | « chrome/browser/ui/views/translate/translate_bubble_view.cc ('k') | ui/views/controls/combobox/combobox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698