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', function() { | 5 cr.define('options', function() { |
6 | 6 |
7 ////////////////////////////////////////////////////////////////////////////// | 7 ////////////////////////////////////////////////////////////////////////////// |
8 // ContentSettingsRadio class: | 8 // ContentSettingsRadio class: |
9 | 9 |
10 // Define a constructor that uses an input element as its underlying element. | 10 // Define a constructor that uses an input element as its underlying element. |
(...skipping 12 matching lines...) Expand all Loading... |
23 this.addEventListener('change', | 23 this.addEventListener('change', |
24 function(e) { | 24 function(e) { |
25 chrome.send('setContentFilter', [this.name, this.value]); | 25 chrome.send('setContentFilter', [this.name, this.value]); |
26 }); | 26 }); |
27 }, | 27 }, |
28 }; | 28 }; |
29 | 29 |
30 /** | 30 /** |
31 * Whether the content setting is controlled by something else than the user's | 31 * Whether the content setting is controlled by something else than the user's |
32 * settings (either 'policy' or 'extension'). | 32 * settings (either 'policy' or 'extension'). |
33 * @type {string} | |
34 */ | 33 */ |
35 cr.defineProperty(ContentSettingsRadio, 'controlledBy', cr.PropertyKind.ATTR); | 34 cr.defineProperty(ContentSettingsRadio, 'controlledBy', cr.PropertyKind.ATTR); |
36 | 35 |
37 ////////////////////////////////////////////////////////////////////////////// | 36 ////////////////////////////////////////////////////////////////////////////// |
38 // HandlersEnabledRadio class: | 37 // HandlersEnabledRadio class: |
39 | 38 |
40 // Define a constructor that uses an input element as its underlying element. | 39 // Define a constructor that uses an input element as its underlying element. |
41 var HandlersEnabledRadio = cr.ui.define('input'); | 40 var HandlersEnabledRadio = cr.ui.define('input'); |
42 | 41 |
43 HandlersEnabledRadio.prototype = { | 42 HandlersEnabledRadio.prototype = { |
(...skipping 14 matching lines...) Expand all Loading... |
58 }; | 57 }; |
59 | 58 |
60 // Export | 59 // Export |
61 return { | 60 return { |
62 ContentSettingsRadio: ContentSettingsRadio, | 61 ContentSettingsRadio: ContentSettingsRadio, |
63 HandlersEnabledRadio: HandlersEnabledRadio | 62 HandlersEnabledRadio: HandlersEnabledRadio |
64 }; | 63 }; |
65 | 64 |
66 }); | 65 }); |
67 | 66 |
OLD | NEW |