| 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 // | 9 // |
| 10 // AdvancedOptions class | 10 // AdvancedOptions class |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 if ($('Custom')) | 284 if ($('Custom')) |
| 285 selectCtl.remove($('Custom').index); | 285 selectCtl.remove($('Custom').index); |
| 286 return; | 286 return; |
| 287 } | 287 } |
| 288 } | 288 } |
| 289 | 289 |
| 290 // Add/Select Custom Option in the font size label list. | 290 // Add/Select Custom Option in the font size label list. |
| 291 if (!$('Custom')) { | 291 if (!$('Custom')) { |
| 292 var option = new Option(localStrings.getString('fontSizeLabelCustom'), | 292 var option = new Option(localStrings.getString('fontSizeLabelCustom'), |
| 293 -1, false, true); | 293 -1, false, true); |
| 294 option.setAttribute("id", "Custom"); | 294 option.setAttribute('id', 'Custom'); |
| 295 selectCtl.add(option); | 295 selectCtl.add(option); |
| 296 } | 296 } |
| 297 $('Custom').selected = true; | 297 $('Custom').selected = true; |
| 298 }; | 298 }; |
| 299 | 299 |
| 300 /** | 300 /** |
| 301 * Populate the page zoom selector with values received from the caller. | 301 * Populate the page zoom selector with values received from the caller. |
| 302 * @param {Array} items An array of items to populate the selector. | 302 * @param {Array} items An array of items to populate the selector. |
| 303 * each object is an array with three elements as follows: | 303 * each object is an array with three elements as follows: |
| 304 * 0: The title of the item (string). | 304 * 0: The title of the item (string). |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 if (device.pairing) | 461 if (device.pairing) |
| 462 BluetoothPairing.showDialog(device); | 462 BluetoothPairing.showDialog(device); |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 // Export | 465 // Export |
| 466 return { | 466 return { |
| 467 AdvancedOptions: AdvancedOptions | 467 AdvancedOptions: AdvancedOptions |
| 468 }; | 468 }; |
| 469 | 469 |
| 470 }); | 470 }); |
| OLD | NEW |