-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ProcessTerminated event to WebView
- Loading branch information
Showing
25 changed files
with
269 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
src/Controls/src/Core/WebView/PlatformWebViewProcessTerminatedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
namespace Microsoft.Maui.Controls | ||
{ | ||
public class PlatformWebViewProcessTerminatedEventArgs | ||
{ | ||
#if ANDROID | ||
internal PlatformWebViewProcessTerminatedEventArgs(Android.Views.View? sender, Android.Webkit.RenderProcessGoneDetail? renderProcessGoneDetail) | ||
{ | ||
Sender = sender; | ||
RenderProcessGoneDetail = renderProcessGoneDetail; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the native view attached to the event. | ||
/// </summary> | ||
public Android.Views.View? Sender { get; } | ||
|
||
/// <summary> | ||
/// Gets the native event or handler attached to the view. | ||
/// </summary> | ||
public Android.Webkit.RenderProcessGoneDetail? RenderProcessGoneDetail { get; } | ||
#elif IOS || MACCATALYST | ||
internal PlatformWebViewProcessTerminatedEventArgs(WebKit.WKWebView sender) | ||
{ | ||
Sender = sender; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the native view attached to the event. | ||
/// </summary> | ||
public WebKit.WKWebView Sender { get; } | ||
#elif WINDOWS | ||
|
||
internal PlatformWebViewProcessTerminatedEventArgs(Web.WebView2.Core.CoreWebView2 sender, Web.WebView2.Core.CoreWebView2ProcessFailedEventArgs coreWebView2ProcessFailedEventArgs) | ||
{ | ||
Sender = sender; | ||
CoreWebView2ProcessFailedEventArgs = coreWebView2ProcessFailedEventArgs; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the native view attached to the event. | ||
/// </summary> | ||
public Web.WebView2.Core.CoreWebView2 Sender { get; } | ||
|
||
/// <summary> | ||
/// Gets the native event or handler attached to the view. | ||
/// </summary> | ||
public Web.WebView2.Core.CoreWebView2ProcessFailedEventArgs CoreWebView2ProcessFailedEventArgs { get; } | ||
#endif | ||
} | ||
} |
Oops, something went wrong.