Skip to content

Commit

Permalink
Update to WebView2 NuGet 1.0.2365.46
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadordf committed Feb 28, 2024
1 parent 6061826 commit e0cd179
Show file tree
Hide file tree
Showing 39 changed files with 2,115 additions and 817 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WebView4Delphi is an open source project created by Salvador Díaz Fau to embed

WebView4Delphi only supports Windows. If you need to embed a web browser in Linux, Windows or MacOS consider using [CEF4Delphi](https://github.com/salvadordf/CEF4Delphi) instead.

WebView4Delphi uses the [Microsoft Edge WebView2 Runtime](https://docs.microsoft.com/en-us/microsoft-edge/webview2/) and [Microsoft.Web.WebView2 NuGet package version 1.0.2277.86](https://www.nuget.org/packages/Microsoft.Web.WebView2) to embed a web browser.
WebView4Delphi uses the [Microsoft Edge WebView2 Runtime](https://docs.microsoft.com/en-us/microsoft-edge/webview2/) and [Microsoft.Web.WebView2 NuGet package version 1.0.2365.46](https://www.nuget.org/packages/Microsoft.Web.WebView2) to embed a web browser.

WebView4Delphi was developed and tested on Delphi 12.0, Delphi XE2, Delphi 7 and Lazarus 3.0/FPC 3.2.2.

Expand Down
Binary file modified bin32/WebView2Loader.dll
Binary file not shown.
Binary file modified bin64/WebView2Loader.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions demos/Delphi_VCL/MiniBrowser/uMiniBrowser.pas
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@ procedure TMiniBrowserFrm.WVBrowser1AfterCreated(Sender: TObject);
NavControlPnl.Enabled := True;

// We need to a filter to enable the TWVBrowser.OnWebResourceRequested event
WVBrowser1.AddWebResourceRequestedFilter('*', COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE);
WVBrowser1.AddWebResourceRequestedFilter('*', COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA);
WVBrowser1.AddWebResourceRequestedFilterWithRequestSourceKinds('*', COREWEBVIEW2_WEB_RESOURCE_CONTEXT_IMAGE, COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS_ALL);
WVBrowser1.AddWebResourceRequestedFilterWithRequestSourceKinds('*', COREWEBVIEW2_WEB_RESOURCE_CONTEXT_MEDIA, COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS_ALL);

WVBrowser1.CoreWebView2PrintSettings.HeaderTitle := 'Tituloooooo';
WVBrowser1.CoreWebView2PrintSettings.ShouldPrintHeaderAndFooter := True;
Expand Down
Binary file modified docs/WebView4Delphi.chm
Binary file not shown.
52 changes: 31 additions & 21 deletions docs/html/AllClasses.html
Original file line number Diff line number Diff line change
Expand Up @@ -999,41 +999,46 @@ <h1 class="allitems">All Classes, Interfaces, Objects and Records</h1>
<td class="itemdesc"><p> Event args for the WebResourceRequested event. </p></td>
</tr>
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceRequestedEventArgs2.html">ICoreWebView2WebResourceRequestedEventArgs2</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Event args for the `WebResourceRequested` event. </p></td>
</tr>
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceRequestedEventHandler.html">ICoreWebView2WebResourceRequestedEventHandler</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Runs when a URL request (through network, file, and so on) is made in the webview for a Web resource matching resource context filter and URL specified in AddWebResourceRequestedFilter. The host views and modifies the request or provide a response in a similar pattern to HTTP, in which case the request immediately completed. This may not contain any request headers that are added by the network stack, such as an Authorization header. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceResponse.html">ICoreWebView2WebResourceResponse</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> An HTTP response used with the WebResourceRequested event. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceResponseReceivedEventArgs.html">ICoreWebView2WebResourceResponseReceivedEventArgs</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Event args for the WebResourceResponseReceived event. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceResponseReceivedEventHandler.html">ICoreWebView2WebResourceResponseReceivedEventHandler</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Receives WebResourceResponseReceived events. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceResponseView.html">ICoreWebView2WebResourceResponseView</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> View of the HTTP representation for a web resource response. The properties of this object are not mutable. This response view is used with the WebResourceResponseReceived event. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WebResourceResponseViewGetContentCompletedHandler.html">ICoreWebView2WebResourceResponseViewGetContentCompletedHandler</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Receives the result of the ICoreWebView2WebResourceResponseView.GetContent method. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WindowCloseRequestedEventHandler.html">ICoreWebView2WindowCloseRequestedEventHandler</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Receives WindowCloseRequested events. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2WindowFeatures.html">ICoreWebView2WindowFeatures</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p>
Expand All @@ -1046,76 +1051,81 @@ <h1 class="allitems">All Classes, Interfaces, Objects and Records</h1>

<p></p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2ZoomFactorChangedEventHandler.html">ICoreWebView2ZoomFactorChangedEventHandler</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> Implements the interface to receive ZoomFactorChanged events. Use the ICoreWebView2Controller.ZoomFactor property to get the modified zoom factor. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_10.html">ICoreWebView2_10</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_9 that supports BasicAuthenticationRequested event. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_11.html">ICoreWebView2_11</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_10 that supports sessionId for CDP method calls and ContextMenuRequested event. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_12.html">ICoreWebView2_12</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_11 that supports StatusBarTextChanged event. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_13.html">ICoreWebView2_13</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_12 that supports Profile API. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_14.html">ICoreWebView2_14</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_13 that adds ServerCertificate support. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_15.html">ICoreWebView2_15</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_14 that supports status Favicons. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_16.html">ICoreWebView2_16</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> A continuation of the ICoreWebView2 interface to support printing. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_17.html">ICoreWebView2_17</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_16 that supports shared buffer based on file mapping. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_18.html">ICoreWebView2_18</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_17 that manages navigation requests to URI schemes registered with the OS. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_19.html">ICoreWebView2_19</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of ICoreWebView2_18 that manages memory usage target level. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_2.html">ICoreWebView2_2</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> A continuation of the ICoreWebView2 interface. </p></td>
</tr>
<tr class="list2">
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_20.html">ICoreWebView2_20</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of `ICoreWebView2_19` that provides the `FrameId` property. </p></td>
</tr>
<tr class="list">
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_21.html">ICoreWebView2_21</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This is the interface for getting string and exception with ExecuteScriptWithResult. </p></td>
</tr>
<tr class="list">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_22.html">ICoreWebView2_22</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
<td class="itemdesc"><p> This interface is an extension of `ICoreWebView2` that allows to set filters in order to receive WebResourceRequested events for service workers, shared workers and different origin iframes. </p></td>
</tr>
<tr class="list2">
<td class="itemname"><a class="bold" href="uWVTypeLibrary.ICoreWebView2_3.html">ICoreWebView2_3</a></td>
<td class="itemunit"><a class="bold" href="uWVTypeLibrary.html">uWVTypeLibrary</a></td>
Expand Down
Loading

0 comments on commit e0cd179

Please sign in to comment.