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

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

Issue 2571903003: Mojo JS bindings: switch most usage of "connection"/"router" module to "bindings". (Closed)
Patch Set: remove the changes to web_ui_mojo.js which seemed to cause flakiness. Created 3 years, 12 months 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 23 matching lines...) Expand all
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698