| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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('options.contentSettings', function() { | 5 cr.define('options.contentSettings', function() { |
| 6 const InlineEditableItemList = options.InlineEditableItemList; | 6 const InlineEditableItemList = options.InlineEditableItemList; |
| 7 const InlineEditableItem = options.InlineEditableItem; | 7 const InlineEditableItem = options.InlineEditableItem; |
| 8 const ArrayDataModel = cr.ui.ArrayDataModel; | 8 const ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 this.contentType = parentNode.getAttribute('contentType'); | 354 this.contentType = parentNode.getAttribute('contentType'); |
| 355 break; | 355 break; |
| 356 } | 356 } |
| 357 } | 357 } |
| 358 | 358 |
| 359 this.mode = this.getAttribute('mode'); | 359 this.mode = this.getAttribute('mode'); |
| 360 | 360 |
| 361 var exceptionList = this; | 361 var exceptionList = this; |
| 362 | 362 |
| 363 // Whether the exceptions in this list allow an 'Ask every time' option. | 363 // Whether the exceptions in this list allow an 'Ask every time' option. |
| 364 this.enableAskOption = (this.contentType == 'plugins' && | 364 this.enableAskOption = (this.contentType == 'plugins'); |
| 365 templateData.enable_click_to_play); | |
| 366 | 365 |
| 367 this.autoExpands = true; | 366 this.autoExpands = true; |
| 368 this.reset(); | 367 this.reset(); |
| 369 }, | 368 }, |
| 370 | 369 |
| 371 /** | 370 /** |
| 372 * Creates an item to go in the list. | 371 * Creates an item to go in the list. |
| 373 * @param {Object} entry The element from the data model for this row. | 372 * @param {Object} entry The element from the data model for this row. |
| 374 */ | 373 */ |
| 375 createItem: function(entry) { | 374 createItem: function(entry) { |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 543 } | 542 } |
| 544 }; | 543 }; |
| 545 | 544 |
| 546 return { | 545 return { |
| 547 ExceptionsListItem: ExceptionsListItem, | 546 ExceptionsListItem: ExceptionsListItem, |
| 548 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 547 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
| 549 ExceptionsList: ExceptionsList, | 548 ExceptionsList: ExceptionsList, |
| 550 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 549 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
| 551 }; | 550 }; |
| 552 }); | 551 }); |
| OLD | NEW |