Skip to content

Commit fd95c90

Browse files
appended Window to method name
1 parent 57f7c5f commit fd95c90

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

specs/BrowserTaskManager.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Manager manually, so we do not need to provide an API to close it.
1616
In this document we describe the updated API. We'd appreciate your feedback.
1717

1818
# Description
19-
We propose extending `CoreWebView2` to provide an `OpenTaskManager` method.
20-
This method will open a new window containing the task manager. If the task
21-
manager is already opened, this method will do nothing.
19+
We propose extending `CoreWebView2` to provide an `OpenTaskManagerWindow`
20+
method. This method will open a new window containing the task manager.
21+
If the task manager is already opened, this method will do nothing.
2222

2323
# Examples
2424
## C++: Open Task Manager
@@ -27,10 +27,10 @@ manager is already opened, this method will do nothing.
2727
wil::com_ptr<ICoreWebView2_5> m_webview;
2828

2929
// This method could be called from a menu bar item, such as
30-
// [Script -> Open Task Manager].
31-
void ScriptComponent::OpenTaskManager()
30+
// [Script -> Open Task Manager Window].
31+
void ScriptComponent::OpenTaskManagerWindow()
3232
{
33-
CHECK_FAILURE(m_webview->OpenTaskManager());
33+
CHECK_FAILURE(m_webview->OpenTaskManagerWindow());
3434
}
3535
```
3636

@@ -39,10 +39,10 @@ void ScriptComponent::OpenTaskManager()
3939
private WebView2 m_webview;
4040

4141
// This method could be called from a menu bar item, such as
42-
// [Script -> Open Task Manager].
43-
void OpenTaskManager()
42+
// [Script -> Open Task Manager Window].
43+
void OpenTaskManagerWindow()
4444
{
45-
m_webview.CoreWebView2.OpenTaskManager();
45+
m_webview.CoreWebView2.OpenTaskManagerWindow();
4646
}
4747
```
4848

@@ -58,7 +58,7 @@ interface ICoreWebView2_5 : ICoreWebView2_4 {
5858
/// task manager. An end user can open the browser task manager manually
5959
/// via the `Browser task manager` entry of the DevTools window's title
6060
/// bar's context menu.
61-
HRESULT OpenTaskManager();
61+
HRESULT OpenTaskManagerWindow();
6262
}
6363
```
6464

@@ -74,7 +74,7 @@ namespace Microsoft.Web.WebView2.Core
7474
[interface_name("Microsoft.Web.WebView2.Core.ICoreWebView2_5")]
7575
{
7676
// ICoreWebView2_5 members
77-
void OpenTaskManager();
77+
void OpenTaskManagerWindow();
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)