| 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 * Encapsulated handling of the Bluetooth options page. | 9 * Encapsulated handling of the Bluetooth options page. |
| 10 * @constructor | 10 * @constructor |
| 11 */ | 11 */ |
| 12 function BluetoothOptions() { | 12 function BluetoothOptions() { |
| 13 OptionsPage.call(this, | 13 OptionsPage.call(this, |
| 14 'bluetooth', | 14 'bluetooth', |
| 15 templateData.bluetoothOptionsPageTabTitle, | 15 loadTimeData.getString('bluetoothOptionsPageTabTitle'), |
| 16 'bluetooth-options'); | 16 'bluetooth-options'); |
| 17 } | 17 } |
| 18 | 18 |
| 19 cr.addSingletonGetter(BluetoothOptions); | 19 cr.addSingletonGetter(BluetoothOptions); |
| 20 | 20 |
| 21 BluetoothOptions.prototype = { | 21 BluetoothOptions.prototype = { |
| 22 __proto__: OptionsPage.prototype, | 22 __proto__: OptionsPage.prototype, |
| 23 | 23 |
| 24 /** | 24 /** |
| 25 * The list of available (unpaired) bluetooth devices. | 25 * The list of available (unpaired) bluetooth devices. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 var page = BluetoothOptions.getInstance(); | 82 var page = BluetoothOptions.getInstance(); |
| 83 if (page && page.visible) | 83 if (page && page.visible) |
| 84 chrome.send('findBluetoothDevices'); | 84 chrome.send('findBluetoothDevices'); |
| 85 } | 85 } |
| 86 | 86 |
| 87 // Export | 87 // Export |
| 88 return { | 88 return { |
| 89 BluetoothOptions: BluetoothOptions | 89 BluetoothOptions: BluetoothOptions |
| 90 }; | 90 }; |
| 91 }); | 91 }); |
| OLD | NEW |