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

Unified Diff: ui/ozone/ime/input_method_context_factory_ozone.h

Issue 100213003: Support for providing IMEContext with Ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 7 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
« no previous file with comments | « ui/ozone/ime/fake_input_method_context_ozone.cc ('k') | ui/ozone/ime/input_method_context_factory_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/ime/input_method_context_factory_ozone.h
diff --git a/ui/ozone/ime/input_method_context_factory_ozone.h b/ui/ozone/ime/input_method_context_factory_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..4155c52962fc8317f2bc5c1c3ab5a0e7bad6fa37
--- /dev/null
+++ b/ui/ozone/ime/input_method_context_factory_ozone.h
@@ -0,0 +1,29 @@
+// Copyright 2013 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.
+
+#ifndef UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_
+#define UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_
+
+#include "ui/base/ime/linux/linux_input_method_context_factory.h"
+#include "ui/ozone/ozone_export.h"
+
+namespace ui {
+// TODO(kalyan): Move this class to ui/ime, once ui/base/ime is moved to ui/ime.
+// An interface that lets different Ozone platforms override the
+// CreateInputMethodContext function declared here to return native input method
+// contexts.
+class OZONE_EXPORT InputMethodContextFactoryOzone :
+ public LinuxInputMethodContextFactory {
+ public:
+ InputMethodContextFactoryOzone();
+ virtual ~InputMethodContextFactoryOzone();
+
+ // By default this returns a minimal input method context.
+ virtual scoped_ptr<LinuxInputMethodContext> CreateInputMethodContext(
+ LinuxInputMethodContextDelegate* delegate) const OVERRIDE;
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_
« no previous file with comments | « ui/ozone/ime/fake_input_method_context_ozone.cc ('k') | ui/ozone/ime/input_method_context_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698