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..883876be52495e39a89389b0b7f03ef0ec0bb7c2 |
--- /dev/null |
+++ b/ui/ozone/ime/input_method_context_factory_ozone.h |
@@ -0,0 +1,31 @@ |
+// 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" |
+ |
+namespace ui { |
+ |
+class LinuxInputMethodContext; |
+class LinuxInputMethodContextDelegate; |
Yuki
2013/12/11 09:31:14
You don't need these two forward declarations.
It
|
+ |
+// An interface that lets different Ozone platforms override the |
+// CreateInputMethodContext function declared here to return native input method |
+// contexts. |
+class UI_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_ |