| Index: chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| diff --git a/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| index 004cc6b3ee2de22b7f6b7823d86e00ce0e6d2031..fc9a8f67c11fb3f980ea3e8aced2ec838c641dcd 100644
|
| --- a/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| +++ b/chrome/browser/resources/options/chromeos/bluetooth_add_device_overlay.js
|
| @@ -3,23 +3,23 @@
|
| // found in the LICENSE file.
|
|
|
| cr.define('options', function() {
|
| - /** @const */ var OptionsPage = options.OptionsPage;
|
| + /** @const */ var Page = cr.ui.pageManager.Page;
|
| + /** @const */ var PageManager = cr.ui.pageManager.PageManager;
|
|
|
| /**
|
| * Encapsulated handling of the Bluetooth options page.
|
| * @constructor
|
| */
|
| function BluetoothOptions() {
|
| - OptionsPage.call(this,
|
| - 'bluetooth',
|
| - loadTimeData.getString('bluetoothOptionsPageTabTitle'),
|
| - 'bluetooth-options');
|
| + Page.call(this, 'bluetooth',
|
| + loadTimeData.getString('bluetoothOptionsPageTabTitle'),
|
| + 'bluetooth-options');
|
| }
|
|
|
| cr.addSingletonGetter(BluetoothOptions);
|
|
|
| BluetoothOptions.prototype = {
|
| - __proto__: OptionsPage.prototype,
|
| + __proto__: Page.prototype,
|
|
|
| /**
|
| * The list of available (unpaired) bluetooth devices.
|
| @@ -30,20 +30,20 @@ cr.define('options', function() {
|
|
|
| /** @override */
|
| initializePage: function() {
|
| - OptionsPage.prototype.initializePage.call(this);
|
| + Page.prototype.initializePage.call(this);
|
| this.createDeviceList_();
|
|
|
| BluetoothOptions.updateDiscoveryState(true);
|
|
|
| $('bluetooth-add-device-cancel-button').onclick = function(event) {
|
| - OptionsPage.closeOverlay();
|
| + PageManager.closeOverlay();
|
| };
|
|
|
| var self = this;
|
| $('bluetooth-add-device-apply-button').onclick = function(event) {
|
| var device = self.deviceList_.selectedItem;
|
| var address = device.address;
|
| - OptionsPage.closeOverlay();
|
| + PageManager.closeOverlay();
|
| device.pairing = 'bluetoothStartConnecting';
|
| options.BluetoothPairing.showDialog(device);
|
| chrome.send('updateBluetoothDevice', [address, 'connect']);
|
| @@ -109,7 +109,7 @@ cr.define('options', function() {
|
| BluetoothOptions.dismissOverlay = function() {
|
| var page = BluetoothOptions.getInstance();
|
| if (page && page.visible)
|
| - OptionsPage.closeOverlay();
|
| + PageManager.closeOverlay();
|
| };
|
|
|
| // Export
|
|
|