Chromium Code Reviews
Description[Mac] Show correct cursor after context menu is closed.
The fix has two parts to it.
First keep the RenderViewContextMenu in a scoped_ptr on the TabContentsViewMac instead of creating it on the stack in |ShowContextMenu()|. (This is how it's done with views and gtk already.) This ensures |MenuClosed()| gets called on the RenderViewContextMenu properly - previously it would get destroyed before that could happen.
Second, send mouse leave and mouse enter events to the renderer when the context menu is opened and closed, so that the renderer will update the cursor.
The CL also renames |is_showing_popup_menu_| to |is_showing_context_menu_| in the views code to be consistent with the name of the callback and the equivalent variable in the GTK and now Mac code.
BUG=64436
TEST=see bug
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92370
Patch Set 1 #
Total comments: 1
Patch Set 2 : '' #
Total comments: 1
Patch Set 3 : '' #Patch Set 4 : '' #Patch Set 5 : '' #
Messages
Total messages: 12 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||