summaryrefslogtreecommitdiff
path: root/chromium/ui/views/controls/webview/unhandled_keyboard_event_handler_mac.mm
blob: 5fb08006306a37675f7aeb3b8ed2e3514563fbb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {
  [base::mac::ObjCCastStrict<NativeWidgetMacNSWindow>([event window])
      redispatchKeyEvent:event];
}

}  // namespace views