зеркало из https://github.com/mozilla/gecko-dev.git
api changes from copy/paste/drag/drop hooks (bug 197121) r=adamlock sr=smfr
This commit is contained in:
Родитель
6632b1e805
Коммит
3d9a351e0c
|
@ -68,7 +68,6 @@
|
|||
#include "nsIPrompt.h"
|
||||
#include "nsRect.h"
|
||||
#include "nsIWebBrowserChromeFocus.h"
|
||||
#include "nsIDragDropOverride.h"
|
||||
#include "nsIContent.h"
|
||||
#include "imgIContainer.h"
|
||||
#include "nsContextMenuInfo.h"
|
||||
|
@ -843,11 +842,8 @@ nsDocShellTreeOwner :: AddChromeListeners ( )
|
|||
if ( mChromeDragHandler ) {
|
||||
nsCOMPtr<nsIDOMEventReceiver> rcvr;
|
||||
GetEventReceiver(mWebBrowser, getter_AddRefs(rcvr));
|
||||
nsCOMPtr<nsIOverrideDragSource> srcOverride ( do_QueryInterface(mWebBrowserChrome) );
|
||||
nsCOMPtr<nsIOverrideDropSite> siteOverride ( do_QueryInterface(mWebBrowserChrome) );
|
||||
nsCOMPtr<nsIDOMEventTarget> rcvrTarget(do_QueryInterface(rcvr));
|
||||
mChromeDragHandler->HookupTo(rcvrTarget, NS_STATIC_CAST(nsIWebNavigation*, mWebBrowser),
|
||||
srcOverride, siteOverride);
|
||||
mChromeDragHandler->HookupTo(rcvrTarget, NS_STATIC_CAST(nsIWebNavigation*, mWebBrowser));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче