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

Side by Side Diff: extensions/common/api/bluetooth_private.idl

Issue 1464443002: bluetooth: android: Add BluetoothDevice::ConnectErrorCode enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: II Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 // Use the <code>chrome.bluetoothPrivate</code> API to control the Bluetooth 5 // Use the <code>chrome.bluetoothPrivate</code> API to control the Bluetooth
6 // adapter state and handle device pairing. 6 // adapter state and handle device pairing.
7 // NOTE: This IDL is dependent on bluetooth.idl. 7 // NOTE: This IDL is dependent on bluetooth.idl.
8 8
9 [implemented_in = "extensions/browser/api/bluetooth/bluetooth_private_api.h"] 9 [implemented_in = "extensions/browser/api/bluetooth/bluetooth_private_api.h"]
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 enum ConnectResultType { 47 enum ConnectResultType {
48 success, 48 success,
49 unknownError, 49 unknownError,
50 inProgress, 50 inProgress,
51 alreadyConnected, 51 alreadyConnected,
52 failed, 52 failed,
53 authFailed, 53 authFailed,
54 authCanceled, 54 authCanceled,
55 authRejected, 55 authRejected,
56 authTimeout, 56 authTimeout,
57 unsupportedDevice 57 unsupportedDevice,
58 attributeLengthInvalid,
scheib 2015/11/24 01:30:48 All places we use ConnectResultType need to be upd
Kai Jiang 2015/11/25 14:17:13 Done.
59 connectionCongested,
60 insufficientEncryption,
61 offsetInvalid,
62 readFailed,
63 requestNotSupported,
64 writeFailed
58 }; 65 };
59 66
60 // Valid pairing responses. 67 // Valid pairing responses.
61 enum PairingResponse { 68 enum PairingResponse {
62 confirm, reject, cancel 69 confirm, reject, cancel
63 }; 70 };
64 71
65 enum TransportType { 72 enum TransportType {
66 le, bredr, dual 73 le, bredr, dual
67 }; 74 };
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Pairs the given device. 159 // Pairs the given device.
153 static void pair(DOMString deviceAddress, optional VoidCallback callback); 160 static void pair(DOMString deviceAddress, optional VoidCallback callback);
154 }; 161 };
155 162
156 interface Events { 163 interface Events {
157 // Fired when a pairing event occurs. 164 // Fired when a pairing event occurs.
158 // |pairingEvent|: A pairing event. 165 // |pairingEvent|: A pairing event.
159 [maxListeners=1] static void onPairing(PairingEvent pairingEvent); 166 [maxListeners=1] static void onPairing(PairingEvent pairingEvent);
160 }; 167 };
161 }; 168 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698