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

Side by Side Diff: ui/views/controls/webview/unhandled_keyboard_event_handler_aurax11.cc

Issue 34573002: Convert views X11 UnhandledKeyboardEventHandler to other Linux platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use _linux.cc instead _aura.cc Created 7 years, 1 month 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 | « no previous file | ui/views/controls/webview/unhandled_keyboard_event_handler_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "ui/views/controls/webview/unhandled_keyboard_event_handler.h"
6
7 #include "base/logging.h"
8 #include "content/public/browser/native_web_keyboard_event.h"
9 #include "ui/events/event.h"
10 #include "ui/views/focus/focus_manager.h"
11
12 using content::NativeWebKeyboardEvent;
13
14 namespace views {
15
16 UnhandledKeyboardEventHandler::UnhandledKeyboardEventHandler() {
17 }
18
19 void UnhandledKeyboardEventHandler::HandleKeyboardEvent(
20 const NativeWebKeyboardEvent& event,
21 FocusManager* focus_manager) {
22 if (!focus_manager) {
23 NOTREACHED();
24 return;
25 }
26 if (event.os_event && !event.skip_in_browser)
27 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event));
28 }
29
30 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/webview/unhandled_keyboard_event_handler_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698