| 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 * An example empty pref. | 6 * An example empty pref. |
| 7 * @type {SiteSettingsPref} | 7 * @type {SiteSettingsPref} |
| 8 */ | 8 */ |
| 9 var prefsEmpty = { | 9 var prefsEmpty = { |
| 10 defaults: { | 10 defaults: { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 */ | 46 */ |
| 47 var TestSiteSettingsPrefsBrowserProxy = function() { | 47 var TestSiteSettingsPrefsBrowserProxy = function() { |
| 48 settings.TestBrowserProxy.call(this, [ | 48 settings.TestBrowserProxy.call(this, [ |
| 49 'fetchUsbDevices', | 49 'fetchUsbDevices', |
| 50 'fetchZoomLevels', | 50 'fetchZoomLevels', |
| 51 'getCookieDetails', | 51 'getCookieDetails', |
| 52 'getDefaultValueForContentType', | 52 'getDefaultValueForContentType', |
| 53 'getExceptionList', | 53 'getExceptionList', |
| 54 'observeProtocolHandlers', | 54 'observeProtocolHandlers', |
| 55 'observeProtocolHandlersEnabledState', | 55 'observeProtocolHandlersEnabledState', |
| 56 'reloadCookies', |
| 57 'removeCookie', |
| 56 'removeProtocolHandler', | 58 'removeProtocolHandler', |
| 57 'removeUsbDevice', | 59 'removeUsbDevice', |
| 58 'removeZoomLevel', | 60 'removeZoomLevel', |
| 59 'resetCategoryPermissionForOrigin', | 61 'resetCategoryPermissionForOrigin', |
| 60 'setCategoryPermissionForOrigin', | 62 'setCategoryPermissionForOrigin', |
| 61 'setDefaultValueForContentType', | 63 'setDefaultValueForContentType', |
| 62 'setProtocolDefault' | 64 'setProtocolDefault' |
| 63 ]); | 65 ]); |
| 64 | 66 |
| 65 /** @private {!SiteSettingsPref} */ | 67 /** @private {!SiteSettingsPref} */ |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 return Promise.resolve(); | 240 return Promise.resolve(); |
| 239 }, | 241 }, |
| 240 | 242 |
| 241 /** @override */ | 243 /** @override */ |
| 242 fetchZoomLevels: function() { | 244 fetchZoomLevels: function() { |
| 243 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_); | 245 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_); |
| 244 this.methodCalled('fetchZoomLevels'); | 246 this.methodCalled('fetchZoomLevels'); |
| 245 }, | 247 }, |
| 246 | 248 |
| 247 /** @override */ | 249 /** @override */ |
| 250 reloadCookies: function() { |
| 251 return Promise.resolve({id: null, children: []}); |
| 252 }, |
| 253 |
| 254 /** @override */ |
| 255 removeCookie: function(path) { |
| 256 this.methodCalled('removeCookie', path); |
| 257 }, |
| 258 |
| 259 /** @override */ |
| 248 removeZoomLevel: function(host) { | 260 removeZoomLevel: function(host) { |
| 249 this.methodCalled('removeZoomLevel', [host]); | 261 this.methodCalled('removeZoomLevel', [host]); |
| 250 }, | 262 }, |
| 251 | 263 |
| 252 /** @override */ | 264 /** @override */ |
| 253 fetchUsbDevices: function() { | 265 fetchUsbDevices: function() { |
| 254 this.methodCalled('fetchUsbDevices'); | 266 this.methodCalled('fetchUsbDevices'); |
| 255 return Promise.resolve(this.usbDevices_); | 267 return Promise.resolve(this.usbDevices_); |
| 256 }, | 268 }, |
| 257 | 269 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 276 /** @override */ | 288 /** @override */ |
| 277 setProtocolDefault: function() { | 289 setProtocolDefault: function() { |
| 278 this.methodCalled('setProtocolDefault', arguments); | 290 this.methodCalled('setProtocolDefault', arguments); |
| 279 }, | 291 }, |
| 280 | 292 |
| 281 /** @override */ | 293 /** @override */ |
| 282 removeProtocolHandler: function() { | 294 removeProtocolHandler: function() { |
| 283 this.methodCalled('removeProtocolHandler', arguments); | 295 this.methodCalled('removeProtocolHandler', arguments); |
| 284 } | 296 } |
| 285 }; | 297 }; |
| OLD | NEW |