This commit is contained in:
Viktoria Zlatinova 2023-02-09 11:17:27 -08:00
Родитель e7d21f8cac
Коммит 20e0345940
1 изменённых файлов: 12 добавлений и 1 удалений

Просмотреть файл

@ -18,7 +18,8 @@ events for some permission kinds.
The new APIs, `SetPermission` and `GetNonDefaultPermissionSettings`, provide
all the information necessary to build a permission management page where a
user can view and modify existing site permissions. The new permission kinds we will
support are: local font list, automatic downloads, media autoplay, file editing, and system exclusive MIDI messages.
support are: local font list, automatic downloads, media autoplay, file editing,
system exclusive MIDI messages, and window management.
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)
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 {
/// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
/// to request access to system exclusive MIDI messages.
COREWEBVIEW2_PERMISSION_KIND_MIDI_SYSTEM_EXCLUSIVE_MESSAGES,
/// Indicates permission to open and place windows on the screen. Permission is
/// requested when developers use the [Multi-Screen Window Placement API](https://www.w3.org/TR/window-placement/)
/// to get screen details.
COREWEBVIEW2_PERMISSION_KIND_WINDOW_MANAGEMENT,
} COREWEBVIEW2_PERMISSION_KIND;
/// This is a continuation of the `ICoreWebView2PermissionRequestedEventArgs`
@ -515,6 +521,11 @@ namespace Microsoft.Web.WebView2.Core
// when developers use the [Web MIDI API](https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API)
// to request access to system exclusive MIDI messages.
MidiSystemExclusiveMessages = 11,
// Indicates permission to open and place windows on the screen. Permission is
// requested when developers use the [Multi-Screen Window Placement API](https://www.w3.org/TR/window-placement/)
// to get screen details.
WindowManagement = 12,
};
}