mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 964192 - Remove the required argument to captureEvents/releaseEvents; r=bz
This commit is contained in:
parent
9a272394cf
commit
5fb8b261b1
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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()
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -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();
|
||||
};
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user