| 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 var OptionsPage = options.OptionsPage; | |
| 6 var Preferences = options.Preferences; | 5 var Preferences = options.Preferences; |
| 7 var DetailsInternetPage = options.internet.DetailsInternetPage; | 6 var DetailsInternetPage = options.internet.DetailsInternetPage; |
| 8 | 7 |
| 9 /** | 8 /** |
| 10 * DOMContentLoaded handler, sets up the page. | 9 * DOMContentLoaded handler, sets up the page. |
| 11 */ | 10 */ |
| 12 function load() { | 11 function load() { |
| 13 if (cr.isChromeOS) | 12 if (cr.isChromeOS) |
| 14 document.documentElement.setAttribute('os', 'chromeos'); | 13 document.documentElement.setAttribute('os', 'chromeos'); |
| 15 | 14 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 46 } |
| 48 | 47 |
| 49 disableTextSelectAndDrag(function(e) { | 48 disableTextSelectAndDrag(function(e) { |
| 50 var src = e.target; | 49 var src = e.target; |
| 51 return src instanceof HTMLTextAreaElement || | 50 return src instanceof HTMLTextAreaElement || |
| 52 src instanceof HTMLInputElement && | 51 src instanceof HTMLInputElement && |
| 53 /text|url/.test(src.type); | 52 /text|url/.test(src.type); |
| 54 }); | 53 }); |
| 55 | 54 |
| 56 document.addEventListener('DOMContentLoaded', load); | 55 document.addEventListener('DOMContentLoaded', load); |
| OLD | NEW |