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

Side by Side Diff: chrome/browser/resources/extensions/chromeos/kiosk_app_list.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 unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/downloads/downloads.js ('k') | chrome/browser/resources/extensions/chromeos/kiosk_apps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698