blob: 367609cf642746b9b6fe5660e12040b8b7a165fc [file] [log] [blame]
// Copyright 2013 The Chromium Authors
// 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() {
chrome.bluetoothPrivate.onPairing.addListener(
BluetoothPairing.onBluetoothPairingEvent);
},
};
// Export
return {BrowserOptions: BrowserOptions};
});