| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * @fileoverview A helper object used from the "Site Settings" section to | 6 * @fileoverview A helper object used from the "Site Settings" section to |
| 7 * interact with the content settings prefs. | 7 * interact with the content settings prefs. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 * exceptions: ExceptionListPref}} | 33 * exceptions: ExceptionListPref}} |
| 34 */ | 34 */ |
| 35 var SiteSettingsPref; | 35 var SiteSettingsPref; |
| 36 | 36 |
| 37 /** | 37 /** |
| 38 * @typedef {{name: string, | 38 * @typedef {{name: string, |
| 39 * id: string}} | 39 * id: string}} |
| 40 */ | 40 */ |
| 41 var MediaPickerEntry; | 41 var MediaPickerEntry; |
| 42 | 42 |
| 43 /** |
| 44 * @typedef {{protocol: string, |
| 45 * spec: string}} |
| 46 */ |
| 47 var ProtocolHandlerEntry; |
| 48 |
| 43 cr.define('settings', function() { | 49 cr.define('settings', function() { |
| 44 /** @interface */ | 50 /** @interface */ |
| 45 function SiteSettingsPrefsBrowserProxy() {} | 51 function SiteSettingsPrefsBrowserProxy() {} |
| 46 | 52 |
| 47 SiteSettingsPrefsBrowserProxy.prototype = { | 53 SiteSettingsPrefsBrowserProxy.prototype = { |
| 48 /** | 54 /** |
| 49 * Sets the default value for a site settings category. | 55 * Sets the default value for a site settings category. |
| 50 * @param {string} contentType The name of the category to change. | 56 * @param {string} contentType The name of the category to change. |
| 51 * @param {string} defaultValue The name of the value to set as default. | 57 * @param {string} defaultValue The name of the value to set as default. |
| 52 */ | 58 */ |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 removeProtocolHandler: function(protocol, url) { | 250 removeProtocolHandler: function(protocol, url) { |
| 245 chrome.send('removeHandler', [[protocol, url]]); | 251 chrome.send('removeHandler', [[protocol, url]]); |
| 246 }, | 252 }, |
| 247 }; | 253 }; |
| 248 | 254 |
| 249 return { | 255 return { |
| 250 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, | 256 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, |
| 251 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, | 257 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, |
| 252 }; | 258 }; |
| 253 }); | 259 }); |
| OLD | NEW |