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

Unified Diff: chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js

Issue 924083004: Shorten Closure template notation from Array.<*> to Array<*> in cvox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
diff --git a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
index 91b9e5e7d97bb4013e44ef1665f8a15c87072fb1..ef43b9ff3e11b70a469e7f1f1a1b1599b6dabb5f 100644
--- a/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
+++ b/chrome/browser/resources/chromeos/chromevox/host/chrome/tts_background.js
@@ -66,7 +66,7 @@ cvox.TtsBackground = function(opt_enableMath) {
parseInt(localStorage[cvox.AbstractTts.PUNCTUATION_ECHO] || 1, 10);
/**
- * @type {!Array.<{name:(string),
+ * @type {!Array<{name:(string),
* msg:(string),
* regexp:(RegExp),
* clear:(boolean)}>}
@@ -108,7 +108,7 @@ cvox.TtsBackground = function(opt_enableMath) {
* A list of punctuation characters that should always be spliced into output
* even with literal word substitutions.
* This is important for tts prosity.
- * @type {!Array.<string>}
+ * @type {!Array<string>}
* @private
*/
this.retainPunctuation_ =
@@ -128,11 +128,11 @@ cvox.TtsBackground = function(opt_enableMath) {
try {
/**
- * @type {Object.<string, string>}
+ * @type {Object<string, string>}
* @private
* @const
*/
- this.PHONETIC_MAP_ = /** @type {Object.<string, string>} */(
+ this.PHONETIC_MAP_ = /** @type {Object<string, string>} */(
JSON.parse(cvox.ChromeVox.msgs.getMsg('phonetic_map')));
} catch (e) {
console.log('Error; unable to parse phonetic map msg.');
@@ -140,7 +140,7 @@ cvox.TtsBackground = function(opt_enableMath) {
/**
* Capturing tts event listeners.
- * @type {Array.<cvox.TtsCapturingEventListener>}
+ * @type {Array<cvox.TtsCapturingEventListener>}
* @private
*/
this.capturingTtsEventListeners_ = [];
@@ -154,7 +154,7 @@ cvox.TtsBackground = function(opt_enableMath) {
/**
* The utterance queue.
- * @type {Array.<cvox.Utterance>}
+ * @type {Array<cvox.Utterance>}
* @private
*/
this.utteranceQueue_ = [];
@@ -192,7 +192,7 @@ cvox.TtsBackground.PHONETIC_DELAY_MS_ = 1000;
/**
* The list of properties allowed to be passed to the chrome.tts.speak API.
* Anything outside this list will be stripped.
- * @type {Array.<string>}
+ * @type {Array<string>}
* @private
* @const
*/

Powered by Google App Engine
This is Rietveld 408576698