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

Unified Diff: chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.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/chromevox/injected/live_regions.js
diff --git a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js
index a08723f2e949b8c0f61521e20dcfba4ed83ac421..914769276f16e62c3cd83ca90203eae9bcc40b36 100644
--- a/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js
+++ b/chrome/browser/resources/chromeos/chromevox/chromevox/injected/live_regions.js
@@ -49,7 +49,7 @@ cvox.LiveRegions.VISIBILITY_TIMEOUT_MS = 50;
/**
* A mapping from announced text to the time it was last spoken.
- * @type {Object.<string, Date>}
+ * @type {Object<string, Date>}
*/
cvox.LiveRegions.lastAnnouncedMap = {};
@@ -75,7 +75,7 @@ cvox.LiveRegions.lastAnnouncedTime = null;
/**
* Tracks nodes handled during mutation processing.
- * @type {!Array.<Node>}
+ * @type {!Array<Node>}
*/
cvox.LiveRegions.nodesAlreadyHandled = [];
@@ -144,8 +144,8 @@ cvox.LiveRegions.init = function(pageLoadTime, queueMode, disableSpeak) {
* This function is not reentrant, it uses some global state to keep
* track of nodes it's already spoken once.
*
- * @param {Array.<MutationRecord>} mutations The mutations.
- * @param {function(boolean, Array.<cvox.NavDescription>)} handler
+ * @param {Array<MutationRecord>} mutations The mutations.
+ * @param {function(boolean, Array<cvox.NavDescription>)} handler
* A callback function that handles each live region description found.
* The function is passed a boolean indicating if the live region is
* assertive, and an array of navdescriptions to speak.
@@ -229,7 +229,7 @@ cvox.LiveRegions.processMutations = function(mutations, handler) {
* @param {Node} parent The parent node.
* @param {boolean} isRemoval True if this node was removed.
* @param {boolean} subtree True if we should check the subtree.
- * @param {function(boolean, Array.<cvox.NavDescription>)} handler
+ * @param {function(boolean, Array<cvox.NavDescription>)} handler
* Callback function to be called for each live region found.
*/
cvox.LiveRegions.handleOneChangedNode = function(
@@ -293,7 +293,7 @@ cvox.LiveRegions.handleOneChangedNode = function(
* @param {Node} node A node in a live region.
* @param {Node} liveRoot The root of the live region this node is in.
* @param {boolean} isRemoval True if this node was removed.
- * @param {function(boolean, Array.<cvox.NavDescription>)} handler
+ * @param {function(boolean, Array<cvox.NavDescription>)} handler
* Callback function to be called for each live region found.
*/
cvox.LiveRegions.announceChangeIfVisible = function(
@@ -315,7 +315,7 @@ cvox.LiveRegions.announceChangeIfVisible = function(
* @param {Node} node A node in a live region.
* @param {Node} liveRoot The root of the live region this node is in.
* @param {boolean} isRemoval True if this node was removed.
- * @param {function(boolean, Array.<cvox.NavDescription>)} handler
+ * @param {function(boolean, Array<cvox.NavDescription>)} handler
* Callback function to be called for each live region found.
*/
cvox.LiveRegions.announceChange = function(
@@ -441,7 +441,7 @@ cvox.LiveRegions.announceChange = function(
* single string, otherwise each leaf node gets its own string.
*
* @param {Node} node A node in a live region.
- * @return {Array.<cvox.NavDescription>} An array of NavDescriptions
+ * @return {Array<cvox.NavDescription>} An array of NavDescriptions
* describing atomic nodes or leaf nodes in the subtree rooted
* at this node.
*/

Powered by Google App Engine
This is Rietveld 408576698