Index: chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
diff --git a/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js b/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
index 3652f95bd6d7c2f17ba915270112e04d73ba7abc..bbd30c7a19e2b24d24bd6dd202c611496d09d82d 100644 |
--- a/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
+++ b/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
@@ -2,6 +2,18 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+/** |
+ * The type of the app data object. The definition is based on |
+ * chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc: |
+ * PopulateAppDict() |
+ * @typedef {{id: string, |
+ * name: string, |
+ * iconURL: string, |
+ * autoLaunch: boolean, |
+ * isLoading: boolean}} |
+ */ |
+var BackendAppDataObject; |
Dan Beam
2014/08/22 21:57:13
AppDict
Vitaly Pavlenko
2014/08/23 00:59:03
Done.
|
+ |
cr.define('extensions', function() { |
/** @const */ var List = cr.ui.List; |
/** @const */ var ListItem = cr.ui.ListItem; |
@@ -49,7 +61,7 @@ cr.define('extensions', function() { |
/** |
* Updates the given app. |
- * @param {!Object} app An app info object. |
+ * @param {!BackendAppDataObject} app An app info object. |
*/ |
updateApp: function(app) { |
for (var i = 0; i < this.items.length; ++i) { |
@@ -155,9 +167,8 @@ cr.define('extensions', function() { |
} |
}; |
- /* |
+ /** |
* True if the app represented by this item will auto launch. |
- * @type {boolean} |
*/ |
cr.defineProperty(KioskAppListItem, 'autoLaunch', cr.PropertyKind.BOOL_ATTR); |