Bug 375681, use drag event names from what-wg spec, also implement new drag and dragend events, r=smaug,sr=roc
git-svn-id: svn://10.0.0.236/trunk@224430 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -326,6 +326,8 @@ public:
|
||||
NS_IMETHOD DragExit(nsIDOMEvent* aMouseEvent);
|
||||
NS_IMETHOD DragDrop(nsIDOMEvent* aMouseEvent);
|
||||
NS_IMETHOD DragGesture(nsIDOMEvent* aMouseEvent);
|
||||
NS_IMETHOD Drag(nsIDOMEvent* aMouseEvent);
|
||||
NS_IMETHOD DragEnd(nsIDOMEvent* aMouseEvent);
|
||||
|
||||
|
||||
nsresult Destroy();
|
||||
@@ -2766,6 +2768,28 @@ nsresult nsPluginInstanceOwner::DragGesture(nsIDOMEvent* aMouseEvent)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPluginInstanceOwner::Drag(nsIDOMEvent* aMouseEvent)
|
||||
{
|
||||
if (mInstance) {
|
||||
// Let the plugin handle drag events.
|
||||
aMouseEvent->PreventDefault();
|
||||
aMouseEvent->StopPropagation();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
nsresult nsPluginInstanceOwner::DragEnd(nsIDOMEvent* aMouseEvent)
|
||||
{
|
||||
if (mInstance) {
|
||||
// Let the plugin handle drag events.
|
||||
aMouseEvent->PreventDefault();
|
||||
aMouseEvent->StopPropagation();
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*=============== nsIKeyListener ======================*/
|
||||
|
||||
Reference in New Issue
Block a user