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

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

Issue 1946443002: trace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: with bail text Created 4 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
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_mac.mm
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm
index e6581577d1f22571f38fbb7f9389d3307adafd7b..a76b1fa519f23b8da1c8f5c30c1600b5127de223 100644
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm
@@ -2013,6 +2013,7 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
}
- (BOOL)performKeyEquivalent:(NSEvent*)theEvent {
+ NSLog(@"performKeyEquivalent: %@", theEvent);
// |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
@@ -2021,8 +2022,10 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged(
return NO;
// If the event is reserved by the system, then do not pass it to web content.
- if (EventIsReservedBySystem(theEvent))
+ if (EventIsReservedBySystem(theEvent)) {
+ DLOG(INFO) << "BAIL! - it's reserved.";
return NO;
+ }
// If we return |NO| from this function, cocoa will send the key event to
// the menu and only if the menu does not process the event to |keyDown:|. We
« no previous file with comments | « chrome/browser/chrome_browser_application_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698