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

Unified Diff: mojo/converters/ime/ime_type_converters.h

Issue 1286383003: Mandoline: Enable Android software keyboard for the Omnibox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address review issues Created 5 years, 4 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 | « mojo/converters/ime/DEPS ('k') | mojo/converters/ime/ime_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/ime/ime_type_converters.h
diff --git a/mojo/converters/ime/ime_type_converters.h b/mojo/converters/ime/ime_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..11fa01d22e7cb2d67c3dc779b4a82bf600eb12d2
--- /dev/null
+++ b/mojo/converters/ime/ime_type_converters.h
@@ -0,0 +1,31 @@
+// Copyright 2015 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 MOJO_CONVERTERS_IME_IME_TYPE_CONVERTERS_H_
+#define MOJO_CONVERTERS_IME_IME_TYPE_CONVERTERS_H_
+
+#include "mojo/converters/ime/mojo_ime_export.h"
+#include "ui/mojo/ime/text_input_state.mojom.h"
+#include "ui/platform_window/text_input_state.h"
+
+namespace mojo {
+
+template <>
+struct MOJO_IME_EXPORT TypeConverter<TextInputType, ui::TextInputType> {
+ static TextInputType Convert(const ui::TextInputType& input);
+};
+
+template <>
+struct MOJO_IME_EXPORT TypeConverter<ui::TextInputType, TextInputType> {
+ static ui::TextInputType Convert(const TextInputType& input);
+};
+
+template <>
+struct MOJO_IME_EXPORT TypeConverter<ui::TextInputState, TextInputStatePtr> {
+ static ui::TextInputState Convert(const TextInputStatePtr& input);
+};
+
+} // namespace mojo
+
+#endif // MOJO_CONVERTERS_IME_IME_TYPE_CONVERTERS_H_
« no previous file with comments | « mojo/converters/ime/DEPS ('k') | mojo/converters/ime/ime_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698