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

Side by Side Diff: chrome/browser/resources/extensions/extension_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <include src="extension_error.js"> 5 <include src="extension_error.js">
6 6
7 /** 7 /**
8 * The type of the extension data object. The definition is based on 8 * The type of the extension data object. The definition is based on
9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc
10 * and 10 * and
(...skipping 20 matching lines...) Expand all
31 * incognitoCanBeEnabled: boolean, 31 * incognitoCanBeEnabled: boolean,
32 * installWarnings: (Array|undefined), 32 * installWarnings: (Array|undefined),
33 * is_hosted_app: boolean, 33 * is_hosted_app: boolean,
34 * is_platform_app: boolean, 34 * is_platform_app: boolean,
35 * isFromStore: boolean, 35 * isFromStore: boolean,
36 * isUnpacked: boolean, 36 * isUnpacked: boolean,
37 * kioskEnabled: boolean, 37 * kioskEnabled: boolean,
38 * kioskOnly: boolean, 38 * kioskOnly: boolean,
39 * locationText: string, 39 * locationText: string,
40 * managedInstall: boolean, 40 * managedInstall: boolean,
41 * manifestErrors: (Array.<RuntimeError>|undefined), 41 * manifestErrors: (Array<RuntimeError>|undefined),
42 * name: string, 42 * name: string,
43 * offlineEnabled: boolean, 43 * offlineEnabled: boolean,
44 * optionsOpenInTab: boolean, 44 * optionsOpenInTab: boolean,
45 * optionsPageHref: string, 45 * optionsPageHref: string,
46 * optionsUrl: string, 46 * optionsUrl: string,
47 * order: number, 47 * order: number,
48 * packagedApp: boolean, 48 * packagedApp: boolean,
49 * path: (string|undefined), 49 * path: (string|undefined),
50 * policyText: (string|undefined), 50 * policyText: (string|undefined),
51 * prettifiedPath: (string|undefined), 51 * prettifiedPath: (string|undefined),
52 * recommendedInstall: boolean, 52 * recommendedInstall: boolean,
53 * runtimeErrors: (Array.<RuntimeError>|undefined), 53 * runtimeErrors: (Array<RuntimeError>|undefined),
54 * showAllUrls: boolean, 54 * showAllUrls: boolean,
55 * suspiciousInstall: boolean, 55 * suspiciousInstall: boolean,
56 * terminated: boolean, 56 * terminated: boolean,
57 * updateRequiredByPolicy: boolean, 57 * updateRequiredByPolicy: boolean,
58 * version: string, 58 * version: string,
59 * views: Array.<{renderViewId: number, renderProcessId: number, 59 * views: Array<{renderViewId: number, renderProcessId: number,
60 * path: string, incognito: boolean, 60 * path: string, incognito: boolean,
61 * generatedBackgroundPage: boolean}>, 61 * generatedBackgroundPage: boolean}>,
62 * wantsErrorCollection: boolean, 62 * wantsErrorCollection: boolean,
63 * wantsFileAccess: boolean, 63 * wantsFileAccess: boolean,
64 * warnings: (Array|undefined)}} 64 * warnings: (Array|undefined)}}
65 */ 65 */
66 var ExtensionData; 66 var ExtensionData;
67 67
68 cr.define('options', function() { 68 cr.define('options', function() {
69 'use strict'; 69 'use strict';
70 70
71 /** 71 /**
72 * Creates a new list of extensions. 72 * Creates a new list of extensions.
73 * @param {Object=} opt_propertyBag Optional properties. 73 * @param {Object=} opt_propertyBag Optional properties.
74 * @constructor 74 * @constructor
75 * @extends {HTMLDivElement} 75 * @extends {HTMLDivElement}
76 */ 76 */
77 var ExtensionsList = cr.ui.define('div'); 77 var ExtensionsList = cr.ui.define('div');
78 78
79 /** 79 /**
80 * @type {Object.<string, number>} A map from extension id to last reloaded 80 * @type {Object<string, number>} A map from extension id to last reloaded
81 * timestamp. The timestamp is recorded when the user click the 'Reload' 81 * timestamp. The timestamp is recorded when the user click the 'Reload'
82 * link. It is used to refresh the icon of an unpacked extension. 82 * link. It is used to refresh the icon of an unpacked extension.
83 * This persists between calls to decorate. 83 * This persists between calls to decorate.
84 */ 84 */
85 var extensionReloadedTimestamp = {}; 85 var extensionReloadedTimestamp = {};
86 86
87 ExtensionsList.prototype = { 87 ExtensionsList.prototype = {
88 __proto__: HTMLDivElement.prototype, 88 __proto__: HTMLDivElement.prototype,
89 89
90 /** 90 /**
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 // TODO(dbeam): why do we need to focus <extensionoptions> before and 693 // TODO(dbeam): why do we need to focus <extensionoptions> before and
694 // after its showing animation? Makes very little sense to me. 694 // after its showing animation? Makes very little sense to me.
695 overlay.setInitialFocus(); 695 overlay.setInitialFocus();
696 }, 696 },
697 }; 697 };
698 698
699 return { 699 return {
700 ExtensionsList: ExtensionsList 700 ExtensionsList: ExtensionsList
701 }; 701 };
702 }); 702 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698