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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.mm

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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/renderer_host/render_widget_host_view_mac.mm
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.mm (revision 34219)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.mm (working copy)
@@ -589,14 +589,7 @@
renderWidgetHostView_->render_widget_host_->ForwardMouseEvent(event);
}
-- (void)setIgnoreKeyEvents:(BOOL)ignorekeyEvents {
- ignoreKeyEvents_ = ignorekeyEvents;
-}
-
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent {
- if (ignoreKeyEvents_)
- return NO;
-
// |performKeyEquivalent:| is sent to all views of a window, not only down the
// responder chain (cf. "Handling Key Equivalents" in
// http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/EventOverview/HandlingKeyEvents/HandlingKeyEvents.html
@@ -642,9 +635,6 @@
}
- (void)keyEvent:(NSEvent *)theEvent wasKeyEquivalent:(BOOL)equiv {
- if (ignoreKeyEvents_)
- return;
-
DCHECK([theEvent type] != NSKeyDown ||
!equiv == !([theEvent modifierFlags] & NSCommandKeyMask));
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_mac.h ('k') | chrome/browser/tab_contents/interstitial_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698