Skip to content

Commit 7b5724d

Browse files
author
Jason Stephen
authored
Update Appearance.md
1 parent 5abfe5f commit 7b5724d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

specs/Appearance.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ For reference, in the screenshot below, this API is meant to expose the Overall
1414
## C++
1515

1616
```cpp
17-
wil::com_ptr<ICoreWebView2Controller> m_controller;
17+
wil::com_ptr<ICoreWebView2Profile> m_controller;
1818

1919
void ViewComponent::SetTheme(COREWEBVIEW2_THEME_KIND value)
2020
{
21-
wil::com_ptr<ICoreWebView2Controller4> webViewController4;
21+
wil::com_ptr<ICoreWebView2Profile> webViewProfile;
2222

23-
CHECK_FAILURE(m_controller->QueryInterface(IID_PPV_ARGS(&webViewController4)));
24-
if (webViewController4)
23+
CHECK_FAILURE(m_controller->QueryInterface(IID_PPV_ARGS(&webViewProfile)));
24+
if (webViewProfile)
2525
{
26-
CHECK_FAILURE(webViewController4->put_Theme(value));
26+
CHECK_FAILURE(webViewProfile->put_Theme(value));
2727
}
2828
}
2929
```
@@ -32,14 +32,14 @@ void ViewComponent::SetTheme(COREWEBVIEW2_THEME_KIND value)
3232
3333
```c#
3434
35-
private CoreWebView2Controller m_controller;
35+
private CoreWebView2Profile m_profile;
3636
3737
void SetTheme(CoreWebView2ThemeKind value)
3838
{
3939
// Check for runtime support
4040
try
4141
{
42-
m_controller.Theme = value;
42+
m_profile.Theme = value;
4343
}
4444
catch (NotImplementedException exception)
4545
{
@@ -100,13 +100,13 @@ namespace Microsoft.Web.WebView2.Core
100100
Dark = 2,
101101
};
102102

103-
unsealed runtimeclass CoreWebView2Controller
103+
runtimeclass CoreWebView2Profile
104104
{
105105
// ...
106106
107-
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2Controller4")]
107+
[interface_name("Microsoft.Web.WebView2.Core.CoreWebView2Profile")]
108108
{
109-
// ICoreWebView2Controller4 members
109+
// CoreWebView2Profile members
110110
CoreWebView2ThemeKind Theme { get; set; };
111111
}
112112
}

0 commit comments

Comments
 (0)