| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
| 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * Encapsulated handling of the Bluetooth options page. | 10 * Encapsulated handling of the Bluetooth options page. |
| 11 * @constructor | 11 * @constructor |
| 12 * @extends {cr.ui.pageManager.Page} |
| 12 */ | 13 */ |
| 13 function BluetoothOptions() { | 14 function BluetoothOptions() { |
| 14 Page.call(this, 'bluetooth', | 15 Page.call(this, 'bluetooth', |
| 15 loadTimeData.getString('bluetoothOptionsPageTabTitle'), | 16 loadTimeData.getString('bluetoothOptionsPageTabTitle'), |
| 16 'bluetooth-options'); | 17 'bluetooth-options'); |
| 17 } | 18 } |
| 18 | 19 |
| 19 cr.addSingletonGetter(BluetoothOptions); | 20 cr.addSingletonGetter(BluetoothOptions); |
| 20 | 21 |
| 21 BluetoothOptions.prototype = { | 22 BluetoothOptions.prototype = { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 var page = BluetoothOptions.getInstance(); | 111 var page = BluetoothOptions.getInstance(); |
| 111 if (page && page.visible) | 112 if (page && page.visible) |
| 112 PageManager.closeOverlay(); | 113 PageManager.closeOverlay(); |
| 113 }; | 114 }; |
| 114 | 115 |
| 115 // Export | 116 // Export |
| 116 return { | 117 return { |
| 117 BluetoothOptions: BluetoothOptions | 118 BluetoothOptions: BluetoothOptions |
| 118 }; | 119 }; |
| 119 }); | 120 }); |
| OLD | NEW |