| 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 21 matching lines...) Expand all Loading... |
| 32 /** | 32 /** |
| 33 * Sets the page title. Called by PageManager. | 33 * Sets the page title. Called by PageManager. |
| 34 * @override | 34 * @override |
| 35 * @param {string} title | 35 * @param {string} title |
| 36 */ | 36 */ |
| 37 updateTitle: function(title) { | 37 updateTitle: function(title) { |
| 38 document.querySelector('.page-title').textContent = title; | 38 document.querySelector('.page-title').textContent = title; |
| 39 }, | 39 }, |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 /** @type {!Map<string, !interfaces.BluetoothDevice.Device.proxyClass>} */ | 42 /** @type {!Map<string, !interfaces.BluetoothDevice.DevicePtr>} */ |
| 43 var deviceAddressToProxy = new Map(); | 43 var deviceAddressToProxy = new Map(); |
| 44 | 44 |
| 45 /** @type {!device_collection.DeviceCollection} */ | 45 /** @type {!device_collection.DeviceCollection} */ |
| 46 devices = new device_collection.DeviceCollection([]); | 46 devices = new device_collection.DeviceCollection([]); |
| 47 | 47 |
| 48 /** @type {devices_page.DevicesPage} */ | 48 /** @type {devices_page.DevicesPage} */ |
| 49 var devicesPage = null; | 49 var devicesPage = null; |
| 50 | 50 |
| 51 function setupDeviceSystem(response) { | 51 function setupDeviceSystem(response) { |
| 52 // Hook up device collection events. | 52 // Hook up device collection events. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 .catch(function(error) { console.error(error); }); | 143 .catch(function(error) { console.error(error); }); |
| 144 } | 144 } |
| 145 | 145 |
| 146 return { | 146 return { |
| 147 initializeViews: initializeViews | 147 initializeViews: initializeViews |
| 148 }; | 148 }; |
| 149 }); | 149 }); |
| 150 | 150 |
| 151 document.addEventListener( | 151 document.addEventListener( |
| 152 'DOMContentLoaded', bluetooth_internals.initializeViews); | 152 'DOMContentLoaded', bluetooth_internals.initializeViews); |
| OLD | NEW |