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

Side by Side 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, 3 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« 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