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

Unified Diff: chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | content/shell/shell_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc
===================================================================
--- chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc (revision 150588)
+++ chrome/browser/ui/views/unhandled_keyboard_event_handler_aurax11.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "content/public/browser/native_web_keyboard_event.h"
+#include "ui/base/event.h"
#include "ui/views/focus/focus_manager.h"
using content::NativeWebKeyboardEvent;
@@ -20,8 +21,6 @@
NOTREACHED();
return;
}
- if (event.os_event && !event.skip_in_browser) {
- views::KeyEvent views_event(event.os_event);
- focus_manager->OnKeyEvent(views_event);
- }
+ if (event.os_event && !event.skip_in_browser)
+ focus_manager->OnKeyEvent(*static_cast<ui::KeyEvent*>(event.os_event));
}
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | content/shell/shell_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698