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

Unified Diff: third_party/google_input_tools/src/chrome/os/constant.js

Issue 1257313003: Update Google Input Tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Free up grd resources. Created 5 years, 5 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
Index: third_party/google_input_tools/src/chrome/os/constant.js
diff --git a/third_party/google_input_tools/src/chrome/os/sounds/sounds.js b/third_party/google_input_tools/src/chrome/os/constant.js
similarity index 54%
copy from third_party/google_input_tools/src/chrome/os/sounds/sounds.js
copy to third_party/google_input_tools/src/chrome/os/constant.js
index cef48f746aaa9d1ea1507645912a420bdde7ae03..929e8ac17bf6876aa3b9ce5b16057630d63fb13b 100644
--- a/third_party/google_input_tools/src/chrome/os/sounds/sounds.js
+++ b/third_party/google_input_tools/src/chrome/os/constant.js
@@ -11,22 +11,36 @@
// you may not use this file except in compliance with the License.
// Licensed under the Apache License, Version 2.0 (the "License");
//
-goog.provide('i18n.input.chrome.sounds.Sounds');
+goog.provide('i18n.input.chrome.Constant');
/**
- * The available sounds.
- *
- * @enum {string}
+ * The set of Latin valid characters .
*/
-i18n.input.chrome.sounds.Sounds = {
- DELETE: 'KeypressDelete',
- RETURN: 'KeypressReturn',
- SPACEBAR: 'KeypressSpacebar',
- STANDARD: 'KeypressStandard',
- NONE: 'none',
- VOICE_RECOG_START: 'audio_initiate',
- VOICE_RECOG_END: 'audio_end',
- AUTO_CORRECTION: 'KeypressStandard'
-};
+i18n.input.chrome.Constant.LATIN_VALID_CHAR =
+ "[a-z\\-\\\'\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u017F]";
+
+/**
+ * Languages need to support NACL module for XKB.
+ *
+ * @type {!Array.<string>}
+ */
+i18n.input.chrome.Constant.NACL_LANGUAGES = [
+ 'da',
+ 'de',
+ 'en',
+ 'es',
+ 'fi',
+ 'fr',
+ 'it',
+ 'nl',
+ // When enable "no-t-i0-und" make NACL crash, so disable it now.
+ // 'no',
+ 'pl',
+ 'pt',
+ 'pt-BR',
+ 'pt-PT',
+ 'sv',
+ 'tr'
+];
« no previous file with comments | « third_party/google_input_tools/src/chrome/os/common.js ('k') | third_party/google_input_tools/src/chrome/os/datasource.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698