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..28b0b3a921f1de45389a832841a070d295d88ae1 100644 |
--- a/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
+++ b/chrome/browser/resources/extensions/chromeos/kiosk_app_list.js |
@@ -1,6 +1,18 @@ |
// Copyright 2013 The Chromium Authors. All rights reserved. |
// 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 AppDict; |
cr.define('extensions', function() { |
/** @const */ var List = cr.ui.List; |
@@ -49,7 +61,7 @@ |
/** |
* Updates the given app. |
- * @param {!Object} app An app info object. |
+ * @param {!AppDict} app An app info object. |
*/ |
updateApp: function(app) { |
for (var i = 0; i < this.items.length; ++i) { |
@@ -155,9 +167,8 @@ |
} |
}; |
- /* |
+ /** |
* True if the app represented by this item will auto launch. |
- * @type {boolean} |
*/ |
cr.defineProperty(KioskAppListItem, 'autoLaunch', cr.PropertyKind.BOOL_ATTR); |