mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 03:32:37 +00:00
ba3f998545
* Core - Update CefErrorCode and PermissionRequestType * Apply suggestion from @coderabbitai[bot] Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
48 lines
1.6 KiB
C#
48 lines
1.6 KiB
C#
// Copyright © 2022 The CefSharp Authors. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
|
|
using System;
|
|
|
|
namespace CefSharp
|
|
{
|
|
/// <summary>
|
|
/// Permission types used with <see cref="IPermissionHandler.OnShowPermissionPrompt(IWebBrowser, IBrowser, ulong, string, PermissionRequestType, IPermissionPromptCallback)"/>.
|
|
/// Some types are platform-specific or only supported with the Chrome runtime. Should be kept
|
|
/// in sync with Chromium's permissions::RequestType type.
|
|
/// </summary>
|
|
[Flags]
|
|
public enum PermissionRequestType : uint
|
|
{
|
|
None = 0,
|
|
ArSession = 1 << 0,
|
|
CameraPanTiltZoom = 1 << 1,
|
|
CameraStream = 1 << 2,
|
|
CapturedSurfaceControl = 1 << 3,
|
|
Clipboard = 1 << 4,
|
|
TopLevelStorageAccess = 1 << 5,
|
|
DiskQuota = 1 << 6,
|
|
LocalFonts = 1 << 7,
|
|
Geolocation = 1 << 8,
|
|
HandTracking = 1 << 9,
|
|
IdentityProvider = 1 << 10,
|
|
IdleDetection = 1 << 11,
|
|
MicStream = 1 << 12,
|
|
MidiSysex = 1 << 13,
|
|
MultipleDownloads = 1 << 14,
|
|
Notifications = 1 << 15,
|
|
KeyboardLock = 1 << 16,
|
|
PointerLock = 1 << 17,
|
|
ProtectedMediaIdentifier = 1 << 18,
|
|
RegisterProtocolHandler = 1 << 19,
|
|
StorageAccess = 1 << 20,
|
|
VrSession = 1 << 21,
|
|
WebAppInstallation = 1 << 22,
|
|
WindowManagement = 1 << 23,
|
|
FileSystemAccess = 1 << 24,
|
|
LocalNetworkAccess = 1 << 25,
|
|
LocalNetwork = 1 << 26,
|
|
LoopbackNetwork = 1 << 27,
|
|
}
|
|
}
|