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

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

Issue 2446823002: bluetooth: Componentize device list in chrome://bluetooth-internals. (Closed)
Patch Set: Change innerText to textContent in device table Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * Javascript for Mojo interface helpers, served from
7 * chrome://bluetooth-internals/.
8 */
9
10 cr.define('interfaces', function() {
11 /**
12 * Imports Mojo interfaces and adds them to window.interfaces.
13 * @return {Promise}
14 */
15 function importInterfaces() {
16 return importModules([
17 'content/public/renderer/frame_interfaces',
18 'device/bluetooth/public/interfaces/adapter.mojom',
19 'device/bluetooth/public/interfaces/device.mojom',
20 'mojo/public/js/connection',
21 ]).then(function([frameInterfaces, bluetoothAdapter, bluetoothDevice,
22 connection]) {
23 Object.assign(interfaces, {
Dan Beam 2016/11/09 18:00:32 this might require compiler integration as is more
mbrunson 2016/11/10 01:02:14 Done.
24 BluetoothAdapter: bluetoothAdapter,
25 BluetoothDevice: bluetoothDevice,
26 Connection: connection,
27 FrameInterfaces: frameInterfaces,
28 });
29 });
30 }
31
32 return {
33 BluetoothAdapter: {},
34 BluetoothDevice: {},
35 Connection: {},
36 FrameInterfaces: {},
Dan Beam 2016/11/09 18:00:32 what's going on with these {}?
mbrunson 2016/11/10 01:02:14 It was a hint that these values were going to be e
37 importInterfaces: importInterfaces,
38 };
39 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698