mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1031051: Part 10 - Migrate MozSettingsEvent and MozApplicationEvent to the WebIDL code generator. r=smaug
This commit is contained in:
parent
48ddb6d666
commit
862c18ba87
@ -10,7 +10,6 @@ XPIDL_SOURCES += [
|
||||
'nsIAppsService.idl',
|
||||
'nsIDOMApplicationRegistry.idl',
|
||||
'nsIDOMApplicationRegistry2.idl',
|
||||
'nsIDOMMozApplicationEvent.idl',
|
||||
'nsIInterAppCommService.idl',
|
||||
'nsIInterAppCommUIGlue.idl'
|
||||
]
|
||||
|
@ -1,18 +0,0 @@
|
||||
/* 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/. */
|
||||
|
||||
#include "nsIDOMEvent.idl"
|
||||
|
||||
interface mozIDOMApplication;
|
||||
|
||||
[builtinclass, uuid(453ae38a-8d8d-465f-a718-3f01240f8f75)]
|
||||
interface nsIDOMMozApplicationEvent : nsIDOMEvent
|
||||
{
|
||||
readonly attribute mozIDOMApplication application;
|
||||
|
||||
[noscript] void initMozApplicationEvent(in DOMString aType,
|
||||
in boolean aCanBubble,
|
||||
in boolean aCancelable,
|
||||
in mozIDOMApplication aApplication);
|
||||
};
|
@ -365,14 +365,4 @@ NS_NewDOMTouchEvent(nsIDOMEvent** aInstancePtrResult,
|
||||
mozilla::dom::EventTarget* aOwner,
|
||||
nsPresContext* aPresContext,
|
||||
mozilla::WidgetTouchEvent* aEvent);
|
||||
nsresult
|
||||
NS_NewDOMMozSettingsEvent(nsIDOMEvent** aInstancePtrResult,
|
||||
mozilla::dom::EventTarget* aOwner,
|
||||
nsPresContext* aPresContext,
|
||||
mozilla::WidgetEvent* aEvent);
|
||||
nsresult
|
||||
NS_NewDOMMozApplicationEvent(nsIDOMEvent** aInstancePtrResult,
|
||||
mozilla::dom::EventTarget* aOwner,
|
||||
nsPresContext* aPresContext,
|
||||
mozilla::WidgetEvent* aEvent);
|
||||
%}
|
||||
|
@ -5,7 +5,6 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
XPIDL_SOURCES += [
|
||||
'nsIDOMMozSettingsEvent.idl',
|
||||
'nsISettingsService.idl',
|
||||
]
|
||||
|
||||
|
@ -1,19 +0,0 @@
|
||||
/* 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/. */
|
||||
|
||||
#include "nsIDOMEvent.idl"
|
||||
interface nsIVariant;
|
||||
|
||||
[builtinclass, uuid(d5081bf4-6a63-4ee6-8ce6-f488082dc08f)]
|
||||
interface nsIDOMMozSettingsEvent : nsIDOMEvent
|
||||
{
|
||||
readonly attribute DOMString settingName;
|
||||
readonly attribute nsIVariant settingValue;
|
||||
|
||||
[noscript] void initMozSettingsEvent(in DOMString aType,
|
||||
in boolean aCanBubble,
|
||||
in boolean aCancelable,
|
||||
in DOMString aSettingName,
|
||||
in nsIVariant aSettingValue);
|
||||
};
|
@ -5,7 +5,7 @@
|
||||
*/
|
||||
interface mozIDOMApplication;
|
||||
|
||||
[Constructor(DOMString type, optional MozApplicationEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
[Constructor(DOMString type, optional MozApplicationEventInit eventInitDict)]
|
||||
interface MozApplicationEvent : Event
|
||||
{
|
||||
readonly attribute mozIDOMApplication? application;
|
||||
|
@ -4,11 +4,10 @@
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional MozSettingsEventInit eventInitDict), HeaderFile="GeneratedEventClasses.h"]
|
||||
[Constructor(DOMString type, optional MozSettingsEventInit eventInitDict)]
|
||||
interface MozSettingsEvent : Event
|
||||
{
|
||||
readonly attribute DOMString? settingName;
|
||||
[Throws]
|
||||
readonly attribute any settingValue;
|
||||
};
|
||||
|
||||
|
@ -639,12 +639,14 @@ GENERATED_EVENTS_WEBIDL_FILES = [
|
||||
'HashChangeEvent.webidl',
|
||||
'IccChangeEvent.webidl',
|
||||
'MediaStreamEvent.webidl',
|
||||
'MozApplicationEvent.webidl',
|
||||
'MozClirModeEvent.webidl',
|
||||
'MozContactChangeEvent.webidl',
|
||||
'MozEmergencyCbModeEvent.webidl',
|
||||
'MozInterAppMessageEvent.webidl',
|
||||
'MozMmsEvent.webidl',
|
||||
'MozOtaStatusEvent.webidl',
|
||||
'MozSettingsEvent.webidl',
|
||||
'MozSmsEvent.webidl',
|
||||
'MozStkCommandEvent.webidl',
|
||||
'PageTransitionEvent.webidl',
|
||||
|
@ -8,11 +8,9 @@
|
||||
<name>Init dictionary for the event constructor. """
|
||||
|
||||
simple_events = [
|
||||
'MozSettingsEvent',
|
||||
'CustomEvent',
|
||||
'DOMTransactionEvent',
|
||||
'DeviceOrientationEvent',
|
||||
'MozApplicationEvent',
|
||||
'StyleRuleChangeEvent',
|
||||
'StyleSheetChangeEvent',
|
||||
'StyleSheetApplicableStateChangeEvent',
|
||||
|
@ -112,9 +112,7 @@
|
||||
#include "nsIDOMMouseEvent.h"
|
||||
#include "nsIDOMMouseScrollEvent.h"
|
||||
#include "nsIDOMMutationEvent.h"
|
||||
#include "nsIDOMMozApplicationEvent.h"
|
||||
#include "nsIDOMMozNamedAttrMap.h"
|
||||
#include "nsIDOMMozSettingsEvent.h"
|
||||
#include "nsIDOMNode.h"
|
||||
#include "nsIDOMNodeIterator.h"
|
||||
#include "nsIDOMNotifyPaintEvent.h"
|
||||
@ -264,9 +262,7 @@
|
||||
#include "mozilla/dom/MouseEventBinding.h"
|
||||
#include "mozilla/dom/MouseScrollEventBinding.h"
|
||||
#include "mozilla/dom/MutationEventBinding.h"
|
||||
#include "mozilla/dom/MozApplicationEventBinding.h"
|
||||
#include "mozilla/dom/MozNamedAttrMapBinding.h"
|
||||
#include "mozilla/dom/MozSettingsEventBinding.h"
|
||||
#include "mozilla/dom/NodeIteratorBinding.h"
|
||||
#include "mozilla/dom/NodeBinding.h"
|
||||
#include "mozilla/dom/NotifyPaintEventBinding.h"
|
||||
@ -467,9 +463,7 @@ const ComponentsInterfaceShimEntry kComponentsInterfaceShimMap[] =
|
||||
DEFINE_SHIM(MouseEvent),
|
||||
DEFINE_SHIM(MouseScrollEvent),
|
||||
DEFINE_SHIM(MutationEvent),
|
||||
DEFINE_SHIM(MozApplicationEvent),
|
||||
DEFINE_SHIM(MozNamedAttrMap),
|
||||
DEFINE_SHIM(MozSettingsEvent),
|
||||
DEFINE_SHIM(NodeIterator),
|
||||
DEFINE_SHIM(Node),
|
||||
DEFINE_SHIM(NotifyPaintEvent),
|
||||
|
Loading…
Reference in New Issue
Block a user