OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 Page = cr.ui.pageManager.Page; |
7 | 7 |
8 /** | 8 /** |
9 * Encapsulated handling of the BluetoothOptions calls from | 9 * Encapsulated handling of the BluetoothOptions calls from |
10 * BluetoothOptionsHandler that is registered by the webUI, | 10 * BluetoothOptionsHandler that is registered by the webUI, |
11 * ie, BluetoothPairingUI. | 11 * ie, BluetoothPairingUI. |
12 * @constructor | 12 * @constructor |
13 */ | 13 */ |
14 function BluetoothOptions() { | 14 function BluetoothOptions() { |
15 OptionsPage.call(this, | 15 Page.call(this, 'bluetooth', '', 'bluetooth-container'); |
16 'bluetooth', | |
17 '', | |
18 'bluetooth-container'); | |
19 } | 16 } |
20 | 17 |
21 cr.addSingletonGetter(BluetoothOptions); | 18 cr.addSingletonGetter(BluetoothOptions); |
22 | 19 |
23 BluetoothOptions.prototype = { | 20 BluetoothOptions.prototype = { |
24 __proto__: OptionsPage.prototype, | 21 __proto__: Page.prototype, |
25 }; | 22 }; |
26 | 23 |
27 BluetoothOptions.updateDiscovery = function() { | 24 BluetoothOptions.updateDiscovery = function() { |
28 }; | 25 }; |
29 | 26 |
30 // Export | 27 // Export |
31 return { | 28 return { |
32 BluetoothOptions: BluetoothOptions | 29 BluetoothOptions: BluetoothOptions |
33 }; | 30 }; |
34 }); | 31 }); |
OLD | NEW |