api change to include event (similar to paste/drop hook); r=cmanske, sr=sfraser, a=asa

This commit is contained in:
brade%netscape.com 2003-05-09 18:26:47 +00:00
Родитель d78e9d202c
Коммит 4a4f3ae709
2 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1144,7 +1144,7 @@ nsContentAreaDragDrop::DragGesture(nsIDOMEvent* inMouseEvent)
nsCOMPtr<nsIClipboardDragDropHooks> override = do_QueryInterface(isupp);
if (override)
{
nsresult hookResult = override->OnCopyOrDrag(trans, &doContinueDrag);
nsresult hookResult = override->OnCopyOrDrag(inMouseEvent, trans, &doContinueDrag);
NS_ASSERTION(NS_SUCCEEDED(hookResult), "hook failure in OnCopyOrDrag");
if (!doContinueDrag)
return NS_OK;

Просмотреть файл

@ -109,13 +109,14 @@ interface nsIClipboardDragDropHooks : nsISupports
* that the implementation be very efficient so user feedback is
* not negatively impacted.
*
* @param event DOM event (drag drop); null if triggered by copy.
* @param trans the transferable holding the list of flavors
* and the data for each flavor
*
* @return TRUE copy/drag can proceed
* @return FALSE copy/drag is cancelled, does not go to OS
*/
boolean onCopyOrDrag(in nsITransferable trans);
boolean onCopyOrDrag(in nsIDOMEvent aEvent, in nsITransferable trans);
/**
* Provide an alternative action to the built-in behavior when