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

Unified Diff: chrome/browser/resources/google_now/cards.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox 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/google_now/cards.js
diff --git a/chrome/browser/resources/google_now/cards.js b/chrome/browser/resources/google_now/cards.js
index dd4e95072d008e65f672ff22742090a00db2d391..0ecd50144d78a9d85dfcad8f30dc70dcf6b3e8d6 100644
--- a/chrome/browser/resources/google_now/cards.js
+++ b/chrome/browser/resources/google_now/cards.js
@@ -37,7 +37,7 @@ var DismissalData;
*
* @typedef {{
* messageUrl: (string|undefined),
- * buttonUrls: (Array.<string>|undefined)
+ * buttonUrls: (Array<string>|undefined)
* }}
*/
var ActionUrls;
@@ -82,7 +82,7 @@ var UncombinedNotification;
/**
* Card combined from potentially multiple groups.
*
- * @typedef {Array.<UncombinedNotification>}
+ * @typedef {Array<UncombinedNotification>}
*/
var CombinedCard;
@@ -192,7 +192,7 @@ function buildCardSet() {
* of the card.
* @param {CombinedCard} combinedCard Combined cards with
* |chromeNotificationId|.
- * @param {Object.<string, StoredNotificationGroup>} notificationGroups
+ * @param {Object<string, StoredNotificationGroup>} notificationGroups
* Map from group name to group information.
* @param {function(ReceivedNotification)=} onCardShown Optional parameter
* called when each card is shown.
@@ -283,18 +283,18 @@ function buildCardSet() {
* of the card.
* @param {NotificationDataEntry} notificationData Stored notification entry
* for this card.
- * @param {Object.<string, StoredNotificationGroup>} notificationGroups
+ * @param {Object<string, StoredNotificationGroup>} notificationGroups
* Map from group name to group information.
* @return {{
- * dismissals: Array.<DismissalData>,
+ * dismissals: Array<DismissalData>,
* notificationData: (NotificationDataEntry|undefined)
* }}
*/
function onDismissal(
chromeNotificationId, notificationData, notificationGroups) {
- /** @type {Array.<DismissalData>} */
+ /** @type {Array<DismissalData>} */
var dismissals = [];
- /** @type {Array.<UncombinedNotification>} */
+ /** @type {Array<UncombinedNotification>} */
var newCombinedCard = [];
// Determine which parts of the combined card need to be dismissed or to be
@@ -325,7 +325,7 @@ function buildCardSet() {
* Removes card information from |notificationGroups|.
* @param {ChromeNotificationId} chromeNotificationId chrome.notifications ID
* of the card.
- * @param {Object.<string, StoredNotificationGroup>} notificationGroups
+ * @param {Object<string, StoredNotificationGroup>} notificationGroups
* Map from group name to group information.
*/
function clearCardFromGroups(chromeNotificationId, notificationGroups) {
@@ -350,9 +350,9 @@ function buildCardSet() {
/** @type {ChromeNotificationId} */
var chromeNotificationId = alarm.name.substring(alarmPrefix.length);
fillFromChromeLocalStorage({
- /** @type {Object.<ChromeNotificationId, NotificationDataEntry>} */
+ /** @type {Object<ChromeNotificationId, NotificationDataEntry>} */
notificationsData: {},
- /** @type {Object.<string, StoredNotificationGroup>} */
+ /** @type {Object<string, StoredNotificationGroup>} */
notificationGroups: {}
}).then(function(items) {
console.log('cardManager.onAlarm.get ' + JSON.stringify(items));
« no previous file with comments | « chrome/browser/resources/google_now/background.js ('k') | chrome/browser/resources/google_now/common_test_util.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698