Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: chrome/browser/resources/chromeos/fake_bluetooth_overlay_parent.js

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ugh just no Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/certificate_manager_dialog.js ('k') | chrome/browser/resources/chromeos/proxy_settings.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698