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

Issue 93793012: Squelch context menus on the OSX App List when both buttons are pressed. (Closed)

Created:
6 years, 11 months ago by tapted
Modified:
6 years, 11 months ago
Reviewers:
jackhou1
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina
Visibility:
Public.

Description

Squelch context menus on the OSX App List when both buttons are pressed. The apps grid uses [NSView menuForEvent:..] for its menus, so needs to check the button state explicitly to match the behaviour of [NSButton menu] (which isn't used, e.g., because the NSButton doesn't fill the grid cell). This CL adds a check to suppress the menu when the button is in the "lit" state, which occurs when the button is being held down. BUG=328835 TEST=Hold the left, then the right, mouse buttons over a app launcher item. A menu shouldn't appear. Releasing the left button (without moving the mouse cursor) will launch the item. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243391

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M ui/app_list/cocoa/apps_grid_controller_unittest.mm View 1 chunk +7 lines, -0 lines 0 comments Download
M ui/app_list/cocoa/apps_grid_view_item.mm View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
tapted
6 years, 11 months ago (2014-01-06 06:19:13 UTC) #1
jackhou1
lgtm Nit: update the TEST= line in the description. It should launch when the left ...
6 years, 11 months ago (2014-01-07 04:06:24 UTC) #2
tapted
On 2014/01/07 04:06:24, jackhou1 wrote: > lgtm > > Nit: update the TEST= line in ...
6 years, 11 months ago (2014-01-07 05:18:16 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/93793012/1
6 years, 11 months ago (2014-01-07 09:49:47 UTC) #4
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=242333
6 years, 11 months ago (2014-01-07 13:58:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/93793012/1
6 years, 11 months ago (2014-01-07 20:50:14 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-07 21:41:30 UTC) #7
Message was sent while issue was closed.
Change committed as 243391

Powered by Google App Engine
This is Rietveld 408576698