@@ -179,8 +179,8 @@ HRESULT AppWindow::DeleteProfile(ICoreWebView2* webView2)
179
179
void AppWindow::RegisterEventHandlers()
180
180
{
181
181
CHECK_FAILURE(m_webView->add_ProfileDeleted(
182
- Microsoft::WRL::Callback<ICoreWebView2StagingProfileDeletedEventHandler >(
183
- [ this] (ICoreWebView2Staging9 * sender, IUnknown* args) {
182
+ Microsoft::WRL::Callback<ICoreWebView2ProfileDeletedEventHandler >(
183
+ [ this] (ICoreWebView2_9 * sender, IUnknown* args) {
184
184
CloseAppWindow();
185
185
return S_OK;
186
186
}).Get(), nullptr));
@@ -374,7 +374,7 @@ interface ICoreWebView2Profile2 : ICoreWebView2Profile {
374
374
}
375
375
376
376
[uuid(2765B8BD-7C57-4B76-B8AA-1EC940FE92CC), object, pointer_default(unique)]
377
- interface ICoreWebView2StagingProfile4 : IUnknown {
377
+ interface ICoreWebView2Profile4 : IUnknown {
378
378
/// After the API is called, the profile will be marked for deletion. The
379
379
/// local profile’s directory will be tried to delete at browser process
380
380
/// exit, if fail to delete, it will recursively try to delete at next
@@ -392,12 +392,12 @@ interface ICoreWebView2StagingProfile4 : IUnknown {
392
392
}
393
393
394
394
[uuid(cc39bea3-f6f8-471b-919f-fa253e2fff03), object, pointer_default(unique)]
395
- interface ICoreWebView2Staging9 : IUnknown {
395
+ interface ICoreWebView2_9 : IUnknown {
396
396
/// The `ProfileDeleted` event is raised when its corresponding Profile's
397
397
/// Delete API is called. When this event has been raised, continue to use
398
398
/// the profile or its corresponding webviews is an undefined behavior.
399
399
HRESULT add_ProfileDeleted(
400
- [in] ICoreWebView2StagingProfileDeletedEventHandler * eventHandler,
400
+ [in] ICoreWebView2ProfileDeletedEventHandler * eventHandler,
401
401
[out] EventRegistrationToken* token);
402
402
403
403
/// Remove an event handler previously added with `add_ProfileDeleted`.
@@ -445,7 +445,7 @@ namespace Microsoft.Web.WebView2.Core
445
445
// ...
446
446
CoreWebView2Profile Profile { get ; };
447
447
448
- [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2Staging9 " )]
448
+ [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2_9 " )]
449
449
{
450
450
event Windows .Foundation .TypedEventHandler < CoreWebView2 , Object > ProfileDeleted ;
451
451
}
@@ -461,9 +461,9 @@ namespace Microsoft.Web.WebView2.Core
461
461
462
462
CoreWebView2CookieManager CookieManager { get ; };
463
463
464
- [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2StagingProfile4 " )]
464
+ [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2Profile4 " )]
465
465
{
466
- // ICoreWebView2StagingProfile4 members
466
+ // ICoreWebView2Profile4 members
467
467
void Delete ();
468
468
}
469
469
}
0 commit comments