| OLD | NEW |
| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 this.isDeleting_ = false; | 101 this.isDeleting_ = false; |
| 102 }.bind(this)); | 102 }.bind(this)); |
| 103 }, | 103 }, |
| 104 | 104 |
| 105 /** @override */ | 105 /** @override */ |
| 106 setItemEnabled: function(id, isEnabled) { | 106 setItemEnabled: function(id, isEnabled) { |
| 107 chrome.management.setEnabled(id, isEnabled); | 107 chrome.management.setEnabled(id, isEnabled); |
| 108 }, | 108 }, |
| 109 | 109 |
| 110 /** @override */ | 110 /** @override */ |
| 111 showItemDetails: function(id) {}, | |
| 112 | |
| 113 /** @override */ | |
| 114 setItemAllowedIncognito: function(id, isAllowedIncognito) { | 111 setItemAllowedIncognito: function(id, isAllowedIncognito) { |
| 115 chrome.developerPrivate.updateExtensionConfiguration({ | 112 chrome.developerPrivate.updateExtensionConfiguration({ |
| 116 extensionId: id, | 113 extensionId: id, |
| 117 incognitoAccess: isAllowedIncognito, | 114 incognitoAccess: isAllowedIncognito, |
| 118 }); | 115 }); |
| 119 }, | 116 }, |
| 120 | 117 |
| 121 /** @override */ | 118 /** @override */ |
| 122 inspectItemView: function(id, view) { | 119 inspectItemView: function(id, view) { |
| 123 chrome.developerPrivate.openDevTools({ | 120 chrome.developerPrivate.openDevTools({ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 146 /** @override */ | 143 /** @override */ |
| 147 updateAllExtensions: function() { | 144 updateAllExtensions: function() { |
| 148 chrome.developerPrivate.autoUpdate(); | 145 chrome.developerPrivate.autoUpdate(); |
| 149 }, | 146 }, |
| 150 }; | 147 }; |
| 151 | 148 |
| 152 cr.addSingletonGetter(Service); | 149 cr.addSingletonGetter(Service); |
| 153 | 150 |
| 154 return {Service: Service}; | 151 return {Service: Service}; |
| 155 }); | 152 }); |
| OLD | NEW |