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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 4243 matching lines...) Expand 10 before | Expand all | Expand 10 after
4254 remote_addr); 4254 remote_addr);
4255 } 4255 }
4256 #endif 4256 #endif
4257 4257
4258 void RenderView::OnContextMenuClosed( 4258 void RenderView::OnContextMenuClosed(
4259 const webkit_glue::CustomContextMenuContext& custom_context) { 4259 const webkit_glue::CustomContextMenuContext& custom_context) {
4260 if (custom_context.is_pepper_menu) 4260 if (custom_context.is_pepper_menu)
4261 pepper_delegate_.OnContextMenuClosed(custom_context); 4261 pepper_delegate_.OnContextMenuClosed(custom_context);
4262 else 4262 else
4263 context_menu_node_.reset(); 4263 context_menu_node_.reset();
4264 // Re-send the cursor to the view so that it can display the correct cursor
4265 // after the menu is closed (rather than waiting for a mouse move event).
4266 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
4264 } 4267 }
4265 4268
4266 void RenderView::OnNetworkStateChanged(bool online) { 4269 void RenderView::OnNetworkStateChanged(bool online) {
4267 WebNetworkStateNotifier::setOnLine(online); 4270 WebNetworkStateNotifier::setOnLine(online);
4268 } 4271 }
OLDNEW
« 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