Skip to content

Commit

Permalink
remove staging and use the expected public name
Browse files Browse the repository at this point in the history
  • Loading branch information
Denghui Yu committed Jan 5, 2023
1 parent 3a0c4aa commit e834d1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions specs/MultiProfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ HRESULT AppWindow::DeleteProfile(ICoreWebView2* webView2)
void AppWindow::RegisterEventHandlers()
{
CHECK_FAILURE(m_webView->add_ProfileDeleted(
Microsoft::WRL::Callback<ICoreWebView2StagingProfileDeletedEventHandler>(
[this](ICoreWebView2Staging9* sender, IUnknown* args) {
Microsoft::WRL::Callback<ICoreWebView2ProfileDeletedEventHandler>(
[this](ICoreWebView2_9* sender, IUnknown* args) {
CloseAppWindow();
return S_OK;
}).Get(), nullptr));
Expand Down Expand Up @@ -374,7 +374,7 @@ interface ICoreWebView2Profile2 : ICoreWebView2Profile {
}
[uuid(2765B8BD-7C57-4B76-B8AA-1EC940FE92CC), object, pointer_default(unique)]
interface ICoreWebView2StagingProfile4 : IUnknown {
interface ICoreWebView2Profile4 : IUnknown {
/// After the API is called, the profile will be marked for deletion. The
/// local profile’s directory will be tried to delete at browser process
/// exit, if fail to delete, it will recursively try to delete at next
Expand All @@ -392,12 +392,12 @@ interface ICoreWebView2StagingProfile4 : IUnknown {
}
[uuid(cc39bea3-f6f8-471b-919f-fa253e2fff03), object, pointer_default(unique)]
interface ICoreWebView2Staging9 : IUnknown {
interface ICoreWebView2_9 : IUnknown {
/// The `ProfileDeleted` event is raised when its corresponding Profile's
/// Delete API is called. When this event has been raised, continue to use
/// the profile or its corresponding webviews is an undefined behavior.
HRESULT add_ProfileDeleted(
[in] ICoreWebView2StagingProfileDeletedEventHandler* eventHandler,
[in] ICoreWebView2ProfileDeletedEventHandler* eventHandler,
[out] EventRegistrationToken* token);
/// Remove an event handler previously added with `add_ProfileDeleted`.
Expand Down Expand Up @@ -445,7 +445,7 @@ namespace Microsoft.Web.WebView2.Core
// ...
CoreWebView2Profile Profile { get; };

[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Staging9")]
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2_9")]
{
event Windows.Foundation.TypedEventHandler<CoreWebView2, Object> ProfileDeleted;
}
Expand All @@ -461,9 +461,9 @@ namespace Microsoft.Web.WebView2.Core

CoreWebView2CookieManager CookieManager { get; };

[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2StagingProfile4")]
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Profile4")]
{
// ICoreWebView2StagingProfile4 members
// ICoreWebView2Profile4 members
void Delete();
}
}
Expand Down

0 comments on commit e834d1e

Please sign in to comment.