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

Issue 6969058: Fix hover state in wrench menu (Closed)

Created:
9 years, 7 months ago by sail
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, viettrungluu, mafv
Visibility:
Public.

Description

Fix hover state in wrench menu Hiding the bookmark bar from the wrench menu would cause the wrench menu to get stuck with a hover state. The problem was that when the super view is resized we don't get a mouse exited event in the button cell. In this change I'm working around this by re-checking if the mouse is in the view once the wrench menu is closed. An alternative would be to use NSTrackingArea to get mouse entered/exited events. I think using NSTrackingArea would be a lot more work but if people would like me to use that I'll update this change to use that. BUG=82456 TEST=Ran and verified that the hover state was no longer stuck. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85427

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/menu_button.mm View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/nsview_additions.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/nsview_additions.mm View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sail
9 years, 7 months ago (2011-05-13 01:54:36 UTC) #1
Nico
LGTM http://codereview.chromium.org/6969058/diff/1/chrome/browser/ui/cocoa/menu_button.mm File chrome/browser/ui/cocoa/menu_button.mm (right): http://codereview.chromium.org/6969058/diff/1/chrome/browser/ui/cocoa/menu_button.mm#newcode142 chrome/browser/ui/cocoa/menu_button.mm:142: if (![self cr_isMouseInView]) { Add a comment that ...
9 years, 7 months ago (2011-05-14 21:49:08 UTC) #2
sail
http://codereview.chromium.org/6969058/diff/1/chrome/browser/ui/cocoa/menu_button.mm File chrome/browser/ui/cocoa/menu_button.mm (right): http://codereview.chromium.org/6969058/diff/1/chrome/browser/ui/cocoa/menu_button.mm#newcode142 chrome/browser/ui/cocoa/menu_button.mm:142: if (![self cr_isMouseInView]) { On 2011/05/14 21:49:08, Nico wrote: ...
9 years, 7 months ago (2011-05-15 20:19:56 UTC) #3
commit-bot: I haz the power
9 years, 7 months ago (2011-05-15 21:19:06 UTC) #4
Change committed as 85427

Powered by Google App Engine
This is Rietveld 408576698