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', function() { | 5 cr.define('options', function() { |
6 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 | 7 |
8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
9 // ContentSettings class: | 9 // ContentSettings class: |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 } | 65 } |
66 | 66 |
67 var manageHandlersButton = $('manage-handlers-button'); | 67 var manageHandlersButton = $('manage-handlers-button'); |
68 if (manageHandlersButton) { | 68 if (manageHandlersButton) { |
69 manageHandlersButton.onclick = function(event) { | 69 manageHandlersButton.onclick = function(event) { |
70 OptionsPage.navigateToPage('handlers'); | 70 OptionsPage.navigateToPage('handlers'); |
71 }; | 71 }; |
72 } | 72 } |
73 | 73 |
74 if (cr.isChromeOS) | 74 if (cr.isChromeOS) |
75 AccountsOptions.applyGuestModeVisibility(document); | 75 UIAccountTweaks.applyGuestModeVisibility(document); |
76 | 76 |
77 // Cookies filter page --------------------------------------------------- | 77 // Cookies filter page --------------------------------------------------- |
78 $('show-cookies-button').onclick = function(event) { | 78 $('show-cookies-button').onclick = function(event) { |
79 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); | 79 chrome.send('coreOptionsUserMetricsAction', ['Options_ShowCookies']); |
80 OptionsPage.navigateToPage('cookies'); | 80 OptionsPage.navigateToPage('cookies'); |
81 }; | 81 }; |
82 | 82 |
83 // Remove from DOM instead of hiding so :last-of-type applies the style | 83 // Remove from DOM instead of hiding so :last-of-type applies the style |
84 // correctly. | 84 // correctly. |
85 var intentsSection = $('intents-section'); | 85 var intentsSection = $('intents-section'); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 'list[mode=' + mode + ']'); | 220 'list[mode=' + mode + ']'); |
221 exceptionsList.patternValidityCheckComplete(pattern, valid); | 221 exceptionsList.patternValidityCheckComplete(pattern, valid); |
222 }; | 222 }; |
223 | 223 |
224 // Export | 224 // Export |
225 return { | 225 return { |
226 ContentSettings: ContentSettings | 226 ContentSettings: ContentSettings |
227 }; | 227 }; |
228 | 228 |
229 }); | 229 }); |
OLD | NEW |