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/md_extensions/manager.js

Issue 2140513003: [MD Extensions] Update polymer properties ordering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Michael's Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 different pages that can be shown at a time. 6 * The different pages that can be shown at a time.
7 * Note: This must remain in sync with the order in manager.html! 7 * Note: This must remain in sync with the order in manager.html!
8 * @enum {string} 8 * @enum {string}
9 */ 9 */
10 var Page = { 10 var Page = {
(...skipping 25 matching lines...) Expand all
36 return 0; 36 return 0;
37 } 37 }
38 return compareLocation(a, b) || 38 return compareLocation(a, b) ||
39 compare(a.name.toLowerCase(), b.name.toLowerCase()) || 39 compare(a.name.toLowerCase(), b.name.toLowerCase()) ||
40 compare(a.id, b.id); 40 compare(a.id, b.id);
41 }; 41 };
42 42
43 var Manager = Polymer({ 43 var Manager = Polymer({
44 is: 'extensions-manager', 44 is: 'extensions-manager',
45 45
46 behaviors: [I18nBehavior],
47
46 properties: { 48 properties: {
47 /** @type {extensions.Sidebar} */ 49 /** @type {extensions.Sidebar} */
48 sidebar: Object, 50 sidebar: Object,
49 51
50 /** @type {extensions.ItemDelegate} */ 52 /** @type {extensions.ItemDelegate} */
51 itemDelegate: Object, 53 itemDelegate: Object,
52 54
53 inDevMode: { 55 inDevMode: {
54 type: Boolean, 56 type: Boolean,
55 value: false, 57 value: false,
(...skipping 10 matching lines...) Expand all
66 value: function() { return []; }, 68 value: function() { return []; },
67 }, 69 },
68 70
69 /** @type {!Array<!chrome.developerPrivate.ExtensionInfo>} */ 71 /** @type {!Array<!chrome.developerPrivate.ExtensionInfo>} */
70 apps: { 72 apps: {
71 type: Array, 73 type: Array,
72 value: function() { return []; }, 74 value: function() { return []; },
73 }, 75 },
74 }, 76 },
75 77
76 behaviors: [
77 I18nBehavior,
78 ],
79
80 listeners: { 78 listeners: {
81 'items-list.extension-item-show-details': 'showItemDetails_', 79 'items-list.extension-item-show-details': 'showItemDetails_',
82 }, 80 },
83 81
84 created: function() { 82 created: function() {
85 this.readyPromiseResolver = new PromiseResolver(); 83 this.readyPromiseResolver = new PromiseResolver();
86 }, 84 },
87 85
88 ready: function() { 86 ready: function() {
89 /** @type {extensions.Sidebar} */ 87 /** @type {extensions.Sidebar} */
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 }, 283 },
286 284
287 /** @override */ 285 /** @override */
288 showPackDialog: function() { 286 showPackDialog: function() {
289 this.manager_.$['pack-dialog'].show(); 287 this.manager_.$['pack-dialog'].show();
290 } 288 }
291 }; 289 };
292 290
293 return {Manager: Manager}; 291 return {Manager: Manager};
294 }); 292 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/item.js ('k') | chrome/browser/resources/md_extensions/shortcut_input.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698