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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_mac.mm

Issue 6874030: Commit Instant if needed before handling a web page context menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
Index: chrome/browser/tab_contents/render_view_context_menu_mac.mm
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_mac.mm (revision 81685)
+++ chrome/browser/tab_contents/render_view_context_menu_mac.mm (working copy)
@@ -9,6 +9,7 @@
#include "base/message_loop.h"
#include "base/sys_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
+#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/menu_controller.h"
#include "grit/generated_resources.h"
@@ -59,6 +60,11 @@
}
}
+void RenderViewContextMenuMac::ExecuteCommand(int id) {
+ [[[parent_view_ window] windowController] commitInstant];
+ RenderViewContextMenu::ExecuteCommand(id);
+}
+
bool RenderViewContextMenuMac::GetAcceleratorForCommandId(
int command_id,
ui::Accelerator* accelerator) {
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_mac.h ('k') | chrome/browser/ui/cocoa/browser_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698