summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/chromeos/fake_bluetooth_overlay_parent.js
blob: eb154bb458b8e37ec9fe57e54ed4099e32e0dc9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

cr.define('options', function() {
  var OptionsPage = options.OptionsPage;

  /**
   * Encapsulated a fake parent page for bluetooth overlay page used by Web UI.
   * @constructor
   */
  function FakeBluetoothOverlayParent(model) {
    OptionsPage.call(this, 'bluetooth',
                     '',
                     'bluetooth-container');
  }

  cr.addSingletonGetter(FakeBluetoothOverlayParent);

  FakeBluetoothOverlayParent.prototype = {
    // Inherit FakeBluetoothOverlayParent from OptionsPage.
    __proto__: OptionsPage.prototype,

    /**
     * Initializes FakeBluetoothOverlayParent page.
     */
    initializePage: function() {
      // Call base class implementation to starts preference initialization.
      OptionsPage.prototype.initializePage.call(this);
    },
  };

  // Export
  return {
    FakeBluetoothOverlayParent: FakeBluetoothOverlayParent
  };
});