summaryrefslogtreecommitdiffstats
path: root/chrome/third_party/chromevox
diff options
context:
space:
mode:
authordbeam <dbeam@chromium.org>2015-02-16 22:49:47 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-17 06:50:58 +0000
commit6daa58f92bff772a4476f761ef4c640bf90a2605 (patch)
tree568c6eb8dd47ec161c6fbe7112e5bdb24034449d /chrome/third_party/chromevox
parente5804dc68e5401da5b07c7b0ad4113d6778a8c15 (diff)
downloadchromium_src-6daa58f92bff772a4476f761ef4c640bf90a2605.zip
chromium_src-6daa58f92bff772a4476f761ef4c640bf90a2605.tar.gz
chromium_src-6daa58f92bff772a4476f761ef4c640bf90a2605.tar.bz2
Shorten Closure template notation from Array.<*> to Array<*> in cvox.
These are equivalent syntaxes, the latter is just newer and shorter and more closely resembles C++/Java. R=dmazzoni@chromium.org BUG=none Review URL: https://codereview.chromium.org/924083004 Cr-Commit-Position: refs/heads/master@{#316538}
Diffstat (limited to 'chrome/third_party/chromevox')
-rw-r--r--chrome/third_party/chromevox/chromevox/injected/mathjax.js2
-rw-r--r--chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/asserts.js6
-rw-r--r--chrome/third_party/chromevox/third_party/closure-library/closure/goog/base.js6
-rw-r--r--chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/messageformat.js18
-rw-r--r--chrome/third_party/chromevox/third_party/closure-library/closure/goog/object/object.js64
5 files changed, 48 insertions, 48 deletions
diff --git a/chrome/third_party/chromevox/chromevox/injected/mathjax.js b/chrome/third_party/chromevox/chromevox/injected/mathjax.js
index 754aa04..023c1cc 100644
--- a/chrome/third_party/chromevox/chromevox/injected/mathjax.js
+++ b/chrome/third_party/chromevox/chromevox/injected/mathjax.js
@@ -46,7 +46,7 @@ if (typeof(goog) != 'undefined' && goog.require) {
* Post a message to Chromevox.
* @param {string} cmd The command to be executed in Chromevox.
* @param {string} callbackId A string representing the callback id.
- * @param {Object.<string, *>} args Dictionary of arguments.
+ * @param {Object<string, *>} args Dictionary of arguments.
*/
cvox.MathJax.postMessage = function(cmd, callbackId, args) {
channel_.port1.postMessage({'cmd': cmd, 'id': callbackId, 'args': args});
diff --git a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/asserts.js b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/asserts.js
index 4afdac3..af9fac0 100644
--- a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/asserts.js
+++ b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/asserts.js
@@ -51,7 +51,7 @@ goog.define('goog.asserts.ENABLE_ASSERTS', goog.DEBUG);
/**
* Error object for failed assertions.
* @param {string} messagePattern The pattern that was used to form message.
- * @param {!Array.<*>} messageArgs The items to substitute into the pattern.
+ * @param {!Array<*>} messageArgs The items to substitute into the pattern.
* @constructor
* @extends {goog.debug.Error}
* @final
@@ -81,9 +81,9 @@ goog.asserts.AssertionError.prototype.name = 'AssertionError';
* Throws an exception with the given message and "Assertion failed" prefixed
* onto it.
* @param {string} defaultMessage The message to use if givenMessage is empty.
- * @param {Array.<*>} defaultArgs The substitution arguments for defaultMessage.
+ * @param {Array<*>} defaultArgs The substitution arguments for defaultMessage.
* @param {string|undefined} givenMessage Message supplied by the caller.
- * @param {Array.<*>} givenArgs The substitution arguments for givenMessage.
+ * @param {Array<*>} givenArgs The substitution arguments for givenMessage.
* @throws {goog.asserts.AssertionError} When the value is not a number.
* @private
*/
diff --git a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/base.js b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/base.js
index 68f871b..469414c 100644
--- a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/base.js
+++ b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/base.js
@@ -61,7 +61,7 @@ goog.global = this;
* var CLOSURE_UNCOMPILED_DEFINES = {'goog.DEBUG': false};
* </pre>
*
- * @type {Object.<string, (string|number|boolean)>|undefined}
+ * @type {Object<string, (string|number|boolean)>|undefined}
*/
goog.global.CLOSURE_UNCOMPILED_DEFINES;
@@ -82,7 +82,7 @@ goog.global.CLOSURE_UNCOMPILED_DEFINES;
* var CLOSURE_DEFINES = {'goog.DEBUG': false};
* </pre>
*
- * @type {Object.<string, (string|number|boolean)>|undefined}
+ * @type {Object<string, (string|number|boolean)>|undefined}
*/
goog.global.CLOSURE_DEFINES;
@@ -570,7 +570,7 @@ goog.addSingletonGetter = function(ctor) {
* All singleton classes that have been instantiated, for testing. Don't read
* it directly, use the {@code goog.testing.singleton} module. The compiler
* removes this variable if unused.
- * @type {!Array.<!Function>}
+ * @type {!Array<!Function>}
* @private
*/
goog.instantiatedSingletons_ = [];
diff --git a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/messageformat.js b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/messageformat.js
index 923af98..f38f69c 100644
--- a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/messageformat.js
+++ b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/i18n/messageformat.js
@@ -79,14 +79,14 @@ goog.i18n.MessageFormat = function(pattern) {
/**
* All encountered literals during parse stage. Indices tell us the order of
* replacement.
- * @type {!Array.<string>}
+ * @type {!Array<string>}
* @private
*/
this.literals_ = [];
/**
* Input pattern gets parsed into objects for faster formatting.
- * @type {!Array.<!Object>}
+ * @type {!Array<!Object>}
* @private
*/
this.parsedPattern_ = [];
@@ -227,13 +227,13 @@ goog.i18n.MessageFormat.prototype.format_ =
/**
* Parses generic block and returns a formatted string.
- * @param {!Array.<!Object>} parsedPattern Holds parsed tree.
+ * @param {!Array<!Object>} parsedPattern Holds parsed tree.
* @param {!Object} namedParameters Parameters that either influence
* the formatting or are used as actual data.
* @param {boolean} ignorePound If true, treat '#' in plural messages as a
* literary character, else treat it as an ICU syntax character, resolving
* to the number (plural_variable - offset).
- * @param {!Array.<!string>} result Each formatting stage appends its product
+ * @param {!Array<!string>} result Each formatting stage appends its product
* to the result.
* @private
*/
@@ -279,7 +279,7 @@ goog.i18n.MessageFormat.prototype.formatBlock_ = function(
* Formats simple placeholder.
* @param {!Object} parsedPattern JSON object containing placeholder info.
* @param {!Object} namedParameters Parameters that are used as actual data.
- * @param {!Array.<!string>} result Each formatting stage appends its product
+ * @param {!Array<!string>} result Each formatting stage appends its product
* to the result.
* @private
*/
@@ -306,7 +306,7 @@ goog.i18n.MessageFormat.prototype.formatSimplePlaceholder_ = function(
* @param {boolean} ignorePound If true, treat '#' in plural messages as a
* literary character, else treat it as an ICU syntax character, resolving
* to the number (plural_variable - offset).
- * @param {!Array.<!string>} result Each formatting stage appends its product
+ * @param {!Array<!string>} result Each formatting stage appends its product
* to the result.
* @private
*/
@@ -341,7 +341,7 @@ goog.i18n.MessageFormat.prototype.formatSelectBlock_ = function(
* @param {boolean} ignorePound If true, treat '#' in plural messages as a
* literary character, else treat it as an ICU syntax character, resolving
* to the number (plural_variable - offset).
- * @param {!Array.<!string>} result Each formatting stage appends its product
+ * @param {!Array<!string>} result Each formatting stage appends its product
* to the result.
* @private
*/
@@ -442,7 +442,7 @@ goog.i18n.MessageFormat.prototype.insertPlaceholders_ = function(pattern) {
/**
* Breaks pattern into strings and top level {...} blocks.
* @param {string} pattern (sub)Pattern to be broken.
- * @return {!Array.<Object>} Each item is {type, value}.
+ * @return {!Array<Object>} Each item is {type, value}.
* @private
*/
goog.i18n.MessageFormat.prototype.extractParts_ = function(pattern) {
@@ -561,7 +561,7 @@ goog.i18n.MessageFormat.prototype.parseBlockType_ = function(pattern) {
/**
* Parses generic block.
* @param {string} pattern Content of the block to parse.
- * @return {!Array.<!Object>} Subblocks marked as strings, select...
+ * @return {!Array<!Object>} Subblocks marked as strings, select...
* @private
*/
goog.i18n.MessageFormat.prototype.parseBlock_ = function(pattern) {
diff --git a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/object/object.js b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/object/object.js
index e181ffb..261b8af 100644
--- a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/object/object.js
+++ b/chrome/third_party/chromevox/third_party/closure-library/closure/goog/object/object.js
@@ -22,8 +22,8 @@ goog.provide('goog.object');
/**
* Calls a function for each element in an object/map/hash.
*
- * @param {Object.<K,V>} obj The object over which to iterate.
- * @param {function(this:T,V,?,Object.<K,V>):?} f The function to call
+ * @param {Object<K,V>} obj The object over which to iterate.
+ * @param {function(this:T,V,?,Object<K,V>):?} f The function to call
* for every element. This function takes 3 arguments (the element, the
* index and the object) and the return value is ignored.
* @param {T=} opt_obj This is used as the 'this' object within f.
@@ -40,15 +40,15 @@ goog.object.forEach = function(obj, f, opt_obj) {
* Calls a function for each element in an object/map/hash. If that call returns
* true, adds the element to a new object.
*
- * @param {Object.<K,V>} obj The object over which to iterate.
- * @param {function(this:T,V,?,Object.<K,V>):boolean} f The function to call
+ * @param {Object<K,V>} obj The object over which to iterate.
+ * @param {function(this:T,V,?,Object<K,V>):boolean} f The function to call
* for every element. This
* function takes 3 arguments (the element, the index and the object)
* and should return a boolean. If the return value is true the
* element is added to the result object. If it is false the
* element is not included.
* @param {T=} opt_obj This is used as the 'this' object within f.
- * @return {!Object.<K,V>} a new object in which only elements that passed the
+ * @return {!Object<K,V>} a new object in which only elements that passed the
* test are present.
* @template T,K,V
*/
@@ -67,14 +67,14 @@ goog.object.filter = function(obj, f, opt_obj) {
* For every element in an object/map/hash calls a function and inserts the
* result into a new object.
*
- * @param {Object.<K,V>} obj The object over which to iterate.
- * @param {function(this:T,V,?,Object.<K,V>):R} f The function to call
+ * @param {Object<K,V>} obj The object over which to iterate.
+ * @param {function(this:T,V,?,Object<K,V>):R} f The function to call
* for every element. This function
* takes 3 arguments (the element, the index and the object)
* and should return something. The result will be inserted
* into a new object.
* @param {T=} opt_obj This is used as the 'this' object within f.
- * @return {!Object.<K,R>} a new object with the results from f.
+ * @return {!Object<K,R>} a new object with the results from f.
* @template T,K,V,R
*/
goog.object.map = function(obj, f, opt_obj) {
@@ -91,8 +91,8 @@ goog.object.map = function(obj, f, opt_obj) {
* call returns true, returns true (without checking the rest). If
* all calls return false, returns false.
*
- * @param {Object.<K,V>} obj The object to check.
- * @param {function(this:T,V,?,Object.<K,V>):boolean} f The function to
+ * @param {Object<K,V>} obj The object to check.
+ * @param {function(this:T,V,?,Object<K,V>):boolean} f The function to
* call for every element. This function
* takes 3 arguments (the element, the index and the object) and should
* return a boolean.
@@ -115,8 +115,8 @@ goog.object.some = function(obj, f, opt_obj) {
* all calls return true, returns true. If any call returns false, returns
* false at this point and does not continue to check the remaining elements.
*
- * @param {Object.<K,V>} obj The object to check.
- * @param {?function(this:T,V,?,Object.<K,V>):boolean} f The function to
+ * @param {Object<K,V>} obj The object to check.
+ * @param {?function(this:T,V,?,Object<K,V>):boolean} f The function to
* call for every element. This function
* takes 3 arguments (the element, the index and the object) and should
* return a boolean.
@@ -173,7 +173,7 @@ goog.object.getAnyKey = function(obj) {
* For map literals the returned value will be the first one in most of the
* browsers (a know exception is Konqueror).
*
- * @param {Object.<K,V>} obj The object to pick a value from.
+ * @param {Object<K,V>} obj The object to pick a value from.
* @return {V|undefined} The value or undefined if the object is empty.
* @template K,V
*/
@@ -188,7 +188,7 @@ goog.object.getAnyValue = function(obj) {
* Whether the object/hash/map contains the given object as a value.
* An alias for goog.object.containsValue(obj, val).
*
- * @param {Object.<K,V>} obj The object in which to look for val.
+ * @param {Object<K,V>} obj The object in which to look for val.
* @param {V} val The object for which to check.
* @return {boolean} true if val is present.
* @template K,V
@@ -201,8 +201,8 @@ goog.object.contains = function(obj, val) {
/**
* Returns the values of the object/map/hash.
*
- * @param {Object.<K,V>} obj The object from which to get the values.
- * @return {!Array.<V>} The values in the object/map/hash.
+ * @param {Object<K,V>} obj The object from which to get the values.
+ * @return {!Array<V>} The values in the object/map/hash.
* @template K,V
*/
goog.object.getValues = function(obj) {
@@ -219,7 +219,7 @@ goog.object.getValues = function(obj) {
* Returns the keys of the object/map/hash.
*
* @param {Object} obj The object from which to get the keys.
- * @return {!Array.<string>} Array of property keys.
+ * @return {!Array<string>} Array of property keys.
*/
goog.object.getKeys = function(obj) {
var res = [];
@@ -237,7 +237,7 @@ goog.object.getKeys = function(obj) {
* Example usage: getValueByKeys(jsonObj, 'foo', 'entries', 3)
*
* @param {!Object} obj An object to get the value from. Can be array-like.
- * @param {...(string|number|!Array.<number|string>)} var_args A number of keys
+ * @param {...(string|number|!Array<number|string>)} var_args A number of keys
* (as strings, or numbers, for array-like objects). Can also be
* specified as a single array of keys.
* @return {*} The resulting value. If, at any point, the value for a key
@@ -274,7 +274,7 @@ goog.object.containsKey = function(obj, key) {
/**
* Whether the object/map/hash contains the given value. This is O(n).
*
- * @param {Object.<K,V>} obj The object in which to look for val.
+ * @param {Object<K,V>} obj The object in which to look for val.
* @param {V} val The value for which to check.
* @return {boolean} true If the map contains the value.
* @template K,V
@@ -292,8 +292,8 @@ goog.object.containsValue = function(obj, val) {
/**
* Searches an object for an element that satisfies the given condition and
* returns its key.
- * @param {Object.<K,V>} obj The object to search in.
- * @param {function(this:T,V,string,Object.<K,V>):boolean} f The
+ * @param {Object<K,V>} obj The object to search in.
+ * @param {function(this:T,V,string,Object<K,V>):boolean} f The
* function to call for every element. Takes 3 arguments (the value,
* the key and the object) and should return a boolean.
* @param {T=} opt_this An optional "this" context for the function.
@@ -314,8 +314,8 @@ goog.object.findKey = function(obj, f, opt_this) {
/**
* Searches an object for an element that satisfies the given condition and
* returns its value.
- * @param {Object.<K,V>} obj The object to search in.
- * @param {function(this:T,V,string,Object.<K,V>):boolean} f The function
+ * @param {Object<K,V>} obj The object to search in.
+ * @param {function(this:T,V,string,Object<K,V>):boolean} f The function
* to call for every element. Takes 3 arguments (the value, the key
* and the object) and should return a boolean.
* @param {T=} opt_this An optional "this" context for the function.
@@ -375,7 +375,7 @@ goog.object.remove = function(obj, key) {
* Adds a key-value pair to the object. Throws an exception if the key is
* already in use. Use set if you want to change an existing pair.
*
- * @param {Object.<K,V>} obj The object to which to add the key-value pair.
+ * @param {Object<K,V>} obj The object to which to add the key-value pair.
* @param {string} key The key to add.
* @param {V} val The value to add.
* @template K,V
@@ -391,7 +391,7 @@ goog.object.add = function(obj, key, val) {
/**
* Returns the value for the given key.
*
- * @param {Object.<K,V>} obj The object from which to get the value.
+ * @param {Object<K,V>} obj The object from which to get the value.
* @param {string} key The key for which to get the value.
* @param {R=} opt_val The value to return if no item is found for the given
* key (default is undefined).
@@ -409,7 +409,7 @@ goog.object.get = function(obj, key, opt_val) {
/**
* Adds a key-value pair to the object/map/hash.
*
- * @param {Object.<K,V>} obj The object to which to add the key-value pair.
+ * @param {Object<K,V>} obj The object to which to add the key-value pair.
* @param {string} key The key to add.
* @param {V} value The value to add.
* @template K,V
@@ -422,7 +422,7 @@ goog.object.set = function(obj, key, value) {
/**
* Adds a key-value pair to the object/map/hash if it doesn't exist yet.
*
- * @param {Object.<K,V>} obj The object to which to add the key-value pair.
+ * @param {Object<K,V>} obj The object to which to add the key-value pair.
* @param {string} key The key to add.
* @param {V} value The value to add if the key wasn't present.
* @return {V} The value of the entry at the end of the function.
@@ -436,8 +436,8 @@ goog.object.setIfUndefined = function(obj, key, value) {
/**
* Does a flat clone of the object.
*
- * @param {Object.<K,V>} obj Object to clone.
- * @return {!Object.<K,V>} Clone of the input object.
+ * @param {Object<K,V>} obj Object to clone.
+ * @return {!Object<K,V>} Clone of the input object.
* @template K,V
*/
goog.object.clone = function(obj) {
@@ -503,7 +503,7 @@ goog.object.transpose = function(obj) {
/**
* The names of the fields that are defined on Object.prototype.
- * @type {Array.<string>}
+ * @type {Array<string>}
* @private
*/
goog.object.PROTOTYPE_FIELDS_ = [
@@ -613,8 +613,8 @@ goog.object.createSet = function(var_args) {
* In default mode, writes to this view will fail silently. In strict mode,
* they will throw an error.
*
- * @param {!Object.<K,V>} obj An object.
- * @return {!Object.<K,V>} An immutable view of that object, or the
+ * @param {!Object<K,V>} obj An object.
+ * @return {!Object<K,V>} An immutable view of that object, or the
* original object if this browser does not support immutables.
* @template K,V
*/