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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.cc

Issue 16488003: Add the following xkb layouts (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/input_method/input_method_util.h" 5 #include "chrome/browser/chromeos/input_method/input_method_util.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 { "xkb:de:neo:ger", IDS_STATUSBAR_LAYOUT_GERMANY_NEO2 }, 225 { "xkb:de:neo:ger", IDS_STATUSBAR_LAYOUT_GERMANY_NEO2 },
226 { "xkb:it::ita", IDS_STATUSBAR_LAYOUT_ITALY }, 226 { "xkb:it::ita", IDS_STATUSBAR_LAYOUT_ITALY },
227 { "xkb:ee::est", IDS_STATUSBAR_LAYOUT_ESTONIA }, 227 { "xkb:ee::est", IDS_STATUSBAR_LAYOUT_ESTONIA },
228 { "xkb:hu::hun", IDS_STATUSBAR_LAYOUT_HUNGARY }, 228 { "xkb:hu::hun", IDS_STATUSBAR_LAYOUT_HUNGARY },
229 { "xkb:pl::pol", IDS_STATUSBAR_LAYOUT_POLAND }, 229 { "xkb:pl::pol", IDS_STATUSBAR_LAYOUT_POLAND },
230 { "xkb:dk::dan", IDS_STATUSBAR_LAYOUT_DENMARK }, 230 { "xkb:dk::dan", IDS_STATUSBAR_LAYOUT_DENMARK },
231 { "xkb:hr::scr", IDS_STATUSBAR_LAYOUT_CROATIA }, 231 { "xkb:hr::scr", IDS_STATUSBAR_LAYOUT_CROATIA },
232 { "xkb:br::por", IDS_STATUSBAR_LAYOUT_BRAZIL }, 232 { "xkb:br::por", IDS_STATUSBAR_LAYOUT_BRAZIL },
233 { "xkb:rs::srp", IDS_STATUSBAR_LAYOUT_SERBIA }, 233 { "xkb:rs::srp", IDS_STATUSBAR_LAYOUT_SERBIA },
234 { "xkb:cz::cze", IDS_STATUSBAR_LAYOUT_CZECHIA }, 234 { "xkb:cz::cze", IDS_STATUSBAR_LAYOUT_CZECHIA },
235 { "xkb:cz:qwerty:cze", IDS_STATUSBAR_LAYOUT_CZECHIA_QWERTY },
235 { "xkb:us:dvorak:eng", IDS_STATUSBAR_LAYOUT_USA_DVORAK }, 236 { "xkb:us:dvorak:eng", IDS_STATUSBAR_LAYOUT_USA_DVORAK },
236 { "xkb:us:colemak:eng", IDS_STATUSBAR_LAYOUT_USA_COLEMAK }, 237 { "xkb:us:colemak:eng", IDS_STATUSBAR_LAYOUT_USA_COLEMAK },
237 { "xkb:ro::rum", IDS_STATUSBAR_LAYOUT_ROMANIA }, 238 { "xkb:ro::rum", IDS_STATUSBAR_LAYOUT_ROMANIA },
238 { "xkb:us::eng", IDS_STATUSBAR_LAYOUT_USA }, 239 { "xkb:us::eng", IDS_STATUSBAR_LAYOUT_USA },
239 { "xkb:us:altgr-intl:eng", IDS_STATUSBAR_LAYOUT_USA_EXTENDED }, 240 { "xkb:us:altgr-intl:eng", IDS_STATUSBAR_LAYOUT_USA_EXTENDED },
240 { "xkb:us:intl:eng", IDS_STATUSBAR_LAYOUT_USA_INTERNATIONAL }, 241 { "xkb:us:intl:eng", IDS_STATUSBAR_LAYOUT_USA_INTERNATIONAL },
241 { "xkb:lt::lit", IDS_STATUSBAR_LAYOUT_LITHUANIA }, 242 { "xkb:lt::lit", IDS_STATUSBAR_LAYOUT_LITHUANIA },
242 { "xkb:gb:extd:eng", IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM }, 243 { "xkb:gb:extd:eng", IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM },
243 { "xkb:gb:dvorak:eng", IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM_DVORAK }, 244 { "xkb:gb:dvorak:eng", IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM_DVORAK },
244 { "xkb:sk::slo", IDS_STATUSBAR_LAYOUT_SLOVAKIA }, 245 { "xkb:sk::slo", IDS_STATUSBAR_LAYOUT_SLOVAKIA },
(...skipping 18 matching lines...) Expand all
263 { "xkb:se::swe", IDS_STATUSBAR_LAYOUT_SWEDEN }, 264 { "xkb:se::swe", IDS_STATUSBAR_LAYOUT_SWEDEN },
264 { "xkb:nl::nld", IDS_STATUSBAR_LAYOUT_NETHERLANDS }, 265 { "xkb:nl::nld", IDS_STATUSBAR_LAYOUT_NETHERLANDS },
265 { "xkb:latam::spa", IDS_STATUSBAR_LAYOUT_LATIN_AMERICAN }, 266 { "xkb:latam::spa", IDS_STATUSBAR_LAYOUT_LATIN_AMERICAN },
266 { "xkb:lv:apostrophe:lav", IDS_STATUSBAR_LAYOUT_LATVIA }, 267 { "xkb:lv:apostrophe:lav", IDS_STATUSBAR_LAYOUT_LATVIA },
267 { "xkb:ca::fra", IDS_STATUSBAR_LAYOUT_CANADA }, 268 { "xkb:ca::fra", IDS_STATUSBAR_LAYOUT_CANADA },
268 { "xkb:ca:eng:eng", IDS_STATUSBAR_LAYOUT_CANADA_ENGLISH }, 269 { "xkb:ca:eng:eng", IDS_STATUSBAR_LAYOUT_CANADA_ENGLISH },
269 { "xkb:il::heb", IDS_STATUSBAR_LAYOUT_ISRAEL }, 270 { "xkb:il::heb", IDS_STATUSBAR_LAYOUT_ISRAEL },
270 { "xkb:kr:kr104:kor", IDS_STATUSBAR_LAYOUT_KOREA_104 }, 271 { "xkb:kr:kr104:kor", IDS_STATUSBAR_LAYOUT_KOREA_104 },
271 { "xkb:is::ice", IDS_STATUSBAR_LAYOUT_ICELANDIC }, 272 { "xkb:is::ice", IDS_STATUSBAR_LAYOUT_ICELANDIC },
272 { "xkb:ca:multix:fra", IDS_STATUSBAR_LAYOUT_CANADIAN_MULTILINGUAL }, 273 { "xkb:ca:multix:fra", IDS_STATUSBAR_LAYOUT_CANADIAN_MULTILINGUAL },
274 { "xkb:by::bel", IDS_STATUSBAR_LAYOUT_BELARUSIAN },
275 { "xkb:am:phonetic:arm", IDS_STATUSBAR_LAYOUT_ARMENIAN_PHONETIC },
276 { "xkb:ge::geo", IDS_STATUSBAR_LAYOUT_GEORGIAN },
277 { "xkb:mn::mon", IDS_STATUSBAR_LAYOUT_MONGOLIAN },
273 278
274 { "english-m", IDS_STATUSBAR_LAYOUT_USA_MYSTERY }, 279 { "english-m", IDS_STATUSBAR_LAYOUT_USA_MYSTERY },
275 }; 280 };
276 const size_t kEnglishToResourceIdArraySize = 281 const size_t kEnglishToResourceIdArraySize =
277 arraysize(kEnglishToResourceIdArray); 282 arraysize(kEnglishToResourceIdArray);
278 283
279 // The list of language that do not have associated input methods in IBus. 284 // The list of language that do not have associated input methods in IBus.
280 // For these languages, we associate input methods here. 285 // For these languages, we associate input methods here.
281 const struct ExtraLanguage { 286 const struct ExtraLanguage {
282 const char* language_code; 287 const char* language_code;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 if (iter != id_to_descriptor_.end()) { 706 if (iter != id_to_descriptor_.end()) {
702 const InputMethodDescriptor& input_method = iter->second; 707 const InputMethodDescriptor& input_method = iter->second;
703 language_code_to_ids_.insert( 708 language_code_to_ids_.insert(
704 std::make_pair(language_code, input_method.id())); 709 std::make_pair(language_code, input_method.id()));
705 } 710 }
706 } 711 }
707 } 712 }
708 713
709 } // namespace input_method 714 } // namespace input_method
710 } // namespace chromeos 715 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | chromeos/ime/input_methods.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698