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

Unified Diff: ui/views/ime/mock_input_method.cc

Issue 12902029: Fix InputMethod Widget activation checks; cleanup, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Activate the Widget used in views_unittests; etc. Created 7 years, 9 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/views/ime/mock_input_method.cc
diff --git a/ui/views/ime/mock_input_method.cc b/ui/views/ime/mock_input_method.cc
index 91d6a63ad973739d27a387bda78a2782db9f1e51..9055d060eacd0c38522b815298e01806137142b4 100644
--- a/ui/views/ime/mock_input_method.cc
+++ b/ui/views/ime/mock_input_method.cc
@@ -33,7 +33,7 @@ MockInputMethod::MockInputMethod(internal::InputMethodDelegate* delegate)
locale_("en-US"),
direction_(base::i18n::LEFT_TO_RIGHT),
active_(true) {
- set_delegate(delegate);
+ SetDelegate(delegate);
}
MockInputMethod::~MockInputMethod() {
@@ -43,6 +43,10 @@ void MockInputMethod::Init(Widget* widget) {
InputMethodBase::Init(widget);
}
+void MockInputMethod::OnFocus() {}
+
+void MockInputMethod::OnBlur() {}
+
void MockInputMethod::DispatchKeyEvent(const ui::KeyEvent& key) {
bool handled = (composition_changed_ || result_text_.length()) &&
!IsTextInputTypeNone();

Powered by Google App Engine
This is Rietveld 408576698