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

Unified Diff: ui/base/ime/input_method_base.cc

Issue 1257603006: Refactoring for the InputMethod & InputMethodDelegate interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Sadrul's comment. Created 5 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/base/ime/input_method_base.h ('k') | ui/base/ime/input_method_base_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_base.cc
diff --git a/ui/base/ime/input_method_base.cc b/ui/base/ime/input_method_base.cc
index dc856198b0ca3bc873b870fc677cf049360b9763..3441f928b90ac43904356b406a51997ea0d60ffa 100644
--- a/ui/base/ime/input_method_base.cc
+++ b/ui/base/ime/input_method_base.cc
@@ -104,12 +104,12 @@ void InputMethodBase::OnInputMethodChanged() const {
client->OnInputMethodChanged();
}
-bool InputMethodBase::DispatchKeyEventPostIME(
- const ui::KeyEvent& event) const {
- if (!delegate_)
- return false;
-
- return delegate_->DispatchKeyEventPostIME(event);
+ui::EventDispatchDetails InputMethodBase::DispatchKeyEventPostIME(
+ ui::KeyEvent* event) const {
+ ui::EventDispatchDetails details;
+ if (delegate_)
+ details = delegate_->DispatchKeyEventPostIME(event);
+ return details;
}
void InputMethodBase::NotifyTextInputStateChanged(
« no previous file with comments | « ui/base/ime/input_method_base.h ('k') | ui/base/ime/input_method_base_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698