@@ -59,7 +59,7 @@ HRESULT DropTarget::DragEnter(IDataObject* dataObject,
59
59
60
60
// Convert the screen point to client coordinates add the WebView's offset.
61
61
m_viewComponent->OffsetPointToWebView(&point);
62
- return m_webViewCompositionController ->DragEnter(
62
+ return m_webViewCompositionController2 ->DragEnter(
63
63
dataObject, keyState, point, effect);
64
64
}
65
65
@@ -79,7 +79,7 @@ HRESULT DropTarget::DragOver(DWORD keyState,
79
79
// Convert the screen point to client coordinates add the WebView's offset.
80
80
// This returns whether the resultant point is over the WebView visual.
81
81
m_viewComponent->OffsetPointToWebView(&point);
82
- return m_webViewCompositionController ->DragOver(
82
+ return m_webViewCompositionController2 ->DragOver(
83
83
keyState, point, effect);
84
84
}
85
85
@@ -92,7 +92,7 @@ HRESULT DropTarget::DragLeave()
92
92
dropHelper->DragLeave();
93
93
}
94
94
95
- return m_webViewCompositionController ->DragLeave();
95
+ return m_webViewCompositionController2 ->DragLeave();
96
96
}
97
97
98
98
HRESULT DropTarget::Drop(IDataObject* dataObject,
@@ -112,7 +112,7 @@ HRESULT DropTarget::Drop(IDataObject* dataObject,
112
112
// Convert the screen point to client coordinates add the WebView's offset.
113
113
// This returns whether the resultant point is over the WebView visual.
114
114
m_viewComponent->OffsetPointToWebView(&point);
115
- return m_webViewCompositionController ->Drop(
115
+ return m_webViewCompositionController2 ->Drop(
116
116
dataObject, keyState, point, effect);
117
117
}
118
118
```
@@ -202,7 +202,7 @@ typedef enum COREWEBVIEW2_DROP_TARGET_ACTION {
202
202
```
203
203
204
204
``` c++
205
- interface ICoreWebView2CompositionController : IUnknown {
205
+ interface ICoreWebView2CompositionController2 : ICoreWebView2CompositionController {
206
206
/// This set of APIs (DragEnter, DragLeave, DragOver, and Drop) will allow
207
207
/// users to drop things such as images, text, and links into the WebView as
208
208
/// part of a drag/drop operation. The reason that we need a separate API for
@@ -287,7 +287,7 @@ interface ICoreWebView2CompositionController : IUnknown {
287
287
``` c#
288
288
namespace Microsoft .Web .WebView2 .Core
289
289
{
290
- public sealed class CoreWebView2CompositionController : CoreWebView2Controller , ICoreWebView2CompositionController
290
+ public sealed class CoreWebView2CompositionController : CoreWebView2Controller , ICoreWebView2CompositionController2
291
291
{
292
292
uint DragEnter (
293
293
Windows.ApplicationModel.DataTransfer.DataPackage dataObject ,
0 commit comments