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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 $('block-third-party-cookies').onclick = function(event) { | 43 $('block-third-party-cookies').onclick = function(event) { |
44 chrome.send('setAllowThirdPartyCookies', | 44 chrome.send('setAllowThirdPartyCookies', |
45 [String($('block-third-party-cookies').checked)]); | 45 [String($('block-third-party-cookies').checked)]); |
46 }; | 46 }; |
47 | 47 |
48 $('show-cookies-button').onclick = function(event) { | 48 $('show-cookies-button').onclick = function(event) { |
49 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 49 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
50 OptionsPage.showPageByName('cookiesView'); | 50 OptionsPage.showPageByName('cookiesView'); |
51 }; | 51 }; |
52 | 52 |
53 $('plugins-tab').onclick = function(event) { | |
54 chrome.send('openPluginsTab'); | |
55 return false; | |
56 }; | |
57 | |
58 if (!templateData.enable_click_to_play) | 53 if (!templateData.enable_click_to_play) |
59 $('click_to_play').style.display = 'none'; | 54 $('click_to_play').style.display = 'none'; |
60 }, | 55 }, |
61 | 56 |
62 /** | 57 /** |
63 * Handles a hash value in the URL (such as bar in | 58 * Handles a hash value in the URL (such as bar in |
64 * chrome://options/foo#bar). | 59 * chrome://options/foo#bar). |
65 * @param {string} hash The hash value. | 60 * @param {string} hash The hash value. |
66 */ | 61 */ |
67 handleHash: function(hash) { | 62 handleHash: function(hash) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { | 133 ContentSettings.setClearLocalDataOnShutdownLabel = function(label) { |
139 $('clear-cookies-on-exit-label').innerText = label; | 134 $('clear-cookies-on-exit-label').innerText = label; |
140 }; | 135 }; |
141 | 136 |
142 // Export | 137 // Export |
143 return { | 138 return { |
144 ContentSettings: ContentSettings | 139 ContentSettings: ContentSettings |
145 }; | 140 }; |
146 | 141 |
147 }); | 142 }); |
OLD | NEW |