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

Unified Diff: ui/views/widget/native_widget_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 | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
===================================================================
--- ui/views/widget/native_widget_aura.cc (revision 150588)
+++ ui/views/widget/native_widget_aura.cc (working copy)
@@ -687,7 +687,7 @@
////////////////////////////////////////////////////////////////////////////////
// NativeWidgetAura, views::InputMethodDelegate implementation:
-void NativeWidgetAura::DispatchKeyEventPostIME(const KeyEvent& key) {
+void NativeWidgetAura::DispatchKeyEventPostIME(const ui::KeyEvent& key) {
FocusManager* focus_manager = GetWidget()->GetFocusManager();
if (focus_manager)
focus_manager->MaybeResetMenuKeyState(key);
@@ -746,10 +746,7 @@
// and the window may be invisible by that time.
if (!window_->IsVisible())
return false;
- InputMethod* input_method = GetWidget()->GetInputMethod();
- DCHECK(input_method);
- KeyEvent views_event(event);
- input_method->DispatchKeyEvent(views_event);
+ GetWidget()->GetInputMethod()->DispatchKeyEvent(*event);
return true;
}
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698