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

Unified Diff: content/renderer/render_view.cc

Issue 7227007: [Mac] Show correct cursor after context menu is closed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view.cc
===================================================================
--- content/renderer/render_view.cc (revision 91505)
+++ content/renderer/render_view.cc (working copy)
@@ -4261,6 +4261,9 @@
pepper_delegate_.OnContextMenuClosed(custom_context);
else
context_menu_node_.reset();
+ // Re-send the cursor to the view so that it can display the correct cursor
+ // after the menu is closed (rather than waiting for a mouse move event).
+ Send(new ViewHostMsg_SetCursor(routing_id_, current_cursor_));
brettw 2011/07/06 17:04:31 How do you know the old cursor is the right one to
}
void RenderView::OnNetworkStateChanged(bool online) {
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698