Skip to content

Commit cb5e506

Browse files
committed
Use simpler names for exit kind enum
1 parent af3f022 commit cb5e506

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

specs/BrowserProcessExited.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ CHECK_FAILURE(m_webViewEnvironment->add_BrowserProcessExited(
5757

5858
// Watch for graceful browser process exit. Let ProcessFailed event
5959
// handler take care of failed browser process termination.
60-
if (kind == COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL_EXIT)
60+
if (kind == COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL)
6161
{
6262
CHECK_FAILURE(
6363
m_webViewEnvironment->remove_BrowserProcessExited(browserExitedEventToken));
@@ -170,12 +170,12 @@ library WebView2
170170
/// `ICoreWebView2BrowserProcessExitedEventArgs` interface.
171171
typedef enum COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND {
172172
/// Indicates that the browser process ended normally.
173-
COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL_EXIT,
173+
COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_NORMAL,
174174

175175
/// Indicates that the browser process ended unexpectedly.
176176
/// A `ProcessFailed` event will also be sent to listening WebViews from the
177177
/// `ICoreWebView2Environment` associated to the failed process.
178-
COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_FAILED_EXIT
178+
COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND_FAILED
179179
} COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND;
180180

181181
interface ICoreWebView2Environment3 : ICoreWebView2Environment2
@@ -248,12 +248,12 @@ namespace Microsoft.Web.WebView2.Core
248248
enum CoreWebView2BrowserProcessExitKind
249249
{
250250
/// Indicates that the browser process ended normally.
251-
NormalExit,
251+
Normal,
252252
/// Indicates that the browser process ended unexpectedly.
253253
/// A `CoreWebView2.ProcessFailed` event will also be raised to
254254
/// listening WebViews from the `CoreWebView2Environment` associated to
255255
/// the failed process.
256-
FailedExit
256+
Failed
257257
};
258258

259259
runtimeclass CoreWebView2Environment

0 commit comments

Comments
 (0)