Fix infinite recursion on hiding panel when created during fullscreen mode.
[chromium-blink-merge.git] / chrome / browser / resources / chromeos / bluetooth_options.js
blob7ddff60c59ac4cdd0efe6a3f5b404b36b39e3bba
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
3 // found in the LICENSE file.
5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage;
8 /**
9 * Encapsulated handling of the BluetoothOptions calls from
10 * BluetoothOptionsHandler that is registered by the webUI,
11 * ie, BluetoothPairingUI.
12 * @constructor
14 function BluetoothOptions() {
15 OptionsPage.call(this,
16 'bluetooth',
17 '',
18 'bluetooth-container');
21 cr.addSingletonGetter(BluetoothOptions);
23 BluetoothOptions.prototype = {
24 __proto__: OptionsPage.prototype,
26 /** @override */
27 initializePage: function() {
28 OptionsPage.prototype.initializePage.call(this);
32 BluetoothOptions.updateDiscovery = function() {
35 // Export
36 return {
37 BluetoothOptions: BluetoothOptions
39 });