OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/views/controls/webview/unhandled_keyboard_event_handler.h" | 5 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h" |
6 | 6 |
| 7 #import "base/mac/foundation_util.h" |
| 8 #import "ui/views/cocoa/native_widget_mac_nswindow.h" |
| 9 |
7 namespace views { | 10 namespace views { |
8 | 11 |
9 // static | 12 // static |
10 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent( | 13 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent( |
11 gfx::NativeEvent event, | 14 gfx::NativeEvent event, |
12 FocusManager* focus_manager) { | 15 FocusManager* focus_manager) { |
13 NOTIMPLEMENTED(); | 16 [base::mac::ObjCCastStrict<NativeWidgetMacNSWindow>([event window]) |
| 17 redispatchKeyEvent:event]; |
14 } | 18 } |
15 | 19 |
16 } // namespace views | 20 } // namespace views |
OLD | NEW |