Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: chrome/browser/resources/bluetooth_internals/bluetooth_internals.js

Issue 2590393002: Revert of Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.DevicePtr>} */ 42 /** @type {!Map<string, !interfaces.BluetoothDevice.Device.proxyClass>} */
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698