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

Unified Diff: chrome/browser/chromeos/input_method/input_method_engine.cc

Issue 1155013005: Refactoring the ownership of ui::InputMethod. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pls be green! Created 5 years, 7 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/chromeos/input_method/input_method_engine.cc
diff --git a/chrome/browser/chromeos/input_method/input_method_engine.cc b/chrome/browser/chromeos/input_method/input_method_engine.cc
index 0c53579b2eda32b74ce0f83c9dce0101e010ed4a..14a05c481efc38f430cdc7d2469e5dd0399ec457 100644
--- a/chrome/browser/chromeos/input_method/input_method_engine.cc
+++ b/chrome/browser/chromeos/input_method/input_method_engine.cc
@@ -291,8 +291,8 @@ bool InputMethodEngine::SendKeyEvents(
return false;
}
- ui::EventProcessor* dispatcher =
- ash::Shell::GetPrimaryRootWindow()->GetHost()->event_processor();
+ ui::InputMethod* input_method =
+ ash::Shell::GetPrimaryRootWindow()->GetHost()->GetInputMethod();
for (size_t i = 0; i < events.size(); ++i) {
const KeyboardEvent& event = events[i];
@@ -323,9 +323,7 @@ bool InputMethodEngine::SendKeyEvents(
ui::EventTimeForNow());
base::AutoReset<const ui::KeyEvent*> reset_sent_key(&sent_key_event_,
&ui_event);
- ui::EventDispatchDetails details = dispatcher->OnEventFromSource(&ui_event);
- if (details.dispatcher_destroyed)
- break;
+ input_method->DispatchKeyEvent(ui_event);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698