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

Side by Side Diff: chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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 | Annotate | Revision Log
OLDNEW
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 "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 5 #include "chrome/browser/ui/views/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/base/event.h" 9 #include "ui/base/events/event.h"
10 #include "ui/views/focus/focus_manager.h" 10 #include "ui/views/focus/focus_manager.h"
11 11
12 using content::NativeWebKeyboardEvent; 12 using content::NativeWebKeyboardEvent;
13 13
14 UnhandledKeyboardEventHandler::UnhandledKeyboardEventHandler() { 14 UnhandledKeyboardEventHandler::UnhandledKeyboardEventHandler() {
15 } 15 }
16 16
17 void UnhandledKeyboardEventHandler::HandleKeyboardEvent( 17 void UnhandledKeyboardEventHandler::HandleKeyboardEvent(
18 const NativeWebKeyboardEvent& event, 18 const NativeWebKeyboardEvent& event,
19 views::FocusManager* focus_manager) { 19 views::FocusManager* focus_manager) {
20 if (!focus_manager) { 20 if (!focus_manager) {
21 NOTREACHED(); 21 NOTREACHED();
22 return; 22 return;
23 } 23 }
24 if (event.os_event && !event.skip_in_browser) 24 if (event.os_event && !event.skip_in_browser)
25 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event)); 25 focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event));
26 } 26 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.cc ('k') | chrome/test/reliability/automated_ui_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698