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

Side by Side Diff: chrome/browser/resources/md_extensions/service.js

Issue 2707083003: [MD Extensions] Update Item Card UI (Closed)
Patch Set: missed one Created 3 years, 9 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * @constructor 9 * @constructor
10 * @implements {extensions.ItemDelegate} 10 * @implements {extensions.ItemDelegate}
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 inspectItemView: function(id, view) { 215 inspectItemView: function(id, view) {
216 chrome.developerPrivate.openDevTools({ 216 chrome.developerPrivate.openDevTools({
217 extensionId: id, 217 extensionId: id,
218 renderProcessId: view.renderProcessId, 218 renderProcessId: view.renderProcessId,
219 renderViewId: view.renderViewId, 219 renderViewId: view.renderViewId,
220 incognito: view.incognito, 220 incognito: view.incognito,
221 }); 221 });
222 }, 222 },
223 223
224 /** @override */ 224 /** @override */
225 reloadItem: function(id) {
226 chrome.developerPrivate.reload(id, {failQuietly: false});
227 },
228
229 /** @override */
225 repairItem: function(id) { 230 repairItem: function(id) {
226 chrome.developerPrivate.repairExtension(id); 231 chrome.developerPrivate.repairExtension(id);
227 }, 232 },
228 233
229 /** @override */ 234 /** @override */
230 showItemOptionsPage: function(id) { 235 showItemOptionsPage: function(id) {
231 var extension = this.extensions_.find(function(extension) { 236 var extension = this.extensions_.find(function(extension) {
232 return extension.id == id; 237 return extension.id == id;
233 }); 238 });
234 assert(extension && extension.optionsPage); 239 assert(extension && extension.optionsPage);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 resolve(code); 294 resolve(code);
290 }); 295 });
291 }); 296 });
292 }, 297 },
293 }; 298 };
294 299
295 cr.addSingletonGetter(Service); 300 cr.addSingletonGetter(Service);
296 301
297 return {Service: Service}; 302 return {Service: Service};
298 }); 303 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/item.js ('k') | chrome/browser/ui/webui/extensions/extensions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698