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

Unified Diff: ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm

Issue 1255783002: [Mac] Factor out keyboard shortcut handling from ChromeEventProcessingWindow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@execute
Patch Set: UI_BASE_EXPORT CommandDispatcher Created 5 years, 4 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 | « ui/views/cocoa/native_widget_mac_nswindow.mm ('k') | ui/views/examples/webview_example.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm
diff --git a/ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm b/ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm
index d579c9e34a4ab0321da1c7e4936b21ddb1db3cb0..5fb08006306a37675f7aeb3b8ed2e3514563fbb2 100644
--- a/ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm
+++ b/ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm
@@ -4,13 +4,17 @@
#include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
+#import "base/mac/foundation_util.h"
+#import "ui/views/cocoa/native_widget_mac_nswindow.h"
+
namespace views {
// static
void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent(
gfx::NativeEvent event,
FocusManager* focus_manager) {
- NOTIMPLEMENTED();
+ [base::mac::ObjCCastStrict<NativeWidgetMacNSWindow>([event window])
+ redispatchKeyEvent:event];
}
} // namespace views
« no previous file with comments | « ui/views/cocoa/native_widget_mac_nswindow.mm ('k') | ui/views/examples/webview_example.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698