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

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: mv InputMethodContextFactoryOzone to ozone/ime 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
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_

Powered by Google App Engine
This is Rietveld 408576698