OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
8 | 8 |
9 ////////////////////////////////////////////////////////////////////////////// | 9 ////////////////////////////////////////////////////////////////////////////// |
10 // ContentSettings class: | 10 // ContentSettings class: |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 options.contentSettings.ExceptionsArea.decorate(exceptionsAreas[i]); | 48 options.contentSettings.ExceptionsArea.decorate(exceptionsAreas[i]); |
49 } | 49 } |
50 | 50 |
51 // Cookies filter page --------------------------------------------------- | 51 // Cookies filter page --------------------------------------------------- |
52 $('block-third-party-cookies').onclick = function(event) { | 52 $('block-third-party-cookies').onclick = function(event) { |
53 chrome.send('setAllowThirdPartyCookies', | 53 chrome.send('setAllowThirdPartyCookies', |
54 [String($('block-third-party-cookies').checked)]); | 54 [String($('block-third-party-cookies').checked)]); |
55 }; | 55 }; |
56 | 56 |
57 $('show-cookies-button').onclick = function(event) { | 57 $('show-cookies-button').onclick = function(event) { |
58 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | |
59 // TODO(estade): show cookies and other site data page. | 58 // TODO(estade): show cookies and other site data page. |
60 }; | 59 }; |
61 }, | 60 }, |
62 }; | 61 }; |
63 | 62 |
64 /** | 63 /** |
65 * Sets the initial values for all the content settings radios. | 64 * Sets the initial values for all the content settings radios. |
66 * @param {Object} dict A mapping from radio groups to the checked value for | 65 * @param {Object} dict A mapping from radio groups to the checked value for |
67 * that group. | 66 * that group. |
68 */ | 67 */ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 exceptionsList.patternValidityCheckComplete(pattern, valid); | 121 exceptionsList.patternValidityCheckComplete(pattern, valid); |
123 }; | 122 }; |
124 | 123 |
125 // Export | 124 // Export |
126 return { | 125 return { |
127 ContentSettings: ContentSettings | 126 ContentSettings: ContentSettings |
128 }; | 127 }; |
129 | 128 |
130 }); | 129 }); |
131 | 130 |
OLD | NEW |