Bug 673919 - Remove routeEvent, enableExternalCapture and disableExternalCapture. r=smaug

This commit is contained in:
Masatoshi Kimura 2013-08-01 23:48:18 +09:00
Родитель b365cfa9df
Коммит a2d7f5d92e
7 изменённых файлов: 2 добавлений и 40 удалений

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

@ -2261,13 +2261,6 @@ nsHTMLDocument::ReleaseEvents(int32_t aEventFlags)
return NS_OK;
}
NS_IMETHODIMP
nsHTMLDocument::RouteEvent(nsIDOMEvent* aEvt)
{
ReportUseOfDeprecatedMethod(this, "UseOfRouteEventWarning");
return NS_OK;
}
// Mapped to document.embeds for NS4 compatibility
NS_IMETHODIMP
nsHTMLDocument::GetPlugins(nsIDOMHTMLCollection** aPlugins)

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

@ -104,11 +104,6 @@ public:
// nsIDOMHTMLDocument interface
NS_DECL_NSIDOMHTMLDOCUMENT
void RouteEvent(nsDOMEvent& aEvent)
{
RouteEvent(&aEvent);
}
/**
* Returns the result of document.all[aID] which can either be a node
* or a nodelist depending on if there are multiple nodes with the same
@ -249,7 +244,6 @@ public:
already_AddRefed<nsISelection> GetSelection(mozilla::ErrorResult& rv);
// The XPCOM CaptureEvents works fine for us.
// The XPCOM ReleaseEvents works fine for us.
// The XPCOM RouteEvent works fine for us.
// We're picking up GetLocation from Document
already_AddRefed<nsIDOMLocation> GetLocation() const {
return nsIDocument::GetLocation();

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

@ -6235,25 +6235,6 @@ nsGlobalWindow::ReleaseEvents(int32_t aEventFlags)
return NS_OK;
}
NS_IMETHODIMP
nsGlobalWindow::RouteEvent(nsIDOMEvent* aEvt)
{
ReportUseOfDeprecatedMethod(this, "UseOfRouteEventWarning");
return NS_OK;
}
NS_IMETHODIMP
nsGlobalWindow::EnableExternalCapture()
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsGlobalWindow::DisableExternalCapture()
{
return NS_ERROR_FAILURE;
}
static
bool IsPopupBlocked(nsIDocument* aDoc)
{

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

@ -5,7 +5,7 @@
#include "domstubs.idl"
[scriptable, uuid(80adc1fe-c0a0-44f7-8a0e-d3d928e2ecc9)]
[scriptable, uuid(5a9689e8-5822-4dd5-b231-609b8d0260ab)]
interface nsIDOMJSWindow : nsISupports
{
void dump(in DOMString str);
@ -39,9 +39,6 @@ interface nsIDOMJSWindow : nsISupports
*/
void captureEvents(in long eventFlags);
void releaseEvents(in long eventFlags);
void routeEvent(in nsIDOMEvent evt);
void enableExternalCapture();
void disableExternalCapture();
/**
* This is the scriptable version of nsIDOMWindow::open()

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

@ -13,7 +13,7 @@
*/
interface nsISelection;
[scriptable, uuid(bd920ed4-ddc6-46db-bd4d-d1ddc0692ad4)]
[scriptable, uuid(a3efb7eb-ae02-447b-99a5-bebca100afbd)]
interface nsIDOMHTMLDocument : nsIDOMDocument
{
attribute DOMString domain;
@ -97,5 +97,4 @@ interface nsIDOMHTMLDocument : nsIDOMDocument
*/
void captureEvents(in long eventFlags);
void releaseEvents(in long eventFlags);
void routeEvent(in nsIDOMEvent evt);
};

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

@ -18,7 +18,6 @@ OnBeforeUnloadStayButton=Stay on Page
OnBeforeUnloadLeaveButton=Leave Page
UseOfCaptureEventsWarning=Use of captureEvents() is deprecated. To upgrade your code, use the DOM 2 addEventListener() method. For more help http://developer.mozilla.org/en/docs/DOM:element.addEventListener
UseOfReleaseEventsWarning=Use of releaseEvents() is deprecated. To upgrade your code, use the DOM 2 removeEventListener() method. For more help http://developer.mozilla.org/en/docs/DOM:element.removeEventListener
UseOfRouteEventWarning=Use of routeEvent() is deprecated. To upgrade your code, use the DOM 2 dispatchEvent() method. For more help http://developer.mozilla.org/en/docs/DOM:element.dispatchEvent
UseOfDOM3LoadMethodWarning=Use of Document.load() is deprecated. To upgrade your code, use the DOM XMLHttpRequest object. For more help https://developer.mozilla.org/en/XMLHttpRequest
UnexpectedCanvasVariantStyle=canvas: an attempt to set strokeStyle or fillStyle to a value that is neither a string, a CanvasGradient, or a CanvasPattern was ignored.
EmptyGetElementByIdParam=Empty string passed to getElementById().

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

@ -77,5 +77,4 @@ interface HTMLDocument : Document {
// XXXbz do we actually need these anymore?
void captureEvents(long eventFlags);
void releaseEvents(long eventFlags);
void routeEvent(Event evt);
};