You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update enumeration due to api change
* Updated the package and fixed few missed instances
* Updated the readme file too with the api changes
* Added the changes from details ot options in readme
Co-authored-by: Christopher Wang <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,14 +86,14 @@ WebView2Browser makes use of a handful of the APIs available in WebView2. For th
86
86
87
87
API | Feature(s)
88
88
:--- | :---
89
-
CreateCoreWebView2EnvironmentWithDetails | Used to create the environments for UI and content WebViews. Different user data directories are passed to isolate UI from web content. |
89
+
CreateCoreWebView2EnvironmentWithOptions | Used to create the environments for UI and content WebViews. Different user data directories are passed to isolate UI from web content. |
90
90
ICoreWebView2 | There are several WebViews in WebView2Browser and most features make use of members in this interface, the table below shows how they're used.
91
91
ICoreWebView2DevToolsProtocolEventReceivedEventHandler | Used along with add_DevToolsProtocolEventReceived to listen for CDP security events to update the lock icon in the browser UI. |
92
92
ICoreWebView2DevToolsProtocolEventReceiver | Used along with add_DevToolsProtocolEventReceived to listen for CDP security events to update the lock icon in the browser UI. |
93
93
ICoreWebView2ExecuteScriptCompletedHandler | Used along with ExecuteScript to get the title and favicon from the visited page. |
94
94
ICoreWebView2FocusChangedEventHandler | Used along with add_LostFocus to hide the browser options dropdown when it loses focus.
95
95
ICoreWebView2HistoryChangedEventHandler | Used along with add_HistoryChanged to udpate the navigation buttons in the browser UI. |
96
-
ICoreWebView2Host | There are several WebViewHosts in WebView2Browser and we fetch the associated WebViews from them.
96
+
ICoreWebView2Controller | There are several WebViewControllers in WebView2Browser and we fetch the associated WebViews from them.
97
97
ICoreWebView2NavigationCompletedEventHandler | Used along with add_NavigationCompleted to udpate the reload button in the browser UI.
98
98
ICoreWebView2Settings | Used to disable DevTools in the browser UI.
99
99
ICoreWebView2SourceChangedEventHandler | Used along with add_SourceChanged to udpate the address bar in the browser UI. |
@@ -110,9 +110,9 @@ PostWebMessageAsJson | Used to communicate WebViews. All messages use JSON to pa
110
110
add_WebMessageReceived | Used to handle web messages posted to the WebView.
111
111
CallDevToolsProtocolMethod | Used to enable listening for security events, which will notify of security status changes in a document.
112
112
113
-
ICoreWebView2Host API | Feature(s)
113
+
ICoreWebView2Controller API | Feature(s)
114
114
:--- | :---
115
-
get_CoreWebView2 | Used to get the CoreWebView2 associated with this CoreWebView2Host.
115
+
get_CoreWebView2 | Used to get the CoreWebView2 associated with this CoreWebView2Controller.
116
116
add_LostFocus | Used to hide the options dropdown when the user clicks away of it.
117
117
<br />
118
118
@@ -133,7 +133,7 @@ The sections below describe how some of the features in WebView2Browser were imp
133
133
134
134
## The basics
135
135
### Set up the environment, create a WebView
136
-
WebView2 allows you to host web content in your Windows app. It exposes the globals [CreateCoreWebView2Environment](https://docs.microsoft.com/microsoft-edge/hosting/webview2/reference/webview2.idl#createcorewebview2environment) and [CreateCoreWebView2EnvironmentWithDetails](https://docs.microsoft.com/microsoft-edge/hosting/webview2/reference/webview2.idl#createcorewebview2environmentwithdetails) from which we can create the two separate environments for the browser's UI and content.
136
+
WebView2 allows you to host web content in your Windows app. It exposes the globals [CreateCoreWebView2Environment](https://docs.microsoft.com/microsoft-edge/hosting/webview2/reference/webview2.idl#createcorewebview2environment) and [CreateCoreWebView2EnvironmentWithOptions](https://docs.microsoft.com/microsoft-edge/hosting/webview2/reference/webview2.idl#createcorewebview2environmentwithoptions) from which we can create the two separate environments for the browser's UI and content.
137
137
138
138
```cpp
139
139
// Get directory for user data. This will be kept separated from the
@@ -145,7 +145,7 @@ WebView2 allows you to host web content in your Windows app. It exposes the glob
145
145
// tabs will be created from this environment and kept isolated from the
146
146
// browser UI. This enviroment is created first so the UI can request new
0 commit comments