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 ControlledSettingIndicator = | 6 /** @const */ var ControlledSettingIndicator = |
7 options.ControlledSettingIndicator; | 7 options.ControlledSettingIndicator; |
8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; | 8 /** @const */ var InlineEditableItemList = options.InlineEditableItemList; |
9 /** @const */ var InlineEditableItem = options.InlineEditableItem; | 9 /** @const */ var InlineEditableItem = options.InlineEditableItem; |
10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 10 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 var optionAllow = cr.doc.createElement('option'); | 66 var optionAllow = cr.doc.createElement('option'); |
67 optionAllow.textContent = loadTimeData.getString('allowException'); | 67 optionAllow.textContent = loadTimeData.getString('allowException'); |
68 optionAllow.value = 'allow'; | 68 optionAllow.value = 'allow'; |
69 select.appendChild(optionAllow); | 69 select.appendChild(optionAllow); |
70 | 70 |
71 if (this.contentType == 'plugins') { | 71 if (this.contentType == 'plugins') { |
72 var optionDetect = cr.doc.createElement('option'); | 72 var optionDetect = cr.doc.createElement('option'); |
73 optionDetect.textContent = loadTimeData.getString('detectException'); | 73 optionDetect.textContent = loadTimeData.getString('detectException'); |
74 optionDetect.value = 'detect'; | 74 optionDetect.value = 'detect'; |
75 select.appendChild(optionDetect); | 75 select.appendChild(optionDetect); |
| 76 var optionAsk = cr.doc.createElement('option'); |
| 77 optionAsk.textContent = loadTimeData.getString('askException'); |
| 78 optionAsk.value = 'ask'; |
| 79 select.appendChild(optionAsk); |
76 } | 80 } |
77 | 81 |
78 if (this.contentType == 'cookies') { | 82 if (this.contentType == 'cookies') { |
79 var optionSession = cr.doc.createElement('option'); | 83 var optionSession = cr.doc.createElement('option'); |
80 optionSession.textContent = loadTimeData.getString('sessionException'); | 84 optionSession.textContent = loadTimeData.getString('sessionException'); |
81 optionSession.value = 'session'; | 85 optionSession.value = 'session'; |
82 select.appendChild(optionSession); | 86 select.appendChild(optionSession); |
83 } | 87 } |
84 | 88 |
85 if (this.contentType != 'fullscreen') { | 89 if (this.contentType != 'fullscreen') { |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 } | 673 } |
670 }; | 674 }; |
671 | 675 |
672 return { | 676 return { |
673 ExceptionsListItem: ExceptionsListItem, | 677 ExceptionsListItem: ExceptionsListItem, |
674 ExceptionsAddRowListItem: ExceptionsAddRowListItem, | 678 ExceptionsAddRowListItem: ExceptionsAddRowListItem, |
675 ExceptionsList: ExceptionsList, | 679 ExceptionsList: ExceptionsList, |
676 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, | 680 ContentSettingsExceptionsArea: ContentSettingsExceptionsArea, |
677 }; | 681 }; |
678 }); | 682 }); |
OLD | NEW |