Index: chrome/browser/resources/keyboard/layout_popup.js |
diff --git a/chrome/browser/resources/keyboard/layout_popup.js b/chrome/browser/resources/keyboard/layout_popup.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9dc7ce2ccab219b4a6b33782c651bdb790e254ca |
--- /dev/null |
+++ b/chrome/browser/resources/keyboard/layout_popup.js |
@@ -0,0 +1,130 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// This file is generaged by gen_keyboard_layouts.py |
+ |
+var KEYS_FR_POPUP_E = [ |
bryeung
2011/09/08 19:22:35
Is it possible to put the popup keyboards for a la
mazda
2011/09/12 14:33:48
Done.
|
+ [ |
+ new Key(C("\u0117", "U+0117"), C("\u0116", "U+0116"), C("\u0117", "U+0117"), C("\u0117", "U+0117"), "popupkey"), |
+ new Key(C("\u0113", "U+0113"), C("\u0112", "U+0112"), C("\u0113", "U+0113"), C("\u0113", "U+0113"), "popupkey"), |
+ ], |
+ [ |
+ new Key(C("\u0119", "U+0119"), C("\u0118", "U+0118"), C("\u0119", "U+0119"), C("\u0119", "U+0119"), "popupkey"), |
+ new Key(C("\u00ea", "U+00EA"), C("\u00ca", "U+00CA"), C("\u00ea", "U+00EA"), C("\u00ea", "U+00EA"), "popupkey"), |
+ new Key(C("\u00e9", "U+00E9"), C("\u00c9", "U+00C9"), C("\u00e9", "U+00E9"), C("\u00e9", "U+00E9"), "popupkey"), |
+ new Key(C("\u00e8", "U+00E8"), C("\u00c8", "U+00C8"), C("\u00e8", "U+00E8"), C("\u00e8", "U+00E8"), "popupkey"), |
+ new Key(C("\u00eb", "U+00EB"), C("\u00cb", "U+00CB"), C("\u00eb", "U+00EB"), C("\u00eb", "U+00EB"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_e'] = { |
+ "definition": KEYS_FR_POPUP_E, |
+ "aspect": 1.5, |
+}; |
+ |
+var KEYS_FR_POPUP_A = [ |
+ [ |
+ new Key(C("\u0101", "U+0101"), C("\u0100", "U+0100"), C("\u0101", "U+0101"), C("\u0101", "U+0101"), "popupkey"), |
+ new Key(C("\u00e3", "U+00E3"), C("\u00c3", "U+00C3"), C("\u00e3", "U+00E3"), C("\u00e3", "U+00E3"), "popupkey"), |
+ new Key(C("\u00e5", "U+00E5"), C("\u00c5", "U+00C5"), C("\u00e5", "U+00E5"), C("\u00e5", "U+00E5"), "popupkey"), |
+ new Key(C("\u00aa", "U+00AA"), C("\u00aa", "U+00AA"), C("\u00aa", "U+00AA"), C("\u00aa", "U+00AA"), "popupkey"), |
+ ], |
+ [ |
+ new Key(C("\u00e4", "U+00E4"), C("\u00c4", "U+00C4"), C("\u00e4", "U+00E4"), C("\u00e4", "U+00E4"), "popupkey"), |
+ new Key(C("\u00e6", "U+00E6"), C("\u00c6", "U+00C6"), C("\u00e6", "U+00E6"), C("\u00e6", "U+00E6"), "popupkey"), |
+ new Key(C("\u00e0", "U+00E0"), C("\u00c0", "U+00C0"), C("\u00e0", "U+00E0"), C("\u00e0", "U+00E0"), "popupkey"), |
+ new Key(C("\u00e2", "U+00E2"), C("\u00c2", "U+00C2"), C("\u00e2", "U+00E2"), C("\u00e2", "U+00E2"), "popupkey"), |
+ new Key(C("\u00e1", "U+00E1"), C("\u00c1", "U+00C1"), C("\u00e1", "U+00E1"), C("\u00e1", "U+00E1"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_a'] = { |
+ "definition": KEYS_FR_POPUP_A, |
+ "aspect": 1.5, |
+}; |
+ |
+var KEYS_FR_POPUP_C = [ |
+ [ |
+ new Key(C("\u010d", "U+010D"), C("\u010c", "U+010C"), C("\u010d", "U+010D"), C("\u010d", "U+010D"), "popupkey"), |
+ new Key(C("\u00e7", "U+00E7"), C("\u00c7", "U+00C7"), C("\u00e7", "U+00E7"), C("\u00e7", "U+00E7"), "popupkey"), |
+ new Key(C("\u0107", "U+0107"), C("\u0106", "U+0106"), C("\u0107", "U+0107"), C("\u0107", "U+0107"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_c'] = { |
+ "definition": KEYS_FR_POPUP_C, |
+ "aspect": 1.8, |
+}; |
+ |
+var KEYS_FR_POPUP_O = [ |
+ [ |
+ new Key(C("\u014d", "U+014D"), C("\u014c", "U+014C"), C("\u014d", "U+014D"), C("\u014d", "U+014D"), "popupkey"), |
+ new Key(C("\u00f5", "U+00F5"), C("\u00d5", "U+00D5"), C("\u00f5", "U+00F5"), C("\u00f5", "U+00F5"), "popupkey"), |
+ new Key(C("\u00f8", "U+00F8"), C("\u00d8", "U+00D8"), C("\u00f8", "U+00F8"), C("\u00f8", "U+00F8"), "popupkey"), |
+ new Key(C("\u00ba", "U+00BA"), C("\u00ba", "U+00BA"), C("\u00ba", "U+00BA"), C("\u00ba", "U+00BA"), "popupkey"), |
+ ], |
+ [ |
+ new Key(C("\u00f3", "U+00F3"), C("\u00f3", "U+00F3"), C("\u00f3", "U+00F3"), C("\u00f3", "U+00F3"), "popupkey"), |
+ new Key(C("\u00f6", "U+00F6"), C("\u00d6", "U+00D6"), C("\u00f6", "U+00F6"), C("\u00f6", "U+00F6"), "popupkey"), |
+ new Key(C("\u00f4", "U+00F4"), C("\u00d4", "U+00D4"), C("\u00f4", "U+00F4"), C("\u00f4", "U+00F4"), "popupkey"), |
+ new Key(C("\u0153", "U+0153"), C("\u0152", "U+0152"), C("\u0153", "U+0153"), C("\u0153", "U+0153"), "popupkey"), |
+ new Key(C("\u00f2", "U+00F2"), C("\u00d2", "U+00D2"), C("\u00f2", "U+00F2"), C("\u00f2", "U+00F2"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_o'] = { |
+ "definition": KEYS_FR_POPUP_O, |
+ "aspect": 1.5, |
+}; |
+ |
+var KEYS_FR_POPUP_I = [ |
+ [ |
+ new Key(C("\u012b", "U+012B"), C("\u012a", "U+012A"), C("\u012b", "U+012B"), C("\u012b", "U+012B"), "popupkey"), |
+ ], |
+ [ |
+ new Key(C("\u012f", "U+012F"), C("\u012e", "U+012E"), C("\u012f", "U+012F"), C("\u012f", "U+012F"), "popupkey"), |
+ new Key(C("\u00ec", "U+00EC"), C("\u00cc", "U+00CC"), C("\u00ec", "U+00EC"), C("\u00ec", "U+00EC"), "popupkey"), |
+ new Key(C("\u00ee", "U+00EE"), C("\u00ce", "U+00CE"), C("\u00ee", "U+00EE"), C("\u00ee", "U+00EE"), "popupkey"), |
+ new Key(C("\u00ef", "U+00EF"), C("\u00cf", "U+00CF"), C("\u00ef", "U+00EF"), C("\u00ef", "U+00EF"), "popupkey"), |
+ new Key(C("\u00ed", "U+00ED"), C("\u00cd", "U+00CD"), C("\u00ed", "U+00ED"), C("\u00ed", "U+00ED"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_i'] = { |
+ "definition": KEYS_FR_POPUP_I, |
+ "aspect": 1.5, |
+}; |
+ |
+var KEYS_FR_POPUP_U = [ |
+ [ |
+ new Key(C("\u016b", "U+016B"), C("\u016a", "U+016A"), C("\u016b", "U+016B"), C("\u016b", "U+016B"), "popupkey"), |
+ new Key(C("\u00fc", "U+00FC"), C("\u00dc", "U+00DC"), C("\u00fc", "U+00FC"), C("\u00fc", "U+00FC"), "popupkey"), |
+ new Key(C("\u00fb", "U+00FB"), C("\u00db", "U+00DB"), C("\u00fb", "U+00FB"), C("\u00fb", "U+00FB"), "popupkey"), |
+ new Key(C("\u00f9", "U+00F9"), C("\u00d9", "U+00D9"), C("\u00f9", "U+00F9"), C("\u00f9", "U+00F9"), "popupkey"), |
+ new Key(C("\u00fa", "U+00FA"), C("\u00da", "U+00DA"), C("\u00fa", "U+00FA"), C("\u00fa", "U+00FA"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_u'] = { |
+ "definition": KEYS_FR_POPUP_U, |
+ "aspect": 3, |
+}; |
+ |
+var KEYS_FR_POPUP_Y = [ |
+ [ |
+ new Key(C("\u00ff", "U+00FF"), C("\u0178", "U+0178"), C("\u00ff", "U+00FF"), C("\u00ff", "U+00FF"), "popupkey"), |
+ ], |
+]; |
+ |
+// Add layout to KEYBOARDS, which is defined in common.js |
+KEYBOARDS['fr_popup_y'] = { |
+ "definition": KEYS_FR_POPUP_Y, |
+ "aspect": 0.6, |
+}; |