| Index: chrome/browser/resources/print_preview/print_preview_utils.js
|
| diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js
|
| index fb7f4583f26a46d1ecc9f1aa1145460c2cb2cb50..49a367b51b5806bf340f687f56582447a7a87fe1 100644
|
| --- a/chrome/browser/resources/print_preview/print_preview_utils.js
|
| +++ b/chrome/browser/resources/print_preview/print_preview_utils.js
|
| @@ -23,8 +23,8 @@ function isPositiveInteger(value) {
|
|
|
| /**
|
| * Returns true if the contents of the two arrays are equal.
|
| - * @param {Array.<{from: number, to: number}>} array1 The first array.
|
| - * @param {Array.<{from: number, to: number}>} array2 The second array.
|
| + * @param {Array<{from: number, to: number}>} array1 The first array.
|
| + * @param {Array<{from: number, to: number}>} array2 The second array.
|
| * @return {boolean} true if the arrays are equal.
|
| */
|
| function areArraysEqual(array1, array2) {
|
| @@ -56,8 +56,8 @@ function areRangesEqual(array1, array2) {
|
| /**
|
| * Removes duplicate elements from |inArray| and returns a new array.
|
| * |inArray| is not affected. It assumes that |inArray| is already sorted.
|
| - * @param {!Array.<number>} inArray The array to be processed.
|
| - * @return {!Array.<number>} The array after processing.
|
| + * @param {!Array<number>} inArray The array to be processed.
|
| + * @return {!Array<number>} The array after processing.
|
| */
|
| function removeDuplicates(inArray) {
|
| var out = [];
|
| @@ -94,7 +94,7 @@ function removeDuplicates(inArray) {
|
| * Example: "1-4dsf, 11" is invalid regardless of |totalPageCount|.
|
| * @param {string} pageRangeText The text to be checked.
|
| * @param {number=} opt_totalPageCount The total number of pages.
|
| - * @return {Array.<{from: number, to: number}>} An array of page range objects.
|
| + * @return {Array<{from: number, to: number}>} An array of page range objects.
|
| */
|
| function pageRangeTextToPageRanges(pageRangeText, opt_totalPageCount) {
|
| if (pageRangeText == '') {
|
| @@ -141,7 +141,7 @@ function pageRangeTextToPageRanges(pageRangeText, opt_totalPageCount) {
|
| * See pageRangeTextToPageRanges for details.
|
| * @param {string} pageRangeText The text to be checked.
|
| * @param {number} totalPageCount The total number of pages.
|
| - * @return {Array.<number>} A list of all pages.
|
| + * @return {Array<number>} A list of all pages.
|
| */
|
| function pageRangeTextToPageList(pageRangeText, totalPageCount) {
|
| var pageRanges = pageRangeTextToPageRanges(pageRangeText, totalPageCount);
|
| @@ -162,8 +162,8 @@ function pageRangeTextToPageList(pageRangeText, totalPageCount) {
|
| }
|
|
|
| /**
|
| - * @param {!Array.<number>} pageList The list to be processed.
|
| - * @return {!Array.<number>} The contents of |pageList| in ascending order and
|
| + * @param {!Array<number>} pageList The list to be processed.
|
| + * @return {!Array<number>} The contents of |pageList| in ascending order and
|
| * without any duplicates. |pageList| is not affected.
|
| */
|
| function pageListToPageSet(pageList) {
|
|
|