Skip to content

Commit 7ae1991

Browse files
authored
Add MIDI System Exclusive Access permission type
* Add PermissionManagement.md
1 parent 1e9098e commit 7ae1991

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

specs/PermissionManagement.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ events for some permission kinds.
1818
The new APIs, `SetPermission` and `GetNonDefaultPermissionSettings`, provide
1919
all the information necessary to build a permission management page where a
2020
user can view and modify existing site permissions. The new permission kinds we will
21-
support are: local font list, automatic downloads, media autoplay, and file editing.
21+
support are: local font list, automatic downloads, media autoplay, file editing, and system exclusive MIDI message access.
2222

2323
See already supported [permission kinds](https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.1418.22#corewebview2_permission_kind)
2424
and existing [event args](https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2permissionrequestedeventargs?view=webview2-dotnet-1.0.1418.22).
@@ -379,6 +379,12 @@ typedef enum COREWEBVIEW2_PERMISSION_KIND {
379379
/// developers use the [Local Font Access API](https://wicg.github.io/local-font-access/)
380380
/// to query the system fonts available for styling web content.
381381
COREWEBVIEW2_PERMISSION_KIND_LOCAL_FONTS,
382+
383+
/// Indicates permission to send and receive system exclusive messages to/from MIDI
384+
/// (Musical Instrument Digital Interface) devices. Permission is requested
385+
/// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
386+
/// to request access to system exclusive MIDI messages.
387+
COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGE_ACCESS,
382388
} COREWEBVIEW2_PERMISSION_KIND;
383389

384390
/// This is a continuation of the `ICoreWebView2PermissionRequestedEventArgs`
@@ -503,6 +509,12 @@ namespace Microsoft.Web.WebView2.Core
503509
// developers use the [Local Font Access API](https://wicg.github.io/local-font-access/)
504510
// to query the system fonts available for styling web content.
505511
LocalFonts = 10,
512+
513+
// Indicates permission to send and receive system exclusive messages to/from MIDI
514+
// (Musical Instrument Digital Interface) devices. Permission is requested
515+
// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
516+
// to request access to system exclusive MIDI messages.
517+
MidiSystemExclusiveMessageAccess = 11,
506518
};
507519
}
508520

0 commit comments

Comments
 (0)