| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ui/events/event.h" | 7 #include "ui/events/event.h" |
| 8 #include "ui/views/focus/focus_manager.h" | 8 #include "ui/views/focus/focus_manager.h" |
| 9 | 9 |
| 10 namespace views { | 10 namespace views { |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent( | 13 void UnhandledKeyboardEventHandler::HandleNativeKeyboardEvent( |
| 14 gfx::NativeEvent event, | 14 gfx::NativeEvent event, |
| 15 FocusManager* focus_manager) { | 15 FocusManager* focus_manager) { |
| 16 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event)); | 16 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace views | 19 } // namespace views |
| OLD | NEW |