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

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

Issue 5904003: Support US Colemak keyboard layout (Chrome part) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fixes Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 { "m17n:zh:cangjie", "zh_TW" }, 57 { "m17n:zh:cangjie", "zh_TW" },
58 { "m17n:zh:quick", "zh_TW" }, 58 { "m17n:zh:quick", "zh_TW" },
59 { "m17n:vi:tcvn", "vi" }, 59 { "m17n:vi:tcvn", "vi" },
60 { "m17n:vi:telex", "vi" }, 60 { "m17n:vi:telex", "vi" },
61 { "m17n:vi:viqr", "vi" }, 61 { "m17n:vi:viqr", "vi" },
62 { "m17n:vi:vni", "vi" }, 62 { "m17n:vi:vni", "vi" },
63 { "xkb:us::eng", "en_US" }, 63 { "xkb:us::eng", "en_US" },
64 { "xkb:us:intl:eng", "en_US" }, 64 { "xkb:us:intl:eng", "en_US" },
65 { "xkb:us:altgr-intl:eng", "en_US" }, 65 { "xkb:us:altgr-intl:eng", "en_US" },
66 { "xkb:us:dvorak:eng", "en_US_dvorak" }, 66 { "xkb:us:dvorak:eng", "en_US_dvorak" },
67 // TODO(mazda): Add keyboard overlay definition for US Colemak.
68 { "xkb:us:colemak:eng", "en_US" },
67 { "hangul", "ko" }, 69 { "hangul", "ko" },
68 { "pinyin", "zh_CN" }, 70 { "pinyin", "zh_CN" },
69 { "m17n:ar:kbd", "ar" }, 71 { "m17n:ar:kbd", "ar" },
70 { "m17n:hi:itrans", "hi" }, 72 { "m17n:hi:itrans", "hi" },
71 { "m17n:fa:isiri", "ar" }, 73 { "m17n:fa:isiri", "ar" },
72 { "xkb:br::por", "pt_BR" }, 74 { "xkb:br::por", "pt_BR" },
73 { "xkb:bg::bul", "bg" }, 75 { "xkb:bg::bul", "bg" },
74 { "xkb:bg:phonetic:bul", "bg" }, 76 { "xkb:bg:phonetic:bul", "bg" },
75 { "xkb:ca:eng:eng", "ca" }, 77 { "xkb:ca:eng:eng", "ca" },
76 { "xkb:cz::cze", "cs" }, 78 { "xkb:cz::cze", "cs" },
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 { "Italy", IDS_STATUSBAR_LAYOUT_ITALY }, 273 { "Italy", IDS_STATUSBAR_LAYOUT_ITALY },
272 { "Estonia", IDS_STATUSBAR_LAYOUT_ESTONIA }, 274 { "Estonia", IDS_STATUSBAR_LAYOUT_ESTONIA },
273 { "Hungary", IDS_STATUSBAR_LAYOUT_HUNGARY }, 275 { "Hungary", IDS_STATUSBAR_LAYOUT_HUNGARY },
274 { "Poland", IDS_STATUSBAR_LAYOUT_POLAND }, 276 { "Poland", IDS_STATUSBAR_LAYOUT_POLAND },
275 { "Denmark", IDS_STATUSBAR_LAYOUT_DENMARK }, 277 { "Denmark", IDS_STATUSBAR_LAYOUT_DENMARK },
276 { "Croatia", IDS_STATUSBAR_LAYOUT_CROATIA }, 278 { "Croatia", IDS_STATUSBAR_LAYOUT_CROATIA },
277 { "Brazil", IDS_STATUSBAR_LAYOUT_BRAZIL }, 279 { "Brazil", IDS_STATUSBAR_LAYOUT_BRAZIL },
278 { "Serbia", IDS_STATUSBAR_LAYOUT_SERBIA }, 280 { "Serbia", IDS_STATUSBAR_LAYOUT_SERBIA },
279 { "Czechia", IDS_STATUSBAR_LAYOUT_CZECHIA }, 281 { "Czechia", IDS_STATUSBAR_LAYOUT_CZECHIA },
280 { "USA - Dvorak", IDS_STATUSBAR_LAYOUT_USA_DVORAK }, 282 { "USA - Dvorak", IDS_STATUSBAR_LAYOUT_USA_DVORAK },
283 { "USA - Colemak", IDS_STATUSBAR_LAYOUT_USA_COLEMAK },
281 { "Romania", IDS_STATUSBAR_LAYOUT_ROMANIA }, 284 { "Romania", IDS_STATUSBAR_LAYOUT_ROMANIA },
282 { "USA", IDS_STATUSBAR_LAYOUT_USA }, 285 { "USA", IDS_STATUSBAR_LAYOUT_USA },
283 { "USA - International (AltGr dead keys)", 286 { "USA - International (AltGr dead keys)",
284 IDS_STATUSBAR_LAYOUT_USA_EXTENDED }, 287 IDS_STATUSBAR_LAYOUT_USA_EXTENDED },
285 { "USA - International (with dead keys)", 288 { "USA - International (with dead keys)",
286 IDS_STATUSBAR_LAYOUT_USA_INTERNATIONAL }, 289 IDS_STATUSBAR_LAYOUT_USA_INTERNATIONAL },
287 { "Lithuania", IDS_STATUSBAR_LAYOUT_LITHUANIA }, 290 { "Lithuania", IDS_STATUSBAR_LAYOUT_LITHUANIA },
288 { "United Kingdom - Extended - Winkeys", 291 { "United Kingdom - Extended - Winkeys",
289 IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM }, 292 IDS_STATUSBAR_LAYOUT_UNITED_KINGDOM },
290 { "Slovakia", IDS_STATUSBAR_LAYOUT_SLOVAKIA }, 293 { "Slovakia", IDS_STATUSBAR_LAYOUT_SLOVAKIA },
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 library->ChangeInputMethod(initial_input_method_id); 693 library->ChangeInputMethod(initial_input_method_id);
691 } 694 }
692 } 695 }
693 696
694 void OnLocaleChanged() { 697 void OnLocaleChanged() {
695 IdMaps::GetInstance()->ReloadMaps(); 698 IdMaps::GetInstance()->ReloadMaps();
696 } 699 }
697 700
698 } // namespace input_method 701 } // namespace input_method
699 } // namespace chromeos 702 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chromeos/input_method/input_method_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698