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

Issue 100022: Mouse hover out of context menu should un-select menu item.... (Closed)

Created:
11 years, 8 months ago by Mohamed Mansour (USE mhm)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Mouse hover out of context menu should un-select menu item. All Context Menu's which are implemented with ChromeMenu is not properly un-selecting the menu item when out of focus. The areas where this is affected are: * Tabs * Bookmark bar * Bookmark managerThe others uses winapi for context menus. Doesn't use ChromeMenu, uses HMENU, that explanes why the others work. For this fix, I had to make sure that the MenuPart is always NONE when the mouse is moved outside of the context menu regions, and that is always the case. Hence, we can assure to remove selection. The same way it has been done for SetSelection, I have used the same technique for this, but simpler. BUG=8088 TEST=For the above mentioned affected areas, I brought up the context menu by right clicking, and hovered over a menu item, then move the mouse horizontally outside the context menu region, it deselected the item.

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -16 lines) Patch
M chrome/views/controls/menu/chrome_menu.h View 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/views/controls/menu/chrome_menu.cc View 1 8 chunks +4 lines, -13 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mohamed Mansour (USE mhm)
You guys touched the codebase a lot :) And my area has no blame, just ...
11 years, 8 months ago (2009-04-26 13:50:39 UTC) #1
sky
There's some additional cleanup that should be done while you're doing this: . any_menu_contains_mouse_ should ...
11 years, 8 months ago (2009-04-27 16:02:57 UTC) #2
Mohamed Mansour (USE mhm)
Hey guys, this is my second approach, it seems to fix this issue.
11 years, 8 months ago (2009-04-29 01:04:47 UTC) #3
sky
Don't you need to change dragging as well? http://codereview.chromium.org/100022/diff/5/1004 File chrome/views/controls/menu/chrome_menu.h (right): http://codereview.chromium.org/100022/diff/5/1004#newcode28 Line 28: ...
11 years, 7 months ago (2009-04-29 16:29:28 UTC) #4
Mohamed Mansour (USE mhm)
Hi sky, sorry for the late reply. I had major computer issues. I really don't ...
11 years, 7 months ago (2009-05-01 03:32:18 UTC) #5
sky
On 2009/05/01 03:32:18, Mohamed Mansour wrote: > Hi sky, sorry for the late reply. I ...
11 years, 7 months ago (2009-05-04 15:29:44 UTC) #6
Mohamed Mansour (USE mhm)
Ah Thanks for the explanation Scott, it is a different fix than what we have ...
11 years, 7 months ago (2009-05-04 16:04:07 UTC) #7
sky
11 years, 7 months ago (2009-05-04 17:51:24 UTC) #8
Sure. I've landed your patch in r15220.

  -Scott

On 2009/05/04 16:04:07, Mohamed Mansour wrote:
> Ah Thanks for the explanation Scott, it is a different fix than what we have
> now, this fix just fixes the mouse hovered out. We could commit this (since it
> fixes that issue on the bug tracker), and then I could figure out how to fix
the
> drag issue. I am going to install my new raptor hard drive tonight, so if you
> could commit this change as step 1, and step 2 will be fixing the dragging
> issues.

Powered by Google App Engine
This is Rietveld 408576698