Chromium Code Reviews| 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, |