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

Unified Diff: chrome/browser/ui/views/dropdown_bar_host_aura.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/dropdown_bar_host.h ('k') | chrome/browser/ui/views/dropdown_bar_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/dropdown_bar_host_aura.cc
===================================================================
--- chrome/browser/ui/views/dropdown_bar_host_aura.cc (revision 150588)
+++ chrome/browser/ui/views/dropdown_bar_host_aura.cc (working copy)
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "ui/aura/window.h"
+#include "ui/base/event.h"
#include "ui/views/widget/widget.h"
using content::NativeWebKeyboardEvent;
@@ -13,8 +14,10 @@
NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent(
const WebContents* contents,
- const views::KeyEvent& key_event) {
- return NativeWebKeyboardEvent(key_event.native_event());
+ const ui::KeyEvent& key_event) {
+ ui::Event* ui_event =
sky 2012/08/08 21:39:18 Seems like NativeWebKeyboardEvent should take a co
+ static_cast<ui::Event*>(const_cast<ui::KeyEvent*>(&key_event));
+ return NativeWebKeyboardEvent(ui_event);
}
void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos,
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host.h ('k') | chrome/browser/ui/views/dropdown_bar_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698