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

Issue 2418893004: [Mac] Ensure bookmark items are highlighted when invoking a context menu (Closed)

Created:
4 years, 2 months ago by shrike
Modified:
4 years, 2 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Ensure bookmark items are highlighted when invoking a context menu Context menus run in a modal loop, so Control-clicking a bookmark item while a contextual menu is already visible prevents animating the item's highlight. The result was an unhighlighted bookmark item displaying a contextual menu. This cl forces an immediate highlight of the item so that no animation is involved. This cl also moves code from rightMouseClicked: to the NSView methods that are called right before and after a contextual menu appears. The original idea of overridding rightMouseClicked: was to ensure correct hightlighting before and after the contextual menu, but this method is not called when you Control-click an item, only when you right click using a mouse with a physical right mouse button. R=avi@chromium.org BUG=649256 Committed: https://crrev.com/f581fedebe6bc34efcaf24d2d9f45120e98e3134 Cr-Commit-Position: refs/heads/master@{#425499}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm View 1 chunk +13 lines, -7 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
shrike
PTAL
4 years, 2 months ago (2016-10-14 19:12:14 UTC) #1
Avi (use Gerrit)
lgtm
4 years, 2 months ago (2016-10-14 19:34:45 UTC) #2
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/2418893004/1
4 years, 2 months ago (2016-10-14 20:25:55 UTC) #4
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-14 22:45:53 UTC) #5
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 22:48:17 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f581fedebe6bc34efcaf24d2d9f45120e98e3134
Cr-Commit-Position: refs/heads/master@{#425499}

Powered by Google App Engine
This is Rietveld 408576698