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

Unified Diff: chrome/browser/extensions/extension_input_api.cc

Issue 6823055: Consolidate OnKeyEvent and InputMethod code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor X2Event handling, nix Windows InputMethodDelegate, etc. Created 9 years, 8 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
Index: chrome/browser/extensions/extension_input_api.cc
diff --git a/chrome/browser/extensions/extension_input_api.cc b/chrome/browser/extensions/extension_input_api.cc
index b3b84731491f371ba47c278090a02d89479a88ea..aef56db54325493fa70db11784291f0bbb397c78 100644
--- a/chrome/browser/extensions/extension_input_api.cc
+++ b/chrome/browser/extensions/extension_input_api.cc
@@ -122,10 +122,7 @@ bool SendKeyboardEventInputFunction::RunImpl() {
}
views::KeyEvent event(type, prototype_event.key_code(), flags);
- views::InputMethod* ime = root_view->GetWidget()->GetInputMethod();
- if (ime) {
- ime->DispatchKeyEvent(event);
- } else if (!root_view->ProcessKeyEvent(event)) {
+ if (!root_view->GetWidget()->OnKeyEvent(event)) {
error_ = kKeyEventUnprocessedError;
return false;
}
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_views_unittest.cc » ('j') | views/ime/input_method_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698