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

Unified Diff: chromeos/ime/extension_ime_util.h

Issue 13060003: Extract Extension IME related utility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
Index: chromeos/ime/extension_ime_util.h
diff --git a/chromeos/ime/extension_ime_util.h b/chromeos/ime/extension_ime_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..fd8505c971a55978e0d3b919301fe3f5fcbc5442
--- /dev/null
+++ b/chromeos/ime/extension_ime_util.h
@@ -0,0 +1,28 @@
+// 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 CHROMEOS_IME_EXTENSION_IME_UTIL_H_
+#define CHROMEOS_IME_EXTENSION_IME_UTIL_H_
+
+#include <string>
+
+#include "chromeos/chromeos_export.h"
+
+namespace chromeos {
+
+// Extension IME related utilities.
+namespace extension_ime_util {
+
+// Returns InputMethodID for |engine_id| in |extension_id|.
+std::string CHROMEOS_EXPORT GetInputMethodID(const std::string& extension_id,
+ const std::string& engine_id);
+
+// Returns true if the |input_method_id| is extension ime.
+bool CHROMEOS_EXPORT IsExtensionIME(const std::string& input_method_id);
+
+} // extension_ime_util
+
+} // namespace chromeos
+
+#endif // CHROMEOS_IME_EXTENSION_IME_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698