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

Side by Side Diff: chrome/common/extensions/api/experimental_bluetooth.idl

Issue 10381120: Implement chrome.experimental.bluetooth.connect (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 7 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
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Bluetooth API. 5 // Bluetooth API.
6 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398). 6 // TODO(bryeung): mark this API as ChromeOS only (see crbug.com/119398).
7 7
8 [nodoc] namespace experimental.bluetooth { 8 [nodoc] namespace experimental.bluetooth {
9 dictionary Device { 9 dictionary Device {
10 DOMString address; 10 DOMString address;
11 DOMString name; 11 DOMString name;
12 }; 12 };
13 13
14 dictionary Socket { 14 dictionary Socket {
15 Device device;
16 DOMString serviceUUID;
15 long id; 17 long id;
16 }; 18 };
17 19
18 dictionary OutOfBandPairingData { 20 dictionary OutOfBandPairingData {
19 // Simple Pairing Hash C 21 // Simple Pairing Hash C
20 // Always 16 octets long. 22 // Always 16 octets long.
21 ArrayBuffer hash; 23 ArrayBuffer hash;
22 24
23 // Simple Pairing Randomizer R 25 // Simple Pairing Randomizer R
24 // Always 16 octets long. 26 // Always 16 octets long.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 interface Events { 105 interface Events {
104 // Fired when the availability of bluetooth on the system changes. 106 // Fired when the availability of bluetooth on the system changes.
105 // |available| : True if bluetooth is available, false otherwise. 107 // |available| : True if bluetooth is available, false otherwise.
106 static void onAvailabilityChanged(boolean available); 108 static void onAvailabilityChanged(boolean available);
107 109
108 // Fired when the power state of bluetooth on the system changes. 110 // Fired when the power state of bluetooth on the system changes.
109 // |powered| : True if bluetooth is powered, false otherwise. 111 // |powered| : True if bluetooth is powered, false otherwise.
110 static void onPowerChanged(boolean has_power); 112 static void onPowerChanged(boolean has_power);
111 }; 113 };
112 }; 114 };
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698