api changes from copy/paste/drag/drop hooks (bug 197121) r=adamlock sr=smfr

This commit is contained in:
brade%netscape.com 2003-04-17 13:26:09 +00:00
Родитель 6632b1e805
Коммит 3d9a351e0c
1 изменённых файлов: 1 добавлений и 5 удалений

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

@ -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));
}
}