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 var OptionsPage = options.OptionsPage; | 6 var OptionsPage = options.OptionsPage; |
7 | 7 |
8 /** | 8 /** |
9 * Encapsulated a fake parent page for bluetooth overlay page used by Web UI. | 9 * Encapsulated a fake parent page for bluetooth overlay page used by Web UI. |
10 * @constructor | 10 * @constructor |
11 */ | 11 */ |
12 function FakeBluetoothOverlayParent(model) { | 12 function FakeBluetoothOverlayParent(model) { |
13 OptionsPage.call(this, 'bluetooth', | 13 OptionsPage.call(this, 'bluetooth', |
14 '', | 14 '', |
15 'bluetooth-container'); | 15 'bluetooth-container'); |
16 } | 16 } |
17 | 17 |
18 cr.addSingletonGetter(FakeBluetoothOverlayParent); | 18 cr.addSingletonGetter(FakeBluetoothOverlayParent); |
19 | 19 |
20 FakeBluetoothOverlayParent.prototype = { | 20 FakeBluetoothOverlayParent.prototype = { |
21 // Inherit FakeBluetoothOverlayParent from OptionsPage. | 21 // Inherit FakeBluetoothOverlayParent from OptionsPage. |
22 __proto__: OptionsPage.prototype, | 22 __proto__: OptionsPage.prototype, |
23 | |
24 /** | |
25 * Initializes FakeBluetoothOverlayParent page. | |
26 */ | |
27 initializePage: function() { | |
28 // Call base class implementation to starts preference initialization. | |
29 OptionsPage.prototype.initializePage.call(this); | |
30 }, | |
31 }; | 23 }; |
32 | 24 |
33 // Export | 25 // Export |
34 return { | 26 return { |
35 FakeBluetoothOverlayParent: FakeBluetoothOverlayParent | 27 FakeBluetoothOverlayParent: FakeBluetoothOverlayParent |
36 }; | 28 }; |
37 }); | 29 }); |
OLD | NEW |