blob: dd4a1ee2234a7ab1d6608b1b3d7b66f8db16b736 [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
};
});