| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
| 6 * Javascript for bluetooth_internals.html, served from | 6 * Javascript for bluetooth_internals.html, served from |
| 7 * chrome://bluetooth-internals/. | 7 * chrome://bluetooth-internals/. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 // Expose for testing. | 10 // Expose for testing. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 /** | 34 /** |
| 35 * Sets the page title. Called by PageManager. | 35 * Sets the page title. Called by PageManager. |
| 36 * @override | 36 * @override |
| 37 * @param {string} title | 37 * @param {string} title |
| 38 */ | 38 */ |
| 39 updateTitle: function(title) { | 39 updateTitle: function(title) { |
| 40 document.querySelector('.page-title').textContent = title; | 40 document.querySelector('.page-title').textContent = title; |
| 41 }, | 41 }, |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 /** @type {!Map<string, !interfaces.BluetoothDevice.Device.proxyClass>} */ | 44 /** @type {!Map<string, !interfaces.BluetoothDevice.DevicePtr>} */ |
| 45 var deviceAddressToProxy = new Map(); | 45 var deviceAddressToProxy = new Map(); |
| 46 | 46 |
| 47 /** @type {!device_collection.DeviceCollection} */ | 47 /** @type {!device_collection.DeviceCollection} */ |
| 48 devices = new device_collection.DeviceCollection([]); | 48 devices = new device_collection.DeviceCollection([]); |
| 49 | 49 |
| 50 /** @type {devices_page.DevicesPage} */ | 50 /** @type {devices_page.DevicesPage} */ |
| 51 var devicesPage = null; | 51 var devicesPage = null; |
| 52 | 52 |
| 53 function handleInspect(event) { | 53 function handleInspect(event) { |
| 54 // TODO(crbug.com/663470): Move connection logic to DeviceDetailsView | 54 // TODO(crbug.com/663470): Move connection logic to DeviceDetailsView |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 }); | 163 }); |
| 164 } | 164 } |
| 165 | 165 |
| 166 return { | 166 return { |
| 167 initializeViews: initializeViews | 167 initializeViews: initializeViews |
| 168 }; | 168 }; |
| 169 }); | 169 }); |
| 170 | 170 |
| 171 document.addEventListener( | 171 document.addEventListener( |
| 172 'DOMContentLoaded', bluetooth_internals.initializeViews); | 172 'DOMContentLoaded', bluetooth_internals.initializeViews); |
| OLD | NEW |