| 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 var AddStartupPageOverlay = options.AddStartupPageOverlay; | 5 var AddStartupPageOverlay = options.AddStartupPageOverlay; |
| 6 var AdvancedOptions = options.AdvancedOptions; | 6 var AdvancedOptions = options.AdvancedOptions; |
| 7 var AlertOverlay = options.AlertOverlay; | 7 var AlertOverlay = options.AlertOverlay; |
| 8 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay; | 8 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay; |
| 9 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay; | 9 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay; |
| 10 var AutoFillOptions = options.AutoFillOptions; | 10 var AutoFillOptions = options.AutoFillOptions; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 */ | 32 */ |
| 33 function load() { | 33 function load() { |
| 34 // Decorate the existing elements in the document. | 34 // Decorate the existing elements in the document. |
| 35 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); | 35 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); |
| 36 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); | 36 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); |
| 37 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); | 37 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); |
| 38 cr.ui.decorate('input[pref][type=range]', options.PrefRange); | 38 cr.ui.decorate('input[pref][type=range]', options.PrefRange); |
| 39 cr.ui.decorate('select[pref]', options.PrefSelect); | 39 cr.ui.decorate('select[pref]', options.PrefSelect); |
| 40 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); | 40 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); |
| 41 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); | 41 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); |
| 42 cr.ui.decorate('#contentSettingsPage input[type=radio]', | 42 cr.ui.decorate('#content-settings-page input[type=radio]', |
| 43 options.ContentSettingsRadio); | 43 options.ContentSettingsRadio); |
| 44 cr.ui.decorate('#fontSettingsMinimumSizeSelector', | 44 cr.ui.decorate('#fontSettingsMinimumSizeSelector', |
| 45 options.MinimumFontSizeSelect); | 45 options.MinimumFontSizeSelect); |
| 46 | 46 |
| 47 var menuOffPattern = /(^\?|&)menu=off($|&)/; | 47 var menuOffPattern = /(^\?|&)menu=off($|&)/; |
| 48 var menuDisabled = menuOffPattern.test(window.location.search); | 48 var menuDisabled = menuOffPattern.test(window.location.search); |
| 49 document.documentElement.setAttribute('hide-menu', menuDisabled); | 49 document.documentElement.setAttribute('hide-menu', menuDisabled); |
| 50 | 50 |
| 51 localStrings = new LocalStrings(); | 51 localStrings = new LocalStrings(); |
| 52 | 52 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 document.documentElement.setAttribute('toolkit', 'gtk'); | 162 document.documentElement.setAttribute('toolkit', 'gtk'); |
| 163 if (cr.isViews) | 163 if (cr.isViews) |
| 164 document.documentElement.setAttribute('toolkit', 'views'); | 164 document.documentElement.setAttribute('toolkit', 'views'); |
| 165 } | 165 } |
| 166 | 166 |
| 167 document.addEventListener('DOMContentLoaded', load); | 167 document.addEventListener('DOMContentLoaded', load); |
| 168 | 168 |
| 169 window.onpopstate = function(e) { | 169 window.onpopstate = function(e) { |
| 170 options.OptionsPage.setState(e.state); | 170 options.OptionsPage.setState(e.state); |
| 171 }; | 171 }; |
| OLD | NEW |