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

Issue 2070623003: [MacViews] Show combobox menu popup at mouse press (Closed)

Created:
4 years, 6 months ago by spqchan
Modified:
4 years, 5 months ago
Reviewers:
tapted, sky
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[MacViews] Show combobox menu popup at mouse press. Create a PlatformStyle variable for the combobox button's NotifyAction value. The variable is set to NOTIFY_ON_PRESS on Mac, and NOTIFY_ON_RELEASE for other platforms. Placed TransparentButton's OnMousePressed() override behind #if defined guards for Mac. BUG=602912 Committed: https://crrev.com/a7b6e52dc0b0259c67dac9ded5c385739d36c7fc Cr-Commit-Position: refs/heads/master@{#404012}

Patch Set 1 #

Patch Set 2 : nit #

Total comments: 4

Patch Set 3 : Fix for tapted #

Patch Set 4 : comment #

Total comments: 2

Patch Set 5 : Revert override #

Patch Set 6 : added #if defined #

Total comments: 3

Patch Set 7 : Combobox test #

Patch Set 8 #

Patch Set 9 : nit #

Total comments: 13

Patch Set 10 : Fix for tapted #

Patch Set 11 #

Patch Set 12 : nit #

Total comments: 2

Patch Set 13 : invert #

Total comments: 2

Patch Set 14 : fix for sky #

Patch Set 15 : Fixed test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -7 lines) Patch
M ui/views/controls/combobox/combobox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/combobox/combobox_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +29 lines, -7 lines 0 comments Download
M ui/views/style/platform_style.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/style/platform_style.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/style/platform_style_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (16 generated)
spqchan
PTAL
4 years, 6 months ago (2016-06-15 19:46:26 UTC) #3
tapted
https://codereview.chromium.org/2070623003/diff/20001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/20001/ui/views/controls/combobox/combobox.cc#newcode113 ui/views/controls/combobox/combobox.cc:113: set_notify_action(NOTIFY_ON_PRESS); We need to restrict this just to Mac ...
4 years, 6 months ago (2016-06-16 00:05:13 UTC) #4
spqchan
PTAL https://codereview.chromium.org/2070623003/diff/20001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/20001/ui/views/controls/combobox/combobox.cc#newcode113 ui/views/controls/combobox/combobox.cc:113: set_notify_action(NOTIFY_ON_PRESS); On 2016/06/16 00:05:13, tapted wrote: > We ...
4 years, 6 months ago (2016-06-22 02:16:38 UTC) #7
tapted
lgtm %nit and an updated CL description it should mention the change to PlatformStyle. Also ...
4 years, 6 months ago (2016-06-22 04:19:53 UTC) #8
tapted
lgtm %nit and an updated CL description it should mention the change to PlatformStyle. Also ...
4 years, 6 months ago (2016-06-22 04:19:53 UTC) #9
tapted
oops not lgtm yet https://codereview.chromium.org/2070623003/diff/60001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/60001/ui/views/controls/combobox/combobox.cc#newcode114 ui/views/controls/combobox/combobox.cc:114: set_request_focus_on_press(true); oh hang on a ...
4 years, 6 months ago (2016-06-22 04:23:04 UTC) #10
tapted
oops not lgtm yet
4 years, 6 months ago (2016-06-22 04:23:04 UTC) #11
spqchan
On 2016/06/22 04:23:04, tapted wrote: > oops not lgtm yet PTAL Sounds good. I fixed ...
4 years, 6 months ago (2016-06-22 19:09:31 UTC) #13
tapted
https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc#newcode118 ui/views/controls/combobox/combobox.cc:118: bool OnMousePressed(const ui::MouseEvent& mouse_event) override { nit: comment here ...
4 years, 6 months ago (2016-06-23 00:54:29 UTC) #14
spqchan
PTAL. Sorry for the delay :) https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc#newcode118 ui/views/controls/combobox/combobox.cc:118: bool OnMousePressed(const ui::MouseEvent& ...
4 years, 5 months ago (2016-06-28 17:05:59 UTC) #15
tapted
lgtm - hopefully sky will like it too https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/100001/ui/views/controls/combobox/combobox.cc#newcode118 ui/views/controls/combobox/combobox.cc:118: bool ...
4 years, 5 months ago (2016-06-29 12:02:55 UTC) #16
spqchan
Thanks! +sky What are your thoughts on combobox.cc? https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc#newcode1 ui/views/controls/combobox/combobox.cc:1: // ...
4 years, 5 months ago (2016-06-29 18:29:14 UTC) #19
sky
https://codereview.chromium.org/2070623003/diff/220001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/220001/ui/views/controls/combobox/combobox.cc#newcode117 ui/views/controls/combobox/combobox.cc:117: #if defined(OS_MACOSX) This ifdef means we'll no longer get ...
4 years, 5 months ago (2016-06-29 21:35:08 UTC) #20
tapted
https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc#newcode122 ui/views/controls/combobox/combobox.cc:122: CustomButton::OnMousePressed(mouse_event); On 2016/06/29 18:29:14, spqchan wrote: > On 2016/06/29 ...
4 years, 5 months ago (2016-06-29 23:24:43 UTC) #21
spqchan
On 2016/06/29 23:24:43, tapted wrote: > https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc > File ui/views/controls/combobox/combobox.cc (right): > > https://codereview.chromium.org/2070623003/diff/160001/ui/views/controls/combobox/combobox.cc#newcode122 > ...
4 years, 5 months ago (2016-06-30 00:39:55 UTC) #22
sky
small nit on naming. https://codereview.chromium.org/2070623003/diff/240001/ui/views/style/platform_style.h File ui/views/style/platform_style.h (right): https://codereview.chromium.org/2070623003/diff/240001/ui/views/style/platform_style.h#newcode47 ui/views/style/platform_style.h:47: static const CustomButton::NotifyAction kMenuActivationAction; kMenuNotifyActivationAction?
4 years, 5 months ago (2016-06-30 16:24:46 UTC) #23
spqchan
PTAL https://codereview.chromium.org/2070623003/diff/240001/ui/views/style/platform_style.h File ui/views/style/platform_style.h (right): https://codereview.chromium.org/2070623003/diff/240001/ui/views/style/platform_style.h#newcode47 ui/views/style/platform_style.h:47: static const CustomButton::NotifyAction kMenuActivationAction; On 2016/06/30 16:24:46, sky ...
4 years, 5 months ago (2016-06-30 21:16:40 UTC) #24
sky
LGTM
4 years, 5 months ago (2016-07-01 00:01:00 UTC) #25
spqchan
thanks!
4 years, 5 months ago (2016-07-01 00:08:52 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070623003/260001
4 years, 5 months ago (2016-07-01 00:09:32 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/97159) linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-01 00:12:32 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070623003/260001
4 years, 5 months ago (2016-07-01 00:13:18 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/195261)
4 years, 5 months ago (2016-07-01 00:43:19 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2070623003/280001
4 years, 5 months ago (2016-07-06 23:29:33 UTC) #38
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 5 months ago (2016-07-07 00:30:47 UTC) #40
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-07 00:31:03 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 00:33:01 UTC) #43
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/a7b6e52dc0b0259c67dac9ded5c385739d36c7fc
Cr-Commit-Position: refs/heads/master@{#404012}

Powered by Google App Engine
This is Rietveld 408576698