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

Side by Side Diff: chrome/browser/resources/chromeos/browser_options.js

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win visible fixes Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 cr.define('options', function() { 5 cr.define('options', function() {
6 /** @const */ var OptionsPage = options.OptionsPage; 6 /** @const */ var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * Encapsulated handling of the BrowserOptions calls from 9 * Encapsulated handling of the BrowserOptions calls from
10 * BluetoothOptionsHandler that is registered by the webUI, 10 * BluetoothOptionsHandler that is registered by the webUI,
(...skipping 23 matching lines...) Expand all
34 34
35 BrowserOptions.setBluetoothState = function() { 35 BrowserOptions.setBluetoothState = function() {
36 }; 36 };
37 37
38 /** 38 /**
39 * Handles addBluetoothDevice call, display the Bluetooth pairing overlay 39 * Handles addBluetoothDevice call, display the Bluetooth pairing overlay
40 * for the pairing device. 40 * for the pairing device.
41 * @param {{name: string, 41 * @param {{name: string,
42 * address: string, 42 * address: string,
43 * paired: boolean, 43 * paired: boolean,
44 * bonded: boolean,
45 * pairing: string | undefined 44 * pairing: string | undefined
46 * pincode: string | undefined 45 * pincode: string | undefined
47 * passkey: number | undefined 46 * passkey: number | undefined
48 * connected: boolean}} device 47 * connected: boolean}} device
49 */ 48 */
50 BrowserOptions.addBluetoothDevice = function(device) { 49 BrowserOptions.addBluetoothDevice = function(device) {
51 // One device can be in the process of pairing. If found, display 50 // One device can be in the process of pairing. If found, display
52 // the Bluetooth pairing overlay. 51 // the Bluetooth pairing overlay.
53 if (device.pairing) 52 if (device.pairing)
54 BluetoothPairing.showDialog(device); 53 BluetoothPairing.showDialog(device);
55 }; 54 };
56 55
57 BrowserOptions.removeBluetoothDevice = function(address) { 56 BrowserOptions.removeBluetoothDevice = function(address) {
58 }; 57 };
59 58
60 // Export 59 // Export
61 return { 60 return {
62 BrowserOptions: BrowserOptions 61 BrowserOptions: BrowserOptions
63 }; 62 };
64 }); 63 });
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_event_router.cc ('k') | chrome/browser/resources/options/browser_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698