Skip to content

Commit c8fed2e

Browse files
authored
Move project to use latest WebView2 prerelease SDK 0.9.488 (#25)
* Change Host to Controller * Update sample app to use sdk 0.9.488-prerelease * Revert changes in README
1 parent 31d03f2 commit c8fed2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1589
-249
lines changed

GettingStartedGuide/WebView2GettingStarted/HelloWebView.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ HINSTANCE hInst;
2323
// Forward declarations of functions included in this code module:
2424
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
2525

26-
// Pointer to WebViewHost
27-
static wil::com_ptr<ICoreWebView2Host> webviewHost;
26+
// Pointer to WebViewController
27+
static wil::com_ptr<ICoreWebView2Controller> webviewController;
2828

2929
// Pointer to WebView window
3030
static wil::com_ptr<ICoreWebView2> webviewWindow;
@@ -132,10 +132,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
132132
switch (message)
133133
{
134134
case WM_SIZE:
135-
if (webviewHost != nullptr) {
135+
if (webviewController != nullptr) {
136136
RECT bounds;
137137
GetClientRect(hWnd, &bounds);
138-
webviewHost->put_Bounds(bounds);
138+
webviewController->put_Bounds(bounds);
139139
};
140140
break;
141141
case WM_DESTROY:

WebView2APISample/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ packages/
2020
*.aps
2121

2222
# Ignore files generated by midl
23-
/RemoteObjectSample_h.h
24-
/RemoteObjectSample_i.c
23+
/HostObjectSample_h.h
24+
/HostObjectSample_i.c

0 commit comments

Comments
 (0)