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

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: fix test failures on windows. Created 5 years, 5 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: 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() {

Powered by Google App Engine
This is Rietveld 408576698