| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * The type of the app data object. The definition is based on | 6 * The type of the app data object. The definition is based on |
| 7 * chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc: | 7 * chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc: |
| 8 * PopulateAppDict() | 8 * PopulateAppDict() |
| 9 * @typedef {{id: string, | 9 * @typedef {{id: string, |
| 10 * name: string, | 10 * name: string, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 /** | 46 /** |
| 47 * Sets auto launch enabled flag. | 47 * Sets auto launch enabled flag. |
| 48 * @param {boolean} enabled True if auto launch should be enabled. | 48 * @param {boolean} enabled True if auto launch should be enabled. |
| 49 */ | 49 */ |
| 50 setAutoLaunchEnabled: function(enabled) { | 50 setAutoLaunchEnabled: function(enabled) { |
| 51 this.autoLaunchEnabled_ = enabled; | 51 this.autoLaunchEnabled_ = enabled; |
| 52 }, | 52 }, |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Loads the given list of apps. | 55 * Loads the given list of apps. |
| 56 * @param {!Array.<!Object>} apps An array of app info objects. | 56 * @param {!Array<!Object>} apps An array of app info objects. |
| 57 */ | 57 */ |
| 58 setApps: function(apps) { | 58 setApps: function(apps) { |
| 59 this.dataModel = new ArrayDataModel(apps); | 59 this.dataModel = new ArrayDataModel(apps); |
| 60 }, | 60 }, |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * Updates the given app. | 63 * Updates the given app. |
| 64 * @param {!AppDict} app An app info object. | 64 * @param {!AppDict} app An app info object. |
| 65 */ | 65 */ |
| 66 updateApp: function(app) { | 66 updateApp: function(app) { |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 /** | 170 /** |
| 171 * True if the app represented by this item will auto launch. | 171 * True if the app represented by this item will auto launch. |
| 172 */ | 172 */ |
| 173 cr.defineProperty(KioskAppListItem, 'autoLaunch', cr.PropertyKind.BOOL_ATTR); | 173 cr.defineProperty(KioskAppListItem, 'autoLaunch', cr.PropertyKind.BOOL_ATTR); |
| 174 | 174 |
| 175 // Export | 175 // Export |
| 176 return { | 176 return { |
| 177 KioskAppList: KioskAppList | 177 KioskAppList: KioskAppList |
| 178 }; | 178 }; |
| 179 }); | 179 }); |
| OLD | NEW |