Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / controls / webview / unhandled_keyboard_event_handler_mac.mm
blob5fb08006306a37675f7aeb3b8ed2e3514563fbb2
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"
10 namespace views {
12 // static
13 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent(
14     gfx::NativeEvent event,
15     FocusManager* focus_manager) {
16   [base::mac::ObjCCastStrict<NativeWidgetMacNSWindow>([event window])
17       redispatchKeyEvent:event];
20 }  // namespace views