@@ -179,8 +179,8 @@ HRESULT AppWindow::DeleteProfile(ICoreWebView2* webView2)
179179void AppWindow::RegisterEventHandlers()
180180{
181181 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) {
184184 CloseAppWindow();
185185 return S_OK;
186186 }).Get(), nullptr));
@@ -374,7 +374,7 @@ interface ICoreWebView2Profile2 : ICoreWebView2Profile {
374374}
375375
376376[uuid(2765B8BD-7C57-4B76-B8AA-1EC940FE92CC), object, pointer_default(unique)]
377- interface ICoreWebView2StagingProfile4 : IUnknown {
377+ interface ICoreWebView2Profile4 : IUnknown {
378378 /// After the API is called, the profile will be marked for deletion. The
379379 /// local profile’s directory will be tried to delete at browser process
380380 /// exit, if fail to delete, it will recursively try to delete at next
@@ -392,12 +392,12 @@ interface ICoreWebView2StagingProfile4 : IUnknown {
392392}
393393
394394[uuid(cc39bea3-f6f8-471b-919f-fa253e2fff03), object, pointer_default(unique)]
395- interface ICoreWebView2Staging9 : IUnknown {
395+ interface ICoreWebView2_9 : IUnknown {
396396 /// The `ProfileDeleted` event is raised when its corresponding Profile's
397397 /// Delete API is called. When this event has been raised, continue to use
398398 /// the profile or its corresponding webviews is an undefined behavior.
399399 HRESULT add_ProfileDeleted(
400- [in] ICoreWebView2StagingProfileDeletedEventHandler * eventHandler,
400+ [in] ICoreWebView2ProfileDeletedEventHandler * eventHandler,
401401 [out] EventRegistrationToken* token);
402402
403403 /// Remove an event handler previously added with `add_ProfileDeleted`.
@@ -445,7 +445,7 @@ namespace Microsoft.Web.WebView2.Core
445445 // ...
446446 CoreWebView2Profile Profile { get ; };
447447
448- [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2Staging9 " )]
448+ [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2_9 " )]
449449 {
450450 event Windows .Foundation .TypedEventHandler < CoreWebView2 , Object > ProfileDeleted ;
451451 }
@@ -461,9 +461,9 @@ namespace Microsoft.Web.WebView2.Core
461461
462462 CoreWebView2CookieManager CookieManager { get ; };
463463
464- [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2StagingProfile4 " )]
464+ [interface_name (" Microsoft.Web.WebView2.Core.ICoreWebView2Profile4 " )]
465465 {
466- // ICoreWebView2StagingProfile4 members
466+ // ICoreWebView2Profile4 members
467467 void Delete ();
468468 }
469469 }
0 commit comments