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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom

Issue 2384463002: bluetooth: mac: Reject requestDevice promise if Mac version is <= 10.9 (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module blink.mojom; 5 module blink.mojom;
6 6
7 import "device/bluetooth/public/interfaces/uuid.mojom"; 7 import "device/bluetooth/public/interfaces/uuid.mojom";
8 8
9 // Errors that can occur during Web Bluetooth execution, which are transformed 9 // Errors that can occur during Web Bluetooth execution, which are transformed
10 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp. 10 // to a DOMException in Source/modules/bluetooth/BluetoothError.cpp.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 CHOSEN_DEVICE_VANISHED, 45 CHOSEN_DEVICE_VANISHED,
46 CHOOSER_CANCELLED, 46 CHOOSER_CANCELLED,
47 CHOOSER_NOT_SHOWN_API_GLOBALLY_DISABLED, 47 CHOOSER_NOT_SHOWN_API_GLOBALLY_DISABLED,
48 CHOOSER_NOT_SHOWN_API_LOCALLY_DISABLED, 48 CHOOSER_NOT_SHOWN_API_LOCALLY_DISABLED,
49 CHOOSER_NOT_SHOWN_USER_DENIED_PERMISSION_TO_SCAN, 49 CHOOSER_NOT_SHOWN_USER_DENIED_PERMISSION_TO_SCAN,
50 SERVICE_NOT_FOUND, 50 SERVICE_NOT_FOUND,
51 NO_SERVICES_FOUND, 51 NO_SERVICES_FOUND,
52 CHARACTERISTIC_NOT_FOUND, 52 CHARACTERISTIC_NOT_FOUND,
53 NO_CHARACTERISTICS_FOUND, 53 NO_CHARACTERISTICS_FOUND,
54 WEB_BLUETOOTH_NOT_SUPPORTED, 54 WEB_BLUETOOTH_NOT_SUPPORTED,
55 BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE,
55 // NotSupportedError: 56 // NotSupportedError:
56 GATT_UNKNOWN_ERROR, 57 GATT_UNKNOWN_ERROR,
57 GATT_UNKNOWN_FAILURE, 58 GATT_UNKNOWN_FAILURE,
58 GATT_NOT_PERMITTED, 59 GATT_NOT_PERMITTED,
59 GATT_NOT_SUPPORTED, 60 GATT_NOT_SUPPORTED,
60 GATT_UNTRANSLATED_ERROR_CODE, 61 GATT_UNTRANSLATED_ERROR_CODE,
61 // SecurityError: 62 // SecurityError:
62 GATT_NOT_AUTHORIZED, 63 GATT_NOT_AUTHORIZED,
63 BLACKLISTED_CHARACTERISTIC_UUID, 64 BLACKLISTED_CHARACTERISTIC_UUID,
64 BLACKLISTED_READ, 65 BLACKLISTED_READ,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 }; 183 };
183 184
184 // Classes should implement this interface and pass an associated pointer 185 // Classes should implement this interface and pass an associated pointer
185 // bound to them to the WebBluetoothService by using SetClient. Classes 186 // bound to them to the WebBluetoothService by using SetClient. Classes
186 // that do this will be notified of device events e.g. device disconnection. 187 // that do this will be notified of device events e.g. device disconnection.
187 interface WebBluetoothServiceClient { 188 interface WebBluetoothServiceClient {
188 RemoteCharacteristicValueChanged(string characteristic_instance_id, 189 RemoteCharacteristicValueChanged(string characteristic_instance_id,
189 array<uint8> value); 190 array<uint8> value);
190 GattServerDisconnected(WebBluetoothDeviceId device_id); 191 GattServerDisconnected(WebBluetoothDeviceId device_id);
191 }; 192 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698