Skip to content

Commit b94a704

Browse files
authored
Update NotifyDropTargetAction.md
1 parent 122d13c commit b94a704

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

specs/NotifyDropTargetAction.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

9898
HRESULT 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#
288288
namespace 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

Comments
 (0)