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 Page = cr.ui.pageManager.Page; |
| 7 var PageManager = cr.ui.pageManager.PageManager; |
7 | 8 |
8 /** | 9 /** |
9 * Encapsulated a fake parent page for bluetooth overlay page used by Web UI. | 10 * Encapsulated a fake parent page for bluetooth overlay page used by Web UI. |
10 * @constructor | 11 * @constructor |
11 */ | 12 */ |
12 function FakeBluetoothOverlayParent(model) { | 13 function FakeBluetoothOverlayParent(model) { |
13 OptionsPage.call(this, 'bluetooth', | 14 Page.call(this, 'bluetooth', '', 'bluetooth-container'); |
14 '', | |
15 'bluetooth-container'); | |
16 } | 15 } |
17 | 16 |
18 cr.addSingletonGetter(FakeBluetoothOverlayParent); | 17 cr.addSingletonGetter(FakeBluetoothOverlayParent); |
19 | 18 |
20 FakeBluetoothOverlayParent.prototype = { | 19 FakeBluetoothOverlayParent.prototype = { |
21 // Inherit FakeBluetoothOverlayParent from OptionsPage. | 20 // Inherit FakeBluetoothOverlayParent from Page. |
22 __proto__: OptionsPage.prototype, | 21 __proto__: Page.prototype, |
23 }; | 22 }; |
24 | 23 |
25 // Export | 24 // Export |
26 return { | 25 return { |
27 FakeBluetoothOverlayParent: FakeBluetoothOverlayParent | 26 FakeBluetoothOverlayParent: FakeBluetoothOverlayParent |
28 }; | 27 }; |
29 }); | 28 }); |
OLD | NEW |