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

Unified Diff: chrome/browser/resources/bluetooth_internals/bluetooth_internals.html

Issue 2446823002: bluetooth: Componentize device list in chrome://bluetooth-internals. (Closed)
Patch Set: Fix issues, add comments, move Adapter code to AdapterBroker 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/bluetooth_internals/bluetooth_internals.html
diff --git a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.html b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.html
index 28b85ba406ae71df750552831aa4d12064560a70..2a6760c56dab78ba8eb773549abf7e923a124848 100644
--- a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.html
+++ b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.html
@@ -8,8 +8,17 @@
<title>Bluetooth Internals</title>
<link rel="stylesheet" href="chrome://resources/css/text_defaults_md.css">
<link rel="stylesheet" href="bluetooth_internals.css">
+ <link rel="import" href="chrome://resources/html/cr/ui.html">
+
<script src="chrome://resources/js/assert.js"></script>
+ <script src="chrome://resources/js/cr/event_target.js"></script>
+ <script src="chrome://resources/js/cr/ui/array_data_model.js"></script>
<script src="chrome://resources/js/util.js"></script>
+
+ <script src="interfaces.js"></script>
+ <script src="adapter_broker.js"></script>
+ <script src="device_collection.js"></script>
+ <script src="device_table.js"></script>
<script src="bluetooth_internals.js"></script>
</head>
@@ -19,25 +28,20 @@
Bluetooth Internals
</div>
</header>
- <table id="device-table">
+</body>
+
+<template id="table-template">
+ <table>
<thead>
<tr>
- <th>Name</th>
- <th>Address</th>
- <th>Latest RSSI</th>
+ <th data-field="name_for_display">Name</th>
+ <th data-field="address">Address</th>
+ <th data-field="rssi.value">Latest RSSI</th>
</tr>
</thead>
- <tbody id="device-list">
+ <tbody class="table-body">
</tbody>
</table>
-</body>
-
-<template id="device-row-template">
- <tr class="device-row">
- <td class="device-name" data-label="Name"></td>
- <td class="device-address" data-label="Address"></td>
- <td class="device-rssi" data-label="Latest RSSI">Unknown</td>
- </tr>
</template>
</html>

Powered by Google App Engine
This is Rietveld 408576698