2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2008-02-21 12:39:20 -08:00
|
|
|
|
2012-12-21 06:06:50 -08:00
|
|
|
#include "HTMLFrameSetElement.h"
|
2012-12-21 06:07:28 -08:00
|
|
|
#include "mozilla/dom/HTMLFrameSetElementBinding.h"
|
2012-11-26 06:19:02 -08:00
|
|
|
#include "mozilla/dom/EventHandlerBinding.h"
|
2012-12-21 06:07:28 -08:00
|
|
|
#include "nsGlobalWindow.h"
|
2008-02-21 12:39:20 -08:00
|
|
|
|
2012-11-14 14:10:08 -08:00
|
|
|
NS_IMPL_NS_NEW_HTML_ELEMENT(FrameSet)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-21 06:06:50 -08:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::~HTMLFrameSetElement()
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2012-12-21 06:07:28 -08:00
|
|
|
JSObject*
|
2014-04-08 15:27:17 -07:00
|
|
|
HTMLFrameSetElement::WrapNode(JSContext *aCx)
|
2012-12-21 06:07:28 -08:00
|
|
|
{
|
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 15:27:17 -07:00
|
|
|
return HTMLFrameSetElementBinding::Wrap(aCx, this);
|
2012-12-21 06:07:28 -08:00
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-04-27 00:06:00 -07:00
|
|
|
NS_IMPL_ISUPPORTS_INHERITED(HTMLFrameSetElement, nsGenericHTMLElement,
|
|
|
|
nsIDOMHTMLFrameSetElement)
|
2008-02-21 12:39:20 -08:00
|
|
|
|
2012-12-21 06:06:50 -08:00
|
|
|
NS_IMPL_ELEMENT_CLONE(HTMLFrameSetElement)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-21 06:07:28 -08:00
|
|
|
NS_IMETHODIMP
|
|
|
|
HTMLFrameSetElement::SetCols(const nsAString& aCols)
|
|
|
|
{
|
|
|
|
ErrorResult rv;
|
|
|
|
SetCols(aCols, rv);
|
|
|
|
return rv.ErrorCode();
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-12-21 06:07:28 -08:00
|
|
|
NS_IMETHODIMP
|
|
|
|
HTMLFrameSetElement::GetCols(nsAString& aCols)
|
|
|
|
{
|
|
|
|
nsString cols;
|
|
|
|
GetCols(cols);
|
|
|
|
aCols = cols;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
HTMLFrameSetElement::SetRows(const nsAString& aRows)
|
|
|
|
{
|
|
|
|
ErrorResult rv;
|
|
|
|
SetRows(aRows, rv);
|
|
|
|
return rv.ErrorCode();
|
|
|
|
}
|
|
|
|
|
|
|
|
NS_IMETHODIMP
|
|
|
|
HTMLFrameSetElement::GetRows(nsAString& aRows)
|
|
|
|
{
|
|
|
|
nsString rows;
|
|
|
|
GetRows(rows);
|
|
|
|
aRows = rows;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsresult
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::SetAttr(int32_t aNameSpaceID,
|
|
|
|
nsIAtom* aAttribute,
|
|
|
|
nsIAtom* aPrefix,
|
|
|
|
const nsAString& aValue,
|
|
|
|
bool aNotify)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
nsresult rv;
|
|
|
|
/* The main goal here is to see whether the _number_ of rows or
|
|
|
|
* columns has changed. If it has, we need to reframe; otherwise
|
|
|
|
* we want to reflow. So we set mCurrentRowColHint here, then call
|
|
|
|
* nsGenericHTMLElement::SetAttr, which will end up calling
|
|
|
|
* GetAttributeChangeHint and notifying layout with that hint.
|
|
|
|
* Once nsGenericHTMLElement::SetAttr returns, we want to go back to our
|
|
|
|
* normal hint, which is NS_STYLE_HINT_REFLOW.
|
|
|
|
*/
|
|
|
|
if (aAttribute == nsGkAtoms::rows && aNameSpaceID == kNameSpaceID_None) {
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t oldRows = mNumRows;
|
2007-03-22 10:30:00 -07:00
|
|
|
ParseRowCol(aValue, mNumRows, getter_Transfers(mRowSpecs));
|
|
|
|
|
|
|
|
if (mNumRows != oldRows) {
|
|
|
|
mCurrentRowColHint = NS_STYLE_HINT_FRAMECHANGE;
|
|
|
|
}
|
|
|
|
} else if (aAttribute == nsGkAtoms::cols &&
|
|
|
|
aNameSpaceID == kNameSpaceID_None) {
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t oldCols = mNumCols;
|
2007-03-22 10:30:00 -07:00
|
|
|
ParseRowCol(aValue, mNumCols, getter_Transfers(mColSpecs));
|
|
|
|
|
|
|
|
if (mNumCols != oldCols) {
|
|
|
|
mCurrentRowColHint = NS_STYLE_HINT_FRAMECHANGE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
rv = nsGenericHTMLElement::SetAttr(aNameSpaceID, aAttribute, aPrefix,
|
|
|
|
aValue, aNotify);
|
|
|
|
mCurrentRowColHint = NS_STYLE_HINT_REFLOW;
|
|
|
|
|
|
|
|
return rv;
|
|
|
|
}
|
|
|
|
|
2011-06-08 12:04:10 -07:00
|
|
|
nsresult
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::GetRowSpec(int32_t *aNumValues,
|
|
|
|
const nsFramesetSpec** aSpecs)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
NS_PRECONDITION(aNumValues, "Must have a pointer to an integer here!");
|
|
|
|
NS_PRECONDITION(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
|
|
|
*aNumValues = 0;
|
2012-07-30 07:20:58 -07:00
|
|
|
*aSpecs = nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
if (!mRowSpecs) {
|
|
|
|
const nsAttrValue* value = GetParsedAttr(nsGkAtoms::rows);
|
|
|
|
if (value && value->Type() == nsAttrValue::eString) {
|
|
|
|
nsresult rv = ParseRowCol(value->GetStringValue(), mNumRows,
|
|
|
|
getter_Transfers(mRowSpecs));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!mRowSpecs) { // we may not have had an attr or had an empty attr
|
|
|
|
mRowSpecs = new nsFramesetSpec[1];
|
|
|
|
mNumRows = 1;
|
|
|
|
mRowSpecs[0].mUnit = eFramesetUnit_Relative;
|
|
|
|
mRowSpecs[0].mValue = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*aSpecs = mRowSpecs;
|
|
|
|
*aNumValues = mNumRows;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2011-06-08 12:04:10 -07:00
|
|
|
nsresult
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::GetColSpec(int32_t *aNumValues,
|
|
|
|
const nsFramesetSpec** aSpecs)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
NS_PRECONDITION(aNumValues, "Must have a pointer to an integer here!");
|
|
|
|
NS_PRECONDITION(aSpecs, "Must have a pointer to an array of nsFramesetSpecs");
|
|
|
|
*aNumValues = 0;
|
2012-07-30 07:20:58 -07:00
|
|
|
*aSpecs = nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
if (!mColSpecs) {
|
|
|
|
const nsAttrValue* value = GetParsedAttr(nsGkAtoms::cols);
|
|
|
|
if (value && value->Type() == nsAttrValue::eString) {
|
|
|
|
nsresult rv = ParseRowCol(value->GetStringValue(), mNumCols,
|
|
|
|
getter_Transfers(mColSpecs));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!mColSpecs) { // we may not have had an attr or had an empty attr
|
|
|
|
mColSpecs = new nsFramesetSpec[1];
|
|
|
|
mNumCols = 1;
|
|
|
|
mColSpecs[0].mUnit = eFramesetUnit_Relative;
|
|
|
|
mColSpecs[0].mValue = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
*aSpecs = mColSpecs;
|
|
|
|
*aNumValues = mNumCols;
|
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-09-28 23:19:26 -07:00
|
|
|
bool
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::ParseAttribute(int32_t aNamespaceID,
|
|
|
|
nsIAtom* aAttribute,
|
|
|
|
const nsAString& aValue,
|
|
|
|
nsAttrValue& aResult)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
if (aNamespaceID == kNameSpaceID_None) {
|
|
|
|
if (aAttribute == nsGkAtoms::bordercolor) {
|
2010-07-17 01:09:14 -07:00
|
|
|
return aResult.ParseColor(aValue);
|
2007-03-22 10:30:00 -07:00
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::frameborder) {
|
|
|
|
return nsGenericHTMLElement::ParseFrameborderValue(aValue, aResult);
|
|
|
|
}
|
|
|
|
if (aAttribute == nsGkAtoms::border) {
|
|
|
|
return aResult.ParseIntWithBounds(aValue, 0, 100);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return nsGenericHTMLElement::ParseAttribute(aNamespaceID, aAttribute, aValue,
|
|
|
|
aResult);
|
|
|
|
}
|
|
|
|
|
|
|
|
nsChangeHint
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::GetAttributeChangeHint(const nsIAtom* aAttribute,
|
|
|
|
int32_t aModType) const
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
nsChangeHint retval =
|
|
|
|
nsGenericHTMLElement::GetAttributeChangeHint(aAttribute, aModType);
|
|
|
|
if (aAttribute == nsGkAtoms::rows ||
|
|
|
|
aAttribute == nsGkAtoms::cols) {
|
|
|
|
NS_UpdateHint(retval, mCurrentRowColHint);
|
|
|
|
}
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Translate a "rows" or "cols" spec into an array of nsFramesetSpecs
|
|
|
|
*/
|
|
|
|
nsresult
|
2012-12-21 06:06:50 -08:00
|
|
|
HTMLFrameSetElement::ParseRowCol(const nsAString & aValue,
|
|
|
|
int32_t& aNumSpecs,
|
|
|
|
nsFramesetSpec** aSpecs)
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
if (aValue.IsEmpty()) {
|
|
|
|
aNumSpecs = 0;
|
2012-07-30 07:20:58 -07:00
|
|
|
*aSpecs = nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
return NS_OK;
|
|
|
|
}
|
|
|
|
|
2014-01-04 07:02:17 -08:00
|
|
|
static const char16_t sAster('*');
|
|
|
|
static const char16_t sPercent('%');
|
|
|
|
static const char16_t sComma(',');
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsAutoString spec(aValue);
|
|
|
|
// remove whitespace (Bug 33699) and quotation marks (bug 224598)
|
|
|
|
// also remove leading/trailing commas (bug 31482)
|
|
|
|
spec.StripChars(" \n\r\t\"\'");
|
|
|
|
spec.Trim(",");
|
|
|
|
|
2010-07-20 17:37:08 -07:00
|
|
|
// Count the commas. Don't count more than X commas (bug 576447).
|
2013-11-11 00:03:59 -08:00
|
|
|
static_assert(NS_MAX_FRAMESET_SPEC_COUNT * sizeof(nsFramesetSpec) < (1 << 30),
|
|
|
|
"Too many frameset specs allowed to allocate");
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t commaX = spec.FindChar(sComma);
|
|
|
|
int32_t count = 1;
|
2011-01-24 17:38:07 -08:00
|
|
|
while (commaX != kNotFound && count < NS_MAX_FRAMESET_SPEC_COUNT) {
|
2007-03-22 10:30:00 -07:00
|
|
|
count++;
|
|
|
|
commaX = spec.FindChar(sComma, commaX + 1);
|
|
|
|
}
|
|
|
|
|
2013-08-08 10:54:07 -07:00
|
|
|
static const fallible_t fallible = fallible_t();
|
|
|
|
nsFramesetSpec* specs = new (fallible) nsFramesetSpec[count];
|
2007-03-22 10:30:00 -07:00
|
|
|
if (!specs) {
|
2012-07-30 07:20:58 -07:00
|
|
|
*aSpecs = nullptr;
|
2007-03-22 10:30:00 -07:00
|
|
|
aNumSpecs = 0;
|
|
|
|
return NS_ERROR_OUT_OF_MEMORY;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Pre-grab the compat mode; we may need it later in the loop.
|
2011-10-18 03:53:36 -07:00
|
|
|
bool isInQuirks = InNavQuirksMode(OwnerDoc());
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// Parse each comma separated token
|
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t start = 0;
|
|
|
|
int32_t specLen = spec.Length();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-08-22 08:56:38 -07:00
|
|
|
for (int32_t i = 0; i < count; i++) {
|
2007-03-22 10:30:00 -07:00
|
|
|
// Find our comma
|
|
|
|
commaX = spec.FindChar(sComma, start);
|
|
|
|
NS_ASSERTION(i == count - 1 || commaX != kNotFound,
|
|
|
|
"Failed to find comma, somehow");
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t end = (commaX == kNotFound) ? specLen : commaX;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
// Note: If end == start then it means that the token has no
|
|
|
|
// data in it other than a terminating comma (or the end of the spec).
|
|
|
|
// So default to a fixed width of 0.
|
|
|
|
specs[i].mUnit = eFramesetUnit_Fixed;
|
|
|
|
specs[i].mValue = 0;
|
|
|
|
if (end > start) {
|
2012-08-22 08:56:38 -07:00
|
|
|
int32_t numberEnd = end;
|
2014-01-04 07:02:17 -08:00
|
|
|
char16_t ch = spec.CharAt(numberEnd - 1);
|
2007-03-22 10:30:00 -07:00
|
|
|
if (sAster == ch) {
|
|
|
|
specs[i].mUnit = eFramesetUnit_Relative;
|
|
|
|
numberEnd--;
|
|
|
|
} else if (sPercent == ch) {
|
|
|
|
specs[i].mUnit = eFramesetUnit_Percent;
|
|
|
|
numberEnd--;
|
|
|
|
// check for "*%"
|
|
|
|
if (numberEnd > start) {
|
|
|
|
ch = spec.CharAt(numberEnd - 1);
|
|
|
|
if (sAster == ch) {
|
|
|
|
specs[i].mUnit = eFramesetUnit_Relative;
|
|
|
|
numberEnd--;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Translate value to an integer
|
|
|
|
nsAutoString token;
|
|
|
|
spec.Mid(token, start, numberEnd - start);
|
|
|
|
|
|
|
|
// Treat * as 1*
|
|
|
|
if ((eFramesetUnit_Relative == specs[i].mUnit) &&
|
|
|
|
(0 == token.Length())) {
|
|
|
|
specs[i].mValue = 1;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
// Otherwise just convert to integer.
|
2012-07-27 06:59:29 -07:00
|
|
|
nsresult err;
|
2007-03-22 10:30:00 -07:00
|
|
|
specs[i].mValue = token.ToInteger(&err);
|
2012-08-07 07:58:47 -07:00
|
|
|
if (NS_FAILED(err)) {
|
2007-03-22 10:30:00 -07:00
|
|
|
specs[i].mValue = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Treat 0* as 1* in quirks mode (bug 40383)
|
|
|
|
if (isInQuirks) {
|
|
|
|
if ((eFramesetUnit_Relative == specs[i].mUnit) &&
|
|
|
|
(0 == specs[i].mValue)) {
|
|
|
|
specs[i].mValue = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-09-06 17:20:35 -07:00
|
|
|
// Catch zero and negative frame sizes for Nav compatibility
|
2007-03-22 10:30:00 -07:00
|
|
|
// Nav resized absolute and relative frames to "1" and
|
|
|
|
// percent frames to an even percentage of the width
|
|
|
|
//
|
|
|
|
//if (isInQuirks && (specs[i].mValue <= 0)) {
|
|
|
|
// if (eFramesetUnit_Percent == specs[i].mUnit) {
|
|
|
|
// specs[i].mValue = 100 / count;
|
|
|
|
// } else {
|
|
|
|
// specs[i].mValue = 1;
|
|
|
|
// }
|
|
|
|
//} else {
|
|
|
|
|
|
|
|
// In standards mode, just set negative sizes to zero
|
|
|
|
if (specs[i].mValue < 0) {
|
|
|
|
specs[i].mValue = 0;
|
|
|
|
}
|
|
|
|
start = end + 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
aNumSpecs = count;
|
|
|
|
// Transfer ownership to caller here
|
|
|
|
*aSpecs = specs;
|
|
|
|
|
|
|
|
return NS_OK;
|
|
|
|
}
|
2011-08-24 12:49:25 -07:00
|
|
|
|
2013-01-02 12:24:07 -08:00
|
|
|
bool
|
|
|
|
HTMLFrameSetElement::IsEventAttributeName(nsIAtom *aName)
|
|
|
|
{
|
|
|
|
return nsContentUtils::IsEventAttributeName(aName,
|
|
|
|
EventNameType_HTML |
|
|
|
|
EventNameType_HTMLBodyOrFramesetOnly);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-08-24 12:49:25 -07:00
|
|
|
#define EVENT(name_, id_, type_, struct_) /* nothing; handled by the shim */
|
2012-11-26 06:19:02 -08:00
|
|
|
// nsGenericHTMLElement::GetOnError returns
|
|
|
|
// already_AddRefed<EventHandlerNonNull> while other getters return
|
|
|
|
// EventHandlerNonNull*, so allow passing in the type to use here.
|
2012-12-21 06:07:28 -08:00
|
|
|
#define WINDOW_EVENT_HELPER(name_, type_) \
|
|
|
|
type_* \
|
|
|
|
HTMLFrameSetElement::GetOn##name_() \
|
2012-12-21 06:06:50 -08:00
|
|
|
{ \
|
|
|
|
nsPIDOMWindow* win = OwnerDoc()->GetInnerWindow(); \
|
2013-04-29 08:34:16 -07:00
|
|
|
if (win) { \
|
2012-12-21 06:07:28 -08:00
|
|
|
nsCOMPtr<nsISupports> supports = do_QueryInterface(win); \
|
|
|
|
nsGlobalWindow* globalWin = nsGlobalWindow::FromSupports(supports); \
|
|
|
|
return globalWin->GetOn##name_(); \
|
2012-12-21 06:06:50 -08:00
|
|
|
} \
|
2012-12-21 06:07:28 -08:00
|
|
|
return nullptr; \
|
2012-12-21 06:06:50 -08:00
|
|
|
} \
|
2012-12-21 06:07:28 -08:00
|
|
|
void \
|
2013-09-17 04:01:28 -07:00
|
|
|
HTMLFrameSetElement::SetOn##name_(type_* handler) \
|
2012-12-21 06:06:50 -08:00
|
|
|
{ \
|
|
|
|
nsPIDOMWindow* win = OwnerDoc()->GetInnerWindow(); \
|
2013-04-29 08:34:16 -07:00
|
|
|
if (!win) { \
|
2012-12-21 06:07:28 -08:00
|
|
|
return; \
|
2012-12-21 06:06:50 -08:00
|
|
|
} \
|
2012-12-21 06:07:28 -08:00
|
|
|
\
|
|
|
|
nsCOMPtr<nsISupports> supports = do_QueryInterface(win); \
|
|
|
|
nsGlobalWindow* globalWin = nsGlobalWindow::FromSupports(supports); \
|
2013-09-17 04:01:28 -07:00
|
|
|
return globalWin->SetOn##name_(handler); \
|
2013-11-16 04:31:37 -08:00
|
|
|
}
|
2012-12-21 06:07:28 -08:00
|
|
|
#define WINDOW_EVENT(name_, id_, type_, struct_) \
|
|
|
|
WINDOW_EVENT_HELPER(name_, EventHandlerNonNull)
|
|
|
|
#define BEFOREUNLOAD_EVENT(name_, id_, type_, struct_) \
|
2013-10-08 08:51:15 -07:00
|
|
|
WINDOW_EVENT_HELPER(name_, OnBeforeUnloadEventHandlerNonNull)
|
2014-04-01 04:42:12 -07:00
|
|
|
#include "mozilla/EventNameList.h" // IWYU pragma: keep
|
2012-12-21 06:07:28 -08:00
|
|
|
#undef BEFOREUNLOAD_EVENT
|
2011-08-24 12:49:25 -07:00
|
|
|
#undef WINDOW_EVENT
|
2012-12-21 06:07:28 -08:00
|
|
|
#undef WINDOW_EVENT_HELPER
|
2011-08-24 12:49:25 -07:00
|
|
|
#undef EVENT
|
2012-12-21 06:06:50 -08:00
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|