@@ -59,7 +59,7 @@ HRESULT DropTarget::DragEnter(IDataObject* dataObject,
5959
6060 // Convert the screen point to client coordinates add the WebView's offset.
6161 m_viewComponent->OffsetPointToWebView(&point);
62- return m_webViewCompositionController ->DragEnter(
62+ return m_webViewCompositionController2 ->DragEnter(
6363 dataObject, keyState, point, effect);
6464}
6565
@@ -79,7 +79,7 @@ HRESULT DropTarget::DragOver(DWORD keyState,
7979 // Convert the screen point to client coordinates add the WebView's offset.
8080 // This returns whether the resultant point is over the WebView visual.
8181 m_viewComponent->OffsetPointToWebView(&point);
82- return m_webViewCompositionController ->DragOver(
82+ return m_webViewCompositionController2 ->DragOver(
8383 keyState, point, effect);
8484}
8585
@@ -92,7 +92,7 @@ HRESULT DropTarget::DragLeave()
9292 dropHelper->DragLeave();
9393 }
9494
95- return m_webViewCompositionController ->DragLeave();
95+ return m_webViewCompositionController2 ->DragLeave();
9696}
9797
9898HRESULT DropTarget::Drop(IDataObject* dataObject,
@@ -112,7 +112,7 @@ HRESULT DropTarget::Drop(IDataObject* dataObject,
112112 // Convert the screen point to client coordinates add the WebView's offset.
113113 // This returns whether the resultant point is over the WebView visual.
114114 m_viewComponent->OffsetPointToWebView(&point);
115- return m_webViewCompositionController ->Drop(
115+ return m_webViewCompositionController2 ->Drop(
116116 dataObject, keyState, point, effect);
117117}
118118```
@@ -202,7 +202,7 @@ typedef enum COREWEBVIEW2_DROP_TARGET_ACTION {
202202```
203203
204204``` c++
205- interface ICoreWebView2CompositionController : IUnknown {
205+ interface ICoreWebView2CompositionController2 : ICoreWebView2CompositionController {
206206 /// This set of APIs (DragEnter, DragLeave, DragOver, and Drop) will allow
207207 /// users to drop things such as images, text, and links into the WebView as
208208 /// part of a drag/drop operation. The reason that we need a separate API for
@@ -287,7 +287,7 @@ interface ICoreWebView2CompositionController : IUnknown {
287287``` c#
288288namespace Microsoft .Web .WebView2 .Core
289289{
290- public sealed class CoreWebView2CompositionController : CoreWebView2Controller , ICoreWebView2CompositionController
290+ public sealed class CoreWebView2CompositionController : CoreWebView2Controller , ICoreWebView2CompositionController2
291291 {
292292 uint DragEnter (
293293 Windows.ApplicationModel.DataTransfer.DataPackage dataObject ,
0 commit comments