OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 */ var InlineEditableItemList = options.InlineEditableItemList; | 6 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; |
7 /** @const */ var InlineEditableItem = options.InlineEditableItem; | 7 /** @const */ var InlineEditableItem = options.InlineEditableItem; |
8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
9 | 9 |
10 /** | 10 /** |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 this.contentType = parentNode.getAttribute('contentType'); | 368 this.contentType = parentNode.getAttribute('contentType'); |
369 break; | 369 break; |
370 } | 370 } |
371 } | 371 } |
372 | 372 |
373 this.mode = this.getAttribute('mode'); | 373 this.mode = this.getAttribute('mode'); |
374 | 374 |
375 var exceptionList = this; | 375 var exceptionList = this; |
376 | 376 |
377 // Whether the exceptions in this list allow an 'Ask every time' option. | 377 // Whether the exceptions in this list allow an 'Ask every time' option. |
378 this.enableAskOption = this.contentType == 'plugins'; | 378 this.enableAskOption = this.contentType == 'plugins' || |
| 379 this.contentType == 'pepper-flash-cameramic'; |
379 | 380 |
380 this.autoExpands = true; | 381 this.autoExpands = true; |
381 this.reset(); | 382 this.reset(); |
382 }, | 383 }, |
383 | 384 |
384 /** | 385 /** |
385 * Creates an item to go in the list. | 386 * Creates an item to go in the list. |
386 * @param {Object} entry The element from the data model for this row. | 387 * @param {Object} entry The element from the data model for this row. |
387 */ | 388 */ |
388 createItem: function(entry) { | 389 createItem: function(entry) { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 } | 560 } |
560 }; | 561 }; |
561 | 562 |
562 return { | 563 return { |
563 ExceptionsListItem: ExceptionsListItem, | 564 ExceptionsListItem: ExceptionsListItem, |
564 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 565 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
565 ExceptionsList: ExceptionsList, | 566 ExceptionsList: ExceptionsList, |
566 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 567 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
567 }; | 568 }; |
568 }); | 569 }); |
OLD | NEW |