Skip to content

Commit 9a2ed2b

Browse files
authored
Add window management permission kind
1 parent e7d21f8 commit 9a2ed2b

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

specs/PermissionManagement.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ 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, file editing, and system exclusive MIDI messages.
21+
support are: local font list, automatic downloads, media autoplay, file editing,
22+
system exclusive MIDI messages, and window management.
2223

2324
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)
2425
and existing [event args](https://learn.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.core.corewebview2permissionrequestedeventargs?view=webview2-dotnet-1.0.1418.22).
@@ -385,6 +386,11 @@ typedef enum COREWEBVIEW2_PERMISSION_KIND {
385386
/// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
386387
/// to request access to system exclusive MIDI messages.
387388
COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGES,
389+
390+
/// Indicates permission to open and place windows on the screen. Permission is
391+
/// requested when developers use the [Multi-Screen Window Placement API](https://www.w3.org/TR/window-placement/)
392+
/// to get screen details.
393+
COREWEBVIEW2_PERMISSION_KIND_WINDOW_MANAGEMENT,
388394
} COREWEBVIEW2_PERMISSION_KIND;
389395

390396
/// This is a continuation of the `ICoreWebView2PermissionRequestedEventArgs`
@@ -515,6 +521,11 @@ namespace Microsoft.Web.WebView2.Core
515521
// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
516522
// to request access to system exclusive MIDI messages.
517523
MidiSystemExclusiveMessages = 11,
524+
525+
// Indicates permission to open and place windows on the screen. Permission is
526+
// requested when developers use the [Multi-Screen Window Placement API](https://www.w3.org/TR/window-placement/)
527+
// to get screen details.
528+
WindowManagement = 12,
518529
};
519530
}
520531

0 commit comments

Comments
 (0)