| 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 // ExtensionFocusRow: | 8 // ExtensionFocusRow: |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 }); | 397 }); |
| 398 | 398 |
| 399 // The 'Launch' link. | 399 // The 'Launch' link. |
| 400 row.setupColumn('.launch-link', 'launch', 'click', function(e) { | 400 row.setupColumn('.launch-link', 'launch', 'click', function(e) { |
| 401 chrome.send('extensionSettingsLaunch', [extension.id]); | 401 chrome.send('extensionSettingsLaunch', [extension.id]); |
| 402 }); | 402 }); |
| 403 | 403 |
| 404 // The 'Reload' terminated link. | 404 // The 'Reload' terminated link. |
| 405 row.setupColumn('.terminated-reload-link', 'terminatedReload', 'click', | 405 row.setupColumn('.terminated-reload-link', 'terminatedReload', 'click', |
| 406 function(e) { | 406 function(e) { |
| 407 chrome.send('extensionSettingsReload', [extension.id]); | 407 chrome.developerPrivate.reload(extension.id, {failQuietly: true}); |
| 408 }); | 408 }); |
| 409 | 409 |
| 410 // The 'Repair' corrupted link. | 410 // The 'Repair' corrupted link. |
| 411 row.setupColumn('.corrupted-repair-button', 'repair', 'click', | 411 row.setupColumn('.corrupted-repair-button', 'repair', 'click', |
| 412 function(e) { | 412 function(e) { |
| 413 chrome.send('extensionSettingsRepair', [extension.id]); | 413 chrome.send('extensionSettingsRepair', [extension.id]); |
| 414 }); | 414 }); |
| 415 | 415 |
| 416 // The 'Enabled' checkbox. | 416 // The 'Enabled' checkbox. |
| 417 row.setupColumn('.enable-checkbox input', 'enabled', 'change', | 417 row.setupColumn('.enable-checkbox input', 'enabled', 'change', |
| (...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 // TODO(dbeam): why do we need to focus <extensionoptions> before and | 927 // TODO(dbeam): why do we need to focus <extensionoptions> before and |
| 928 // after its showing animation? Makes very little sense to me. | 928 // after its showing animation? Makes very little sense to me. |
| 929 overlay.setInitialFocus(); | 929 overlay.setInitialFocus(); |
| 930 }, | 930 }, |
| 931 }; | 931 }; |
| 932 | 932 |
| 933 return { | 933 return { |
| 934 ExtensionList: ExtensionList | 934 ExtensionList: ExtensionList |
| 935 }; | 935 }; |
| 936 }); | 936 }); |
| OLD | NEW |