| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 }); |
| OLD | NEW |