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

Unified Diff: chromeos/ime/input_method_whitelist.cc

Issue 13949015: Supporting multiple keyboard layouts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comment Created 7 years, 8 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 | « chromeos/ime/input_method_descriptor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/input_method_whitelist.cc
diff --git a/chromeos/ime/input_method_whitelist.cc b/chromeos/ime/input_method_whitelist.cc
index d9a718c8abcb081b99c9238dbda958a9ee9a64a6..31a81b2934f34881224fb2df2e7c485873d14931 100644
--- a/chromeos/ime/input_method_whitelist.cc
+++ b/chromeos/ime/input_method_whitelist.cc
@@ -31,10 +31,13 @@ InputMethodWhitelist::GetSupportedInputMethods() const {
scoped_ptr<InputMethodDescriptors> input_methods(new InputMethodDescriptors);
input_methods->reserve(arraysize(kInputMethods));
for (size_t i = 0; i < arraysize(kInputMethods); ++i) {
+ std::vector<std::string> layouts;
+ layouts.push_back(kInputMethods[i].xkb_layout_id);
+
input_methods->push_back(InputMethodDescriptor(
kInputMethods[i].input_method_id,
"",
- kInputMethods[i].xkb_layout_id,
+ layouts,
kInputMethods[i].language_code,
"")); // options page url, not available for non-extension input
// method.
« no previous file with comments | « chromeos/ime/input_method_descriptor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698