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

Unified Diff: ui/base/ime/mock_input_method.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/mock_input_method.h ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/mock_input_method.cc
diff --git a/ui/base/ime/mock_input_method.cc b/ui/base/ime/mock_input_method.cc
index 8ff36190fbe6a2bc08ed105d464073e9086c1d72..f2cf8ebc67f5c4a29848e5740006f573c640027d 100644
--- a/ui/base/ime/mock_input_method.cc
+++ b/ui/base/ime/mock_input_method.cc
@@ -40,8 +40,8 @@ TextInputClient* MockInputMethod::GetTextInputClient() const {
return text_input_client_;
}
-bool MockInputMethod::DispatchKeyEvent(const ui::KeyEvent& event) {
- return delegate_->DispatchKeyEventPostIME(event);
+void MockInputMethod::DispatchKeyEvent(ui::KeyEvent* event) {
+ ignore_result(delegate_->DispatchKeyEventPostIME(event));
}
void MockInputMethod::OnFocus() {
« no previous file with comments | « ui/base/ime/mock_input_method.h ('k') | ui/base/ime/remote_input_method_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698