Commit d8d46066 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

IDL: Put [Exposed=Window] where it's not in Blink's renderer/modules/bluetooth

Though Web IDL spec removed [PrimaryGlobal] and made [Exposed] required [1],
many blink's IDL files have not followed it yet. So, this CL adds the keyword
to the IDL files which don't have the keyword yet in the renderer/module/bluetooth
directory.

[1] https://github.com/heycam/webidl/issues/365

Bug: 963267
Change-Id: I75c78dd466f0ab75d90550f4f43dc2630037514b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1663834Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Reviewed-by: default avatarGiovanni Ortuño Urquidi <ortuno@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#670013}
parent e7dba1ee
......@@ -5,6 +5,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetooth
[
Exposed=Window,
RuntimeEnabled=WebBluetooth,
SecureContext
] interface Bluetooth : EventTarget {
......
......@@ -5,6 +5,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothadvertisingevent
[
Exposed=Window,
RuntimeEnabled=WebBluetoothScanning,
SecureContext
] interface BluetoothAdvertisingEvent : Event {
......
......@@ -4,9 +4,8 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothcharacteristicproperties
// Implement BluetoothCharacteristicProperties interface: http://crbug.com/483345
[
Exposed=Window,
RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothCharacteristicProperties {
......
......@@ -4,19 +4,16 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothdevice
// Implement BluetoothDevice interface: http://crbug.com/421668
[
Exposed=Window,
RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothDevice : EventTarget
// Implement ServiceEventHandlers interface: http://crbug.com/421670
// : ServiceEventHandlers
{
// Implement BluetoothDevice interface: http://crbug.com/421668
] interface BluetoothDevice : EventTarget {
readonly attribute DOMString id;
readonly attribute DOMString? name;
readonly attribute BluetoothRemoteGATTServer gatt;
attribute EventHandler ongattserverdisconnected;
};
// TODO: Include ServiceEventHandlers mixin (https://crbug.com/421670)
......@@ -4,7 +4,10 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothadvertisingevent
[RuntimeEnabled=WebBluetoothScanning, SecureContext]
interface BluetoothManufacturerDataMap {
[
Exposed=Window,
RuntimeEnabled=WebBluetoothScanning,
SecureContext
] interface BluetoothManufacturerDataMap {
readonly maplike<unsigned short, DataView>;
};
......@@ -4,13 +4,12 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattcharacteristic
// Implement BluetoothRemoteGATTCharacteristic interface: https://crbug.com/483344
[
Exposed=Window,
ActiveScriptWrappable,
RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTCharacteristic : EventTarget {//: CharacteristicEventHandlers {
] interface BluetoothRemoteGATTCharacteristic : EventTarget {
[SameObject] readonly attribute BluetoothRemoteGATTService service;
readonly attribute UUID uuid;
readonly attribute BluetoothCharacteristicProperties properties;
......
......@@ -4,17 +4,14 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothremotegattservice
// Implement BluetoothRemoteGATTService interface: https://crbug.com/483342
[
Exposed=Window,
RuntimeEnabled=WebBluetooth,
SecureContext
] interface BluetoothRemoteGATTService { // : ServiceEventHandlers {
] interface BluetoothRemoteGATTService {
[SameObject] readonly attribute BluetoothDevice device;
readonly attribute UUID uuid;
readonly attribute boolean isPrimary;
[RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristic] Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
[RaisesException, CallWith=ScriptState, MeasureAs=WebBluetoothRemoteServiceGetCharacteristics] Promise<sequence<BluetoothRemoteGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
// Promise<BluetoothRemoteGATTService> getIncludedService(BluetoothServiceUUID service);
// Promise<sequence<BluetoothRemoteGATTService>> getIncludedServices(optional BluetoothServiceUUID service);
};
......@@ -4,7 +4,10 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothadvertisingevent
[RuntimeEnabled=WebBluetoothScanning, SecureContext]
interface BluetoothServiceDataMap {
[
Exposed=Window,
RuntimeEnabled=WebBluetoothScanning,
SecureContext
] interface BluetoothServiceDataMap {
readonly maplike<UUID, DataView>;
};
\ No newline at end of file
......@@ -5,6 +5,7 @@
// https://webbluetoothcg.github.io/web-bluetooth/#bluetoothuuid
[
Exposed=Window,
RuntimeEnabled=WebBluetooth
] interface BluetoothUUID {
[RaisesException] static UUID getService((DOMString or unsigned long) name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment