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

Unified Diff: ui/views/controls/combobox/combobox.cc

Issue 2070623003: [MacViews] Show combobox menu popup at mouse press (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 6 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 | « no previous file | no next file » | 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 dc7797936b73c56c043e2d2873986603ab04804f..2792505b826752d8f87119b3590924fddc401056 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -110,11 +110,13 @@ class TransparentButton : public CustomButton {
: CustomButton(listener) {
SetAnimationDuration(LabelButton::kHoverAnimationDurationMs);
SetFocusBehavior(FocusBehavior::NEVER);
+ set_notify_action(NOTIFY_ON_PRESS);
tapted 2016/06/16 00:05:13 We need to restrict this just to Mac - I think the
spqchan 2016/06/22 02:16:38 Done.
}
~TransparentButton() override {}
bool OnMousePressed(const ui::MouseEvent& mouse_event) override {
parent()->RequestFocus();
tapted 2016/06/16 00:05:13 This actually isn't needed, CustomButton has a set
spqchan 2016/06/22 02:16:38 Done.
+ CustomButton::OnMousePressed(mouse_event);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698