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

Unified Diff: ui/base/ime/input_method_mac.mm

Issue 312523003: MacViews: Implement a ui::InputMethod for Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_mac.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_mac.mm
diff --git a/ui/base/ime/input_method_mac.mm b/ui/base/ime/input_method_mac.mm
new file mode 100644
index 0000000000000000000000000000000000000000..c4b55c984d93082e905544ba56eac4e885979be3
--- /dev/null
+++ b/ui/base/ime/input_method_mac.mm
@@ -0,0 +1,49 @@
+// 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/base/ime/input_method_mac.h"
+
+namespace ui {
+
+InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) {
+ SetDelegate(delegate);
+}
+
+InputMethodMac::~InputMethodMac() {
+}
+
+bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event,
+ NativeEventResult* result) {
+ return false;
+}
+
+bool InputMethodMac::DispatchKeyEvent(const ui::KeyEvent& event) {
+ // IME processing on the Mac does not go through this path.
+ NOTREACHED();
+ return false;
+}
+
+void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) {
+}
+
+void InputMethodMac::CancelComposition(const TextInputClient* client) {
+}
+
+void InputMethodMac::OnInputLocaleChanged() {
+}
+
+std::string InputMethodMac::GetInputLocale() {
+ return "";
+}
+
+bool InputMethodMac::IsActive() {
+ return true;
Yuki 2014/06/03 07:50:15 I'm not sure if you really want to return true or
Andre 2014/06/03 17:55:03 I agree, it's not clear. This will not be called o
+}
+
+bool InputMethodMac::IsCandidatePopupOpen() const {
+ // There seems to be no way to tell if a candidate window is open.
+ return false;
+}
+
+} // namespace ui
« no previous file with comments | « ui/base/ime/input_method_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698