mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Bug 847590 - Paris binding for BeforeUnloadEvent, r=peterv
--HG-- extra : rebase_source : d249e7a7e61c39ccba52a10234e2260b048c941d
This commit is contained in:
parent
8b28e5b8f1
commit
fa2ed308e5
@ -8,6 +8,7 @@
|
||||
|
||||
#include "nsIDOMBeforeUnloadEvent.h"
|
||||
#include "nsDOMEvent.h"
|
||||
#include "mozilla/dom/BeforeUnloadEventBinding.h"
|
||||
|
||||
class nsDOMBeforeUnloadEvent : public nsDOMEvent,
|
||||
public nsIDOMBeforeUnloadEvent
|
||||
@ -15,7 +16,15 @@ class nsDOMBeforeUnloadEvent : public nsDOMEvent,
|
||||
public:
|
||||
nsDOMBeforeUnloadEvent(mozilla::dom::EventTarget* aOwner,
|
||||
nsPresContext* aPresContext, nsEvent* aEvent)
|
||||
: nsDOMEvent(aOwner, aPresContext, aEvent) {}
|
||||
: nsDOMEvent(aOwner, aPresContext, aEvent)
|
||||
{
|
||||
SetIsDOMBinding();
|
||||
}
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope)
|
||||
{
|
||||
return mozilla::dom::BeforeUnloadEventBinding::Wrap(aCx, aScope, this);
|
||||
}
|
||||
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
|
||||
|
@ -126,6 +126,10 @@ DOMInterfaces = {
|
||||
'concrete': False,
|
||||
},
|
||||
|
||||
'BeforeUnloadEvent': {
|
||||
'nativeType': 'nsDOMBeforeUnloadEvent',
|
||||
},
|
||||
|
||||
'BiquadFilterNode': {
|
||||
'resultNotAddRefed': [ 'frequency', 'q', 'gain' ],
|
||||
'wrapperCache': False
|
||||
|
12
dom/webidl/BeforeUnloadEvent.webidl
Normal file
12
dom/webidl/BeforeUnloadEvent.webidl
Normal file
@ -0,0 +1,12 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#beforeunloadevent
|
||||
*/
|
||||
|
||||
interface BeforeUnloadEvent : Event {
|
||||
attribute DOMString returnValue;
|
||||
};
|
@ -21,6 +21,7 @@ webidl_files = \
|
||||
AudioParam.webidl \
|
||||
AudioSourceNode.webidl \
|
||||
BatteryManager.webidl \
|
||||
BeforeUnloadEvent.webidl \
|
||||
BiquadFilterNode.webidl \
|
||||
Blob.webidl \
|
||||
CanvasRenderingContext2D.webidl \
|
||||
|
Loading…
x
Reference in New Issue
Block a user