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
3 // found in the LICENSE file.
5 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
7 #import "base/mac/foundation_util.h"
8 #import "ui/views/cocoa/native_widget_mac_nswindow.h"
13 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent(
14 gfx::NativeEvent event,
15 FocusManager* focus_manager) {
16 [base::mac::ObjCCastStrict<NativeWidgetMacNSWindow>([event window])
17 redispatchKeyEvent:event];