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
For API reviewers, We want a unified API surface between COM and WinRT that works in both UWP and Win32.
26
+
27
+
We could have one API focusing on Win32 types and require the end dev to convert from UWP types to Win32 (which we've done).
28
+
Or we could have one API focusing on UWP types and require the end dev to convert Win32 to UWP.
29
+
Or we could have two sets of methods one for Win32 and one for UWP types.
30
+
Or we could do (1) or (2) and provide a conversion function.
31
+
Because the conversion is simple and we have a large Win32 user base we chose (1).
32
+
24
33
25
34
# Description
26
-
NotifyDropTargetAction is meant to provide a way for composition hosted WebViews to receive drop events as part of a drag/drop operation.
35
+
DragEnter, DragOver, DragLeave, and Drop are functions meant to provide a way for composition hosted WebViews to receive drop events as part of a drag/drop operation.
27
36
It is the hosting application's responsibility to call RegisterDragDrop (https://docs.microsoft.com/en-us/windows/win32/api/ole2/nf-ole2-registerdragdrop)
28
37
on the HWND that contains any composition hosted WebViews and to implement IDropTarget(https://docs.microsoft.com/en-us/windows/win32/api/oleidl/nn-oleidl-idroptarget)
29
38
to receive the corresponding drop events from Ole32:
@@ -33,9 +42,8 @@ to receive the corresponding drop events from Ole32:
33
42
- IDropTarget::DragLeave
34
43
- IDropTarget::Drop
35
44
36
-
NotifyDropTargetAction consolidates these four functions into one and the COREWEBVIEW2_DROP_TARGET_ACTION enum
37
-
specifies which corresponding IDropTarget function was called.
38
-
45
+
For other UI frameworks such as Xaml, the hosting application would set event handlers for DragEnter, DragOver, DragLeave, and Drop
46
+
on the UIElement that contains the WebView2 element.
0 commit comments