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

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 7663008: Add GetInputMethodDescriptorFromXkbId function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 9 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 | « no previous file | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/input_method_util.h
diff --git a/chrome/browser/chromeos/input_method/input_method_util.h b/chrome/browser/chromeos/input_method/input_method_util.h
index 0dd7897a789aad8b1828f886196bb67937234de6..b542f21f9326eaac83c2296b2080bb36a9ea2839 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.h
+++ b/chrome/browser/chromeos/input_method/input_method_util.h
@@ -94,6 +94,13 @@ std::string GetInputMethodDisplayNameFromId(const std::string& input_method_id);
const InputMethodDescriptor* GetInputMethodDescriptorFromId(
const std::string& input_method_id);
+// Converts an XKB layout ID to an input method descriptor. Returns NULL when
+// |xkb_id| is unknown.
+// Example: "us(dvorak)" => { id: "xkb:us:dvorak:eng", display_name: "US Dv..",
+// keyboard_layout: "us(dvorak)", language_code: "eng" }
+const InputMethodDescriptor* GetInputMethodDescriptorFromXkbId(
+ const std::string& xkb_id);
+
// Converts a language code to a language display name, using the
// current application locale. MaybeRewriteLanguageName() is called
// internally.
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698