1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2026-04-23 01:13:01 +02:00
Files
CEF4Delphi/docs/html/uCEFPermissionHandler.TCefPermissionHandlerOwn.html
Salvador Díaz Fau 30d9edd993
Make / build (ubuntu-latest) (push) Has been cancelled
Update to CEF 146.0.10
2026-04-04 18:01:24 +02:00

119 lines
10 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>cef4delphi: uCEFPermissionHandler: Class TCefPermissionHandlerOwn</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 1.0.4">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="bootstrap.min.css">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
<style type="text/css">
body { margin: 0.5em; }
.badge { padding: 0.1em 0.5em; color: white; }
</style></head>
<body>
<span id="TCefPermissionHandlerOwn"></span><h1 class="cio">Class TCefPermissionHandlerOwn</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uCEFPermissionHandler.html">uCEFPermissionHandler</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type TCefPermissionHandlerOwn = class(<a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a>, <a class="normal" href="uCEFInterfaces.ICefPermissionHandler.html">ICefPermissionHandler</a>)</code></p>
<h2 class="description">Description</h2>
<p class="nodescription">This item has no description.</p><span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">TInterfacedObject</li>
<li class="ancestor"><a class="normal" href="uCEFBaseRefCounted.TCefBaseRefCountedOwn.html">TCefBaseRefCountedOwn</a></li>
<li class="thisitem">TCefPermissionHandlerOwn</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>function <strong><a href="uCEFPermissionHandler.TCefPermissionHandlerOwn.html#OnRequestMediaAccessPermission-ICefBrowser-ICefFrame-ustring-cardinal-ICefMediaAccessCallback-">OnRequestMediaAccessPermission</a></strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; const frame: <a href="uCEFInterfaces.ICefFrame.html">ICefFrame</a>; const requesting_origin: <a href="uCEFTypes.html#ustring">ustring</a>; requested_permissions: cardinal; const callback: <a href="uCEFInterfaces.ICefMediaAccessCallback.html">ICefMediaAccessCallback</a>): boolean; virtual;</code></td>
</tr>
<tr class="list2 visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>function <strong><a href="uCEFPermissionHandler.TCefPermissionHandlerOwn.html#OnShowPermissionPrompt-ICefBrowser-uint64-ustring-cardinal-ICefPermissionPromptCallback-">OnShowPermissionPrompt</a></strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; prompt_id: uint64; const requesting_origin: <a href="uCEFTypes.html#ustring">ustring</a>; requested_permissions: cardinal; const callback: <a href="uCEFInterfaces.ICefPermissionPromptCallback.html">ICefPermissionPromptCallback</a>): boolean; virtual;</code></td>
</tr>
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>procedure <strong><a href="uCEFPermissionHandler.TCefPermissionHandlerOwn.html#OnDismissPermissionPrompt-ICefBrowser-uint64-TCefPermissionRequestResult-">OnDismissPermissionPrompt</a></strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; prompt_id: uint64; result: <a href="uCEFTypes.html#TCefPermissionRequestResult">TCefPermissionRequestResult</a>); virtual;</code></td>
</tr>
<tr class="list2 visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><code>procedure <strong><a href="uCEFPermissionHandler.TCefPermissionHandlerOwn.html#RemoveReferences">RemoveReferences</a></strong>; virtual;</code></td>
</tr>
<tr class="list visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><code>constructor <strong><a href="uCEFPermissionHandler.TCefPermissionHandlerOwn.html#Create">Create</a></strong>; virtual;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="OnRequestMediaAccessPermission-ICefBrowser-ICefFrame-ustring-cardinal-ICefMediaAccessCallback-"></span><code>function <strong>OnRequestMediaAccessPermission</strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; const frame: <a href="uCEFInterfaces.ICefFrame.html">ICefFrame</a>; const requesting_origin: <a href="uCEFTypes.html#ustring">ustring</a>; requested_permissions: cardinal; const callback: <a href="uCEFInterfaces.ICefMediaAccessCallback.html">ICefMediaAccessCallback</a>): boolean; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefPermissionHandler.html#OnRequestMediaAccessPermission-ICefBrowser-ICefFrame-ustring-cardinal-ICefMediaAccessCallback-">ICefPermissionHandler.OnRequestMediaAccessPermission</a>.</p><p>
<p>Called when a page requests permission to access media.
<p>|requesting_origin| is the URL origin requesting permission.
<p>|requested_permissions| is a combination of values from TCefMediaAccessPermissionTypes that represent the requested permissions.
<p>Return true (1) and call ICefMediaAccessCallback functions either in this function or at a later time to continue or cancel the request.
<p>Return false (0) to proceed with default handling. With Chrome style, default handling will display the permission request UI.
<p>With Alloy style, default handling will deny the request. This function will not be called if the &quot;&ndash;enable-media-stream&quot; command-line switch is used to grant all permissions.
<p></p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="OnShowPermissionPrompt-ICefBrowser-uint64-ustring-cardinal-ICefPermissionPromptCallback-"></span><code>function <strong>OnShowPermissionPrompt</strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; prompt_id: uint64; const requesting_origin: <a href="uCEFTypes.html#ustring">ustring</a>; requested_permissions: cardinal; const callback: <a href="uCEFInterfaces.ICefPermissionPromptCallback.html">ICefPermissionPromptCallback</a>): boolean; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefPermissionHandler.html#OnShowPermissionPrompt-ICefBrowser-uint64-ustring-cardinal-ICefPermissionPromptCallback-">ICefPermissionHandler.OnShowPermissionPrompt</a>.</p><p>
Called when a page should show a permission prompt. |prompt_id| uniquely identifies the prompt. |requesting_origin| is the URL origin requesting permission. |requested_permissions| is a combination of values from TCefPermissionRequestTypes that represent the requested permissions. Return true (1) and call ICefPermissionPromptCallback.Continue either in this function or at a later time to continue or cancel the request. Return false (0) to proceed with default handling. With Chrome style, default handling will display the permission prompt UI. With Alloy style, default handling is CEF_PERMISSION_RESULT_IGNORE. </p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="OnDismissPermissionPrompt-ICefBrowser-uint64-TCefPermissionRequestResult-"></span><code>procedure <strong>OnDismissPermissionPrompt</strong>(const browser: <a href="uCEFInterfaces.ICefBrowser.html">ICefBrowser</a>; prompt_id: uint64; result: <a href="uCEFTypes.html#TCefPermissionRequestResult">TCefPermissionRequestResult</a>); virtual;</code></td>
</tr>
<tr><td colspan="2">
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefPermissionHandler.html#OnDismissPermissionPrompt-ICefBrowser-uint64-TCefPermissionRequestResult-">ICefPermissionHandler.OnDismissPermissionPrompt</a>.</p><p>
Called when a permission prompt handled via OnShowPermissionPrompt is dismissed. |prompt_id| will match the value that was passed to OnShowPermissionPrompt. |result| will be the value passed to ICefPermissionPromptCallback.Continue or CEF_PERMISSION_RESULT_IGNORE if the dialog was dismissed for other reasons such as navigation, browser closure, etc. This function will not be called if OnShowPermissionPrompt returned false (0) for |prompt_id|. </p>
</td></tr>
</table>
<table class="detail visibility-protected wide_list">
<tr class="list visibility-protected">
<td class="visibility"><span class="badge vis-protected">Protected</span></td>
<td class="itemcode"><span id="RemoveReferences"></span><code>procedure <strong>RemoveReferences</strong>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p class="inheritdescription">This item has no description. Showing description inherited from <a class="normal" href="uCEFInterfaces.ICefPermissionHandler.html#RemoveReferences">ICefPermissionHandler.RemoveReferences</a>.</p><p>
Custom procedure to clear all references. </p>
</td></tr>
</table>
<table class="detail visibility-public wide_list">
<tr class="list visibility-public">
<td class="visibility"><span class="badge vis-public">Public</span></td>
<td class="itemcode"><span id="Create"></span><code>constructor <strong>Create</strong>; virtual;</code></td>
</tr>
<tr><td colspan="2">
<p class="nodescription">This item has no description.</p></td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 1.0.4</a>. </em>
</span>
</body></html>