| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 /** | 56 /** |
| 57 * @typedef {{name: string, | 57 * @typedef {{name: string, |
| 58 * id: string}} | 58 * id: string}} |
| 59 */ | 59 */ |
| 60 var MediaPickerEntry; | 60 var MediaPickerEntry; |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * @typedef {{protocol: string, | 63 * @typedef {{protocol: string, |
| 64 * spec: string}} | 64 * spec: string}} |
| 65 */ | 65 */ |
| 66 var ProtocolHandlerEntry; | 66 var ProtocolHandlerEntry; |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * @typedef {{name: string, | 69 * @typedef {{name: string, |
| 70 * product-id: Number, | 70 * product-id: Number, |
| 71 * serial-number: string, | 71 * serial-number: string, |
| 72 * vendor-id: Number}} | 72 * vendor-id: Number}} |
| 73 */ | 73 */ |
| 74 var UsbDeviceDetails; | 74 var UsbDeviceDetails; |
| 75 | 75 |
| 76 /** | 76 /** |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 }, | 314 }, |
| 315 | 315 |
| 316 /** @override */ | 316 /** @override */ |
| 317 getSiteDetails: function(site) { | 317 getSiteDetails: function(site) { |
| 318 return cr.sendWithPromise('getSiteDetails', site); | 318 return cr.sendWithPromise('getSiteDetails', site); |
| 319 }, | 319 }, |
| 320 | 320 |
| 321 /** @override */ | 321 /** @override */ |
| 322 resetCategoryPermissionForOrigin: function( | 322 resetCategoryPermissionForOrigin: function( |
| 323 primaryPattern, secondaryPattern, contentType, incognito) { | 323 primaryPattern, secondaryPattern, contentType, incognito) { |
| 324 chrome.send('resetCategoryPermissionForOrigin', | 324 chrome.send( |
| 325 'resetCategoryPermissionForOrigin', |
| 325 [primaryPattern, secondaryPattern, contentType, incognito]); | 326 [primaryPattern, secondaryPattern, contentType, incognito]); |
| 326 }, | 327 }, |
| 327 | 328 |
| 328 /** @override */ | 329 /** @override */ |
| 329 setCategoryPermissionForOrigin: function( | 330 setCategoryPermissionForOrigin: function( |
| 330 primaryPattern, secondaryPattern, contentType, value, incognito) { | 331 primaryPattern, secondaryPattern, contentType, value, incognito) { |
| 331 chrome.send('setCategoryPermissionForOrigin', | 332 chrome.send( |
| 333 'setCategoryPermissionForOrigin', |
| 332 [primaryPattern, secondaryPattern, contentType, value, incognito]); | 334 [primaryPattern, secondaryPattern, contentType, value, incognito]); |
| 333 }, | 335 }, |
| 334 | 336 |
| 335 /** @override */ | 337 /** @override */ |
| 336 isPatternValid: function(pattern) { | 338 isPatternValid: function(pattern) { |
| 337 return cr.sendWithPromise('isPatternValid', pattern); | 339 return cr.sendWithPromise('isPatternValid', pattern); |
| 338 }, | 340 }, |
| 339 | 341 |
| 340 /** @override */ | 342 /** @override */ |
| 341 getDefaultCaptureDevices: function(type) { | 343 getDefaultCaptureDevices: function(type) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 removeZoomLevel: function(host) { | 418 removeZoomLevel: function(host) { |
| 417 chrome.send('removeZoomLevel', [host]); | 419 chrome.send('removeZoomLevel', [host]); |
| 418 }, | 420 }, |
| 419 }; | 421 }; |
| 420 | 422 |
| 421 return { | 423 return { |
| 422 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, | 424 SiteSettingsPrefsBrowserProxy: SiteSettingsPrefsBrowserProxy, |
| 423 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, | 425 SiteSettingsPrefsBrowserProxyImpl: SiteSettingsPrefsBrowserProxyImpl, |
| 424 }; | 426 }; |
| 425 }); | 427 }); |
| OLD | NEW |