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

Unified Diff: chrome/browser/resources/bluetooth_internals/devices_page.js

Issue 2538653002: bluetooth: Add sidebar and page manager for chrome://bluetooth-internals. (Closed)
Patch Set: Change rgb gray values to hex, change text-align values to start or end 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/bluetooth_internals/devices_page.js
diff --git a/chrome/browser/resources/bluetooth_internals/devices_page.js b/chrome/browser/resources/bluetooth_internals/devices_page.js
new file mode 100644
index 0000000000000000000000000000000000000000..6d8f3b49a7d9804d84eb5891bf3e0450e362b1ac
--- /dev/null
+++ b/chrome/browser/resources/bluetooth_internals/devices_page.js
@@ -0,0 +1,40 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * Javascript for DevicesPage and DevicesView, served from
+ * chrome://bluetooth-internals/.
+ */
+
+cr.define('devices_page', function() {
+ /** @const */ var Page = cr.ui.pageManager.Page;
+
+ /**
+ * Page that contains a header and a DevicesView.
+ * @constructor
+ * @extends {cr.ui.pageManager.Page}
+ */
+ function DevicesPage() {
+ Page.call(this, 'devices', 'Devices', 'devices');
+
+ this.deviceTable = new device_table.DeviceTable();
+ this.pageDiv.appendChild(this.deviceTable);
+ }
+
+ DevicesPage.prototype = {
+ __proto__: Page.prototype,
+
+ /**
+ * Sets the device collection for the page's device table.
+ * @param {!device_collection.DeviceCollection} devices
+ */
+ setDevices: function(devices) {
+ this.deviceTable.setDevices(devices);
+ }
+ };
+
+ return {
+ DevicesPage: DevicesPage
+ };
+});
« no previous file with comments | « chrome/browser/resources/bluetooth_internals/device_table.js ('k') | chrome/browser/resources/bluetooth_internals/sidebar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698