OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/public/browser/native_web_keyboard_event.h" | 8 #include "content/public/browser/native_web_keyboard_event.h" |
9 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
10 #include "ui/views/focus/focus_manager.h" | 10 #include "ui/views/focus/focus_manager.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 FocusManager* focus_manager) { | 21 FocusManager* focus_manager) { |
22 if (!focus_manager) { | 22 if (!focus_manager) { |
23 NOTREACHED(); | 23 NOTREACHED(); |
24 return; | 24 return; |
25 } | 25 } |
26 if (event.os_event && !event.skip_in_browser) | 26 if (event.os_event && !event.skip_in_browser) |
27 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event)); | 27 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event)); |
28 } | 28 } |
29 | 29 |
30 } // namespace views | 30 } // namespace views |
OLD | NEW |