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

Unified Diff: ui/base/ime/input_method_factory.cc

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows support Created 9 years 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/input_method_factory.cc
diff --git a/ui/base/ime/input_method_factory.cc b/ui/base/ime/input_method_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9650866a5ab9b6aed1bbda2ddeb97724c4755e9f
--- /dev/null
+++ b/ui/base/ime/input_method_factory.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2011 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_factory.h"
+
+#include "ui/base/ime/input_method_delegate.h"
+
+#if defined(HAVE_IBUS)
+#include "ui/base/ime/input_method_ibus.h"
+#else
+#include "ui/base/ime/mock_input_method.h"
+#endif
+
+namespace ui {
+
+InputMethod* CreateInputMethod(internal::InputMethodDelegate* delegate) {
+#if defined(HAVE_IBUS)
+ return new ui::InputMethodIBus(delegate);
+#else
+ return new ui::MockInputMethod(delegate);
+#endif
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698