blob: 2ca4dff994acae15c767728668db7f6e9cfe4e78 [file] [log] [blame]
// 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() {
/** @const */ var Page = cr.ui.pageManager.Page;
/**
* Encapsulated handling of the BrowserOptions calls from
* BluetoothOptionsHandler that is registered by the webUI,
* ie, BluetoothPairingUI.
* @constructor
*/
function BrowserOptions() {
Page.call(this, 'bluetooth', '', 'bluetooth-container');
}
cr.addSingletonGetter(BrowserOptions);
BrowserOptions.prototype = {
__proto__: Page.prototype,
/** @override */
initializePage: function() {
chrome.bluetoothPrivate.onPairing.addListener(
BluetoothPairing.onBluetoothPairingEvent);
}
};
// Export
return {BrowserOptions: BrowserOptions};
});