mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
DragEnter now sets the IDataObject into the DragService
This commit is contained in:
parent
1e9b1a0045
commit
acaea66035
@ -208,6 +208,14 @@ STDMETHODIMP nsNativeDragTarget::DragEnter(LPDATAOBJECT pIDataSource,
|
|||||||
mDataObj = pIDataSource;
|
mDataObj = pIDataSource;
|
||||||
NS_ADDREF(mDataObj);
|
NS_ADDREF(mDataObj);
|
||||||
|
|
||||||
|
// This cast is ok because in the constructor we created a
|
||||||
|
// the actual implementation we wanted, so we know this is
|
||||||
|
// a nsDragService
|
||||||
|
nsDragService * winDragService = NS_STATIC_CAST(nsDragService *, mDragService);
|
||||||
|
|
||||||
|
// Set the native data object into drage service
|
||||||
|
winDragService->SetIDataObject(pIDataSource);
|
||||||
|
|
||||||
// Now process the native drag state and then dispatch the event
|
// Now process the native drag state and then dispatch the event
|
||||||
ProcessDrag(NS_DRAGDROP_ENTER, grfKeyState, pt, pdwEffect);
|
ProcessDrag(NS_DRAGDROP_ENTER, grfKeyState, pt, pdwEffect);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user