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

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

Issue 173803002: Redesigns the text input focus handling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 6 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/null_input_method.cc
diff --git a/ui/views/ime/null_input_method.cc b/ui/views/ime/null_input_method.cc
new file mode 100644
index 0000000000000000000000000000000000000000..64719b75e5f563478c87b2dafb220b9152c66ee9
--- /dev/null
+++ b/ui/views/ime/null_input_method.cc
@@ -0,0 +1,61 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/views/ime/null_input_method.h"
+
+namespace views {
+
+NullInputMethod::NullInputMethod() {}
+
+void NullInputMethod::SetDelegate(
+ internal::InputMethodDelegate* /* delegate */) {}
+
+void NullInputMethod::Init(Widget* /* widget */) {}
+
+void NullInputMethod::OnFocus() {}
+
+void NullInputMethod::OnBlur() {}
+
+bool NullInputMethod::OnUntranslatedIMEMessage(
+ const base::NativeEvent& /* event */, NativeEventResult* /* result */) {
msw 2014/03/11 00:58:50 nit: one parameter per line.
Yuki 2014/03/11 15:27:37 Done.
+ return false;
+}
+
+void NullInputMethod::DispatchKeyEvent(const ui::KeyEvent& /* key */) {}
+
+void NullInputMethod::OnTextInputTypeChanged(View* /* view */) {}
+
+void NullInputMethod::OnCaretBoundsChanged(View* /* view */) {}
+
+void NullInputMethod::CancelComposition(View* /* view */) {}
+
+void NullInputMethod::OnInputLocaleChanged() {}
+
+std::string NullInputMethod::GetInputLocale() {
+ return "";
msw 2014/03/11 00:58:50 nit: return std::string();
Yuki 2014/03/11 15:27:37 Done.
+}
+
+bool NullInputMethod::IsActive() {
+ return false;
+}
+
+ui::TextInputClient* NullInputMethod::GetTextInputClient() const {
+ return NULL;
+}
+
+ui::TextInputType NullInputMethod::GetTextInputType() const {
+ return ui::TEXT_INPUT_TYPE_NONE;
+}
+
+bool NullInputMethod::IsCandidatePopupOpen() const {
+ return false;
+}
+
+void NullInputMethod::ShowImeIfNeeded() {}
+
+bool NullInputMethod::IsMock() const {
+ return false;
+}
+
+} // namespace views

Powered by Google App Engine
This is Rietveld 408576698