Bug 1031051: Part 10 - Migrate MozSettingsEvent and MozApplicationEvent to the WebIDL code generator. r=smaug

This commit is contained in:
Kyle Huey 2014-06-30 16:02:02 -07:00
parent 48ddb6d666
commit 862c18ba87
10 changed files with 4 additions and 60 deletions

View File

@ -10,7 +10,6 @@ XPIDL_SOURCES += [
'nsIAppsService.idl',
'nsIDOMApplicationRegistry.idl',
'nsIDOMApplicationRegistry2.idl',
'nsIDOMMozApplicationEvent.idl',
'nsIInterAppCommService.idl',
'nsIInterAppCommUIGlue.idl'
]

View File

@ -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);
};

View File

@ -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);
%}

View File

@ -5,7 +5,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
XPIDL_SOURCES += [
'nsIDOMMozSettingsEvent.idl',
'nsISettingsService.idl',
]

View File

@ -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);
};

View File

@ -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;

View File

@ -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;
};

View File

@ -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',

View File

@ -8,11 +8,9 @@
<name>Init dictionary for the event constructor. """
simple_events = [
'MozSettingsEvent',
'CustomEvent',
'DOMTransactionEvent',
'DeviceOrientationEvent',
'MozApplicationEvent',
'StyleRuleChangeEvent',
'StyleSheetChangeEvent',
'StyleSheetApplicableStateChangeEvent',

View File

@ -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),