| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 var subpagesNavTabs = document.querySelectorAll('.subpages-nav-tabs'); | 151 var subpagesNavTabs = document.querySelectorAll('.subpages-nav-tabs'); |
| 152 for(var i = 0; i < subpagesNavTabs.length; i++) { | 152 for(var i = 0; i < subpagesNavTabs.length; i++) { |
| 153 subpagesNavTabs[i].onclick = function(event) { | 153 subpagesNavTabs[i].onclick = function(event) { |
| 154 OptionsPage.showTab(event.srcElement); | 154 OptionsPage.showTab(event.srcElement); |
| 155 } | 155 } |
| 156 } | 156 } |
| 157 | 157 |
| 158 // Allow platform specific CSS rules. | 158 // Allow platform specific CSS rules. |
| 159 if (cr.isMac) | 159 if (cr.isMac) |
| 160 document.documentElement.setAttribute('os', 'mac'); | 160 document.documentElement.setAttribute('os', 'mac'); |
| 161 if (cr.isLinux) |
| 162 document.documentElement.setAttribute('toolkit', 'gtk'); |
| 161 if (cr.isViews) | 163 if (cr.isViews) |
| 162 document.documentElement.setAttribute('toolkit', 'views'); | 164 document.documentElement.setAttribute('toolkit', 'views'); |
| 163 } | 165 } |
| 164 | 166 |
| 165 document.addEventListener('DOMContentLoaded', load); | 167 document.addEventListener('DOMContentLoaded', load); |
| 166 | 168 |
| 167 window.onpopstate = function(e) { | 169 window.onpopstate = function(e) { |
| 168 options.OptionsPage.setState(e.state); | 170 options.OptionsPage.setState(e.state); |
| 169 }; | 171 }; |
| OLD | NEW |