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

Unified Diff: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
index 7fa1a7377dff654ffa252b243d2c7a67bff6ec3f..f8bfa60bac377c3e911ae609eb2e27fe606a13e2 100644
--- a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
+++ b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
@@ -42,6 +42,7 @@ cr.define('options', function() {
/**
* Encapsulated handling of the Bluetooth device pairing page.
* @constructor
+ * @extends {cr.ui.pageManager.Page}
*/
function BluetoothPairing() {
Page.call(this, 'bluetoothPairing',
@@ -62,10 +63,10 @@ cr.define('options', function() {
* connected: boolean,
* connecting: boolean,
* connectable: boolean,
- * pairing: string|undefined,
- * passkey: number|undefined,
- * pincode: string|undefined,
- * entered: number|undefined}}
+ * pairing: (string|undefined),
+ * passkey: (number|undefined),
+ * pincode: (string|undefined),
+ * entered: (number|undefined)}}
* @private
*/
device_: null,
@@ -170,7 +171,7 @@ cr.define('options', function() {
*/
update: function(device) {
this.device_ = {};
- for (key in device)
+ for (var key in device)
this.device_[key] = device[key];
// Update the pairing instructions.
var instructionsEl = $('bluetooth-pairing-instructions');
@@ -330,9 +331,9 @@ cr.define('options', function() {
/**
* Displays a message from the Bluetooth adapter.
- * @param {Object} data Data for constructing the message.
- * @param {string} data.message Name of message to show.
- * @param {string} data.address Device address.
+ * @param {{message: string, address: string}} data Data for constructing the
+ * message. |data.message| is the name of message to show. |data.address|
+ * is the device address.
*/
BluetoothPairing.showMessage = function(data) {
var name = data.address;

Powered by Google App Engine
This is Rietveld 408576698