| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 primaryPattern, secondaryPattern, contentType, incognito) { | 235 primaryPattern, secondaryPattern, contentType, incognito) { |
| 236 this.methodCalled('resetCategoryPermissionForOrigin', | 236 this.methodCalled('resetCategoryPermissionForOrigin', |
| 237 [primaryPattern, secondaryPattern, contentType, incognito]); | 237 [primaryPattern, secondaryPattern, contentType, incognito]); |
| 238 return Promise.resolve(); | 238 return Promise.resolve(); |
| 239 }, | 239 }, |
| 240 | 240 |
| 241 /** @override */ | 241 /** @override */ |
| 242 setCategoryPermissionForOrigin: function( | 242 setCategoryPermissionForOrigin: function( |
| 243 primaryPattern, secondaryPattern, contentType, value, incognito) { | 243 primaryPattern, secondaryPattern, contentType, value, incognito) { |
| 244 this.methodCalled('setCategoryPermissionForOrigin', | 244 this.methodCalled('setCategoryPermissionForOrigin', |
| 245 [primaryPattern, secondaryPattern, contentType, value]); | 245 [primaryPattern, secondaryPattern, contentType, value, incognito]); |
| 246 return Promise.resolve(); | 246 return Promise.resolve(); |
| 247 }, | 247 }, |
| 248 | 248 |
| 249 /** @override */ | 249 /** @override */ |
| 250 fetchZoomLevels: function() { | 250 fetchZoomLevels: function() { |
| 251 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_); | 251 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_); |
| 252 this.methodCalled('fetchZoomLevels'); | 252 this.methodCalled('fetchZoomLevels'); |
| 253 }, | 253 }, |
| 254 | 254 |
| 255 /** @override */ | 255 /** @override */ |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 /** @override */ | 294 /** @override */ |
| 295 setProtocolDefault: function() { | 295 setProtocolDefault: function() { |
| 296 this.methodCalled('setProtocolDefault', arguments); | 296 this.methodCalled('setProtocolDefault', arguments); |
| 297 }, | 297 }, |
| 298 | 298 |
| 299 /** @override */ | 299 /** @override */ |
| 300 removeProtocolHandler: function() { | 300 removeProtocolHandler: function() { |
| 301 this.methodCalled('removeProtocolHandler', arguments); | 301 this.methodCalled('removeProtocolHandler', arguments); |
| 302 } | 302 } |
| 303 }; | 303 }; |
| OLD | NEW |