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/extension_list.js

Issue 954943007: [Extensions] Make chrome://extensions use api functions for file access, reload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 (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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 row.querySelector('.site-link').setAttribute('column-type', 'website'); 407 row.querySelector('.site-link').setAttribute('column-type', 'website');
408 408
409 // The 'Permissions' link. 409 // The 'Permissions' link.
410 row.setupColumn('.permissions-link', 'details', 'click', function(e) { 410 row.setupColumn('.permissions-link', 'details', 'click', function(e) {
411 chrome.send('extensionSettingsPermissions', [extension.id]); 411 chrome.send('extensionSettingsPermissions', [extension.id]);
412 e.preventDefault(); 412 e.preventDefault();
413 }); 413 });
414 414
415 // The 'Reload' link. 415 // The 'Reload' link.
416 row.setupColumn('.reload-link', 'localReload', 'click', function(e) { 416 row.setupColumn('.reload-link', 'localReload', 'click', function(e) {
417 chrome.send('extensionSettingsReload', [extension.id]); 417 chrome.developerPrivate.reload(extension.id, {failQuietly: true});
418 extensionReloadedTimestamp[extension.id] = Date.now(); 418 extensionReloadedTimestamp[extension.id] = Date.now();
419 }); 419 });
420 420
421 // The 'Launch' link. 421 // The 'Launch' link.
422 row.setupColumn('.launch-link', 'launch', 'click', function(e) { 422 row.setupColumn('.launch-link', 'launch', 'click', function(e) {
423 chrome.send('extensionSettingsLaunch', [extension.id]); 423 chrome.send('extensionSettingsLaunch', [extension.id]);
424 }); 424 });
425 425
426 // The 'Reload' terminated link. 426 // The 'Reload' terminated link.
427 row.setupColumn('.terminated-reload-link', 'terminatedReload', 'click', 427 row.setupColumn('.terminated-reload-link', 'terminatedReload', 'click',
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 var trash = document.querySelector('.trash.open'); 904 var trash = document.querySelector('.trash.open');
905 if (trash.classList.contains('mouse-clicked')) 905 if (trash.classList.contains('mouse-clicked'))
906 trash.blur(); 906 trash.blur();
907 trash.classList.remove('open'); 907 trash.classList.remove('open');
908 }; 908 };
909 909
910 return { 910 return {
911 ExtensionList: ExtensionList 911 ExtensionList: ExtensionList
912 }; 912 };
913 }); 913 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698