Bug 964192 - Remove the required argument to captureEvents/releaseEvents; r=bz

This commit is contained in:
Ms2ger 2014-02-09 09:04:39 +01:00
parent a3c46f9203
commit 1e7031caa5
6 changed files with 15 additions and 15 deletions

View File

@ -2178,14 +2178,14 @@ nsHTMLDocument::GetSelection(ErrorResult& rv)
}
NS_IMETHODIMP
nsHTMLDocument::CaptureEvents(int32_t aEventFlags)
nsHTMLDocument::CaptureEvents()
{
WarnOnceAbout(nsIDocument::eUseOfCaptureEvents);
return NS_OK;
}
NS_IMETHODIMP
nsHTMLDocument::ReleaseEvents(int32_t aEventFlags)
nsHTMLDocument::ReleaseEvents()
{
WarnOnceAbout(nsIDocument::eUseOfReleaseEvents);
return NS_OK;

View File

@ -7029,7 +7029,7 @@ nsGlobalWindow::SetResizable(bool aResizable)
}
NS_IMETHODIMP
nsGlobalWindow::CaptureEvents(int32_t aEventFlags)
nsGlobalWindow::CaptureEvents()
{
if (mDoc) {
mDoc->WarnOnceAbout(nsIDocument::eUseOfCaptureEvents);
@ -7039,7 +7039,7 @@ nsGlobalWindow::CaptureEvents(int32_t aEventFlags)
}
NS_IMETHODIMP
nsGlobalWindow::ReleaseEvents(int32_t aEventFlags)
nsGlobalWindow::ReleaseEvents()
{
if (mDoc) {
mDoc->WarnOnceAbout(nsIDocument::eUseOfReleaseEvents);

View File

@ -5,7 +5,7 @@
#include "domstubs.idl"
[scriptable, uuid(5a9689e8-5822-4dd5-b231-609b8d0260ab)]
[scriptable, uuid(4237c376-d637-4b6e-9f8a-1da57e867834)]
interface nsIDOMJSWindow : nsISupports
{
void dump(in DOMString str);
@ -37,8 +37,8 @@ interface nsIDOMJSWindow : nsISupports
* @deprecated These are old Netscape 4 methods. Do not use,
* the implementation is no-op.
*/
void captureEvents(in long eventFlags);
void releaseEvents(in long eventFlags);
void captureEvents();
void releaseEvents();
/**
* This is the scriptable version of nsIDOMWindow::open()

View File

@ -13,7 +13,7 @@
*/
interface nsISelection;
[scriptable, uuid(a3efb7eb-ae02-447b-99a5-bebca100afbd)]
[scriptable, uuid(7147c7ea-393e-454f-8de8-e356861bd9a7)]
interface nsIDOMHTMLDocument : nsIDOMDocument
{
attribute DOMString domain;
@ -90,11 +90,11 @@ interface nsIDOMHTMLDocument : nsIDOMDocument
nsISelection getSelection();
// Mozilla extensions
// More obsolete APIs
/**
* @deprecated These are old Netscape 4 methods. Do not use,
* the implementation is no-op.
*/
void captureEvents(in long eventFlags);
void releaseEvents(in long eventFlags);
void captureEvents();
void releaseEvents();
};

View File

@ -82,6 +82,6 @@ interface HTMLDocument : Document {
// @deprecated These are old Netscape 4 methods. Do not use,
// the implementation is no-op.
// XXXbz do we actually need these anymore?
void captureEvents(long eventFlags);
void releaseEvents(long eventFlags);
void captureEvents();
void releaseEvents();
};

View File

@ -120,8 +120,8 @@ Window implements WindowLocalStorage;
// http://www.whatwg.org/specs/web-apps/current-work/
partial interface Window {
void captureEvents(long dummy);
void releaseEvents(long dummy);
void captureEvents();
void releaseEvents();
};
// https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html