зеркало из https://github.com/mozilla/gecko-dev.git
api change to include event (similar to paste/drop hook); r=cmanske, sr=sfraser, a=asa
This commit is contained in:
Родитель
d78e9d202c
Коммит
4a4f3ae709
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче