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

Unified Diff: chromeos/ime/extension_ime_util.h

Issue 433163005: Refactoring for InputMethodEngine and InputMethodEventRouter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: error tolerance for missing background page for key events. Created 6 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
Index: chromeos/ime/extension_ime_util.h
diff --git a/chromeos/ime/extension_ime_util.h b/chromeos/ime/extension_ime_util.h
index e8a3ba1674e50c50b0fd80a5d5c851aa9bc1937f..1b0093665e0d7fdaea468a7c258dcc1484f6d297 100644
--- a/chromeos/ime/extension_ime_util.h
+++ b/chromeos/ime/extension_ime_util.h
@@ -81,6 +81,12 @@ bool CHROMEOS_EXPORT IsMemberOfExtension(const std::string& input_method_id,
bool CHROMEOS_EXPORT IsKeyboardLayoutExtension(
const std::string& input_method_id);
+// Returns engine id from the extension-based InputMethodID for component
+// IME extensions. This function does not check that |input_method_id| is
+// installed.
+std::string CHROMEOS_EXPORT
+ GetEngineIDByInputMethodID(const std::string& input_method_id);
Yuki 2014/08/06 04:42:24 IIRC, std::string CHROMEOS_EXPORT GetEngineIDByInp
Shu Chen 2014/08/06 05:45:03 Done.
+
// Gets legacy xkb id (e.g. xkb:us::eng) from the new extension based xkb id
// (e.g. _comp_ime_...xkb:us::eng). If the given id is not prefixed with
// 'xkb:', just return the same as the given id.

Powered by Google App Engine
This is Rietveld 408576698