Skip to content
This repository has been archived by the owner on Mar 9, 2021. It is now read-only.

Commit

Permalink
Re-added XXEvent.initXXEvent methods (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-kallen committed Jan 18, 2014
1 parent ff4ed82 commit 6c1af85
Show file tree
Hide file tree
Showing 19 changed files with 53 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Generator/Generator/Converter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,6 @@ private bool ShouldBeIncluded(string name, string typeName, ParsedExtendedAttrib
if (name != null) {
if (name.StartsWith("Moz", StringComparison.OrdinalIgnoreCase) || name.StartsWith("onMoz", StringComparison.OrdinalIgnoreCase))
return false;
if (typeName != null && typeName.EndsWith("Event") && name == "init" + typeName)
return false; // Mozilla-specific deprecated UIEvent.initUIEvent
}
if (memberAttributes != null && memberAttributes.ChromeOnly)
return false;
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Data/WebStorage/StorageEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public StorageEvent(string type) {
public StorageEvent(string type, StorageEventInit eventInitDict) {
}

public void InitStorageEvent(string type, bool canBubble, bool cancelable, string key, string oldValue, string newValue, string url, Storage storageArea) {
}

[IntrinsicProperty]
public string Key {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/CloseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ public ushort Code {
}
}

public void InitCloseEvent(string type, bool canBubble, bool cancelable, bool wasClean, ushort code, string reason) {
}

[IntrinsicProperty]
public string Reason {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/CommandEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ public string Command {
return null;
}
}

public void InitCommandEvent(string type, bool canBubble, bool cancelable, string command) {
}
}
}
3 changes: 3 additions & 0 deletions Web/Generated/Html/CompositionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public string Data {
}
}

public void InitCompositionEvent(string typeArg, bool canBubbleArg, bool cancelableArg, WindowInstance viewArg, string dataArg, string localeArg) {
}

[IntrinsicProperty]
public string Locale {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/CustomEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ public object Detail {
return null;
}
}

public void InitCustomEvent(string type, bool canBubble, bool cancelable, object detail) {
}
}
}
3 changes: 3 additions & 0 deletions Web/Generated/Html/DragEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@ public DataTransfer DataTransfer {
return default(DataTransfer);
}
}

public void InitDragEvent(string type, bool canBubble, bool cancelable, WindowInstance aView, int aDetail, int aScreenX, int aScreenY, int aClientX, int aClientY, bool aCtrlKey, bool aAltKey, bool aShiftKey, bool aMetaKey, ushort aButton, EventTarget aRelatedTarget, DataTransfer aDataTransfer) {
}
}
}
3 changes: 3 additions & 0 deletions Web/Generated/Html/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ public bool GetPreventDefault() {
return false;
}

public void InitEvent(string type, bool bubbles, bool cancelable) {
}

[IntrinsicProperty]
public bool IsTrusted {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/HashChangeEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public HashChangeEvent(string type) {
public HashChangeEvent(string type, HashChangeEventInit eventInitDict) {
}

public void InitHashChangeEvent(string type, bool canBubble, bool cancelable, string oldURL, string newURL) {
}

[IntrinsicProperty]
public string NewURL {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/KeyboardEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,9 @@ public bool GetModifierState(string key) {
return false;
}

public void InitKeyEvent(string type, bool canBubble, bool cancelable, WindowInstance view, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, uint keyCode, uint charCode) {
}

[IntrinsicProperty]
public string Key {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/Mobile/DeviceMotionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public DeviceAcceleration AccelerationIncludingGravity {
}
}

public void InitDeviceMotionEvent(string type, bool canBubble, bool cancelable, DeviceAccelerationInit acceleration, DeviceAccelerationInit accelerationIncludingGravity, DeviceRotationRateInit rotationRate, double? interval) {
}

[IntrinsicProperty]
public double? Interval {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/Mobile/DeviceOrientationEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@ public double Gamma {
return 0;
}
}

public void InitDeviceOrientationEvent(string type, bool canBubble, bool cancelable, double alpha, double beta, double gamma, bool absolute) {
}
}
}
3 changes: 3 additions & 0 deletions Web/Generated/Html/MouseEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ public bool GetModifierState(string keyArg) {
return false;
}

public void InitMouseEvent(string typeArg, bool canBubbleArg, bool cancelableArg, WindowInstance viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, bool ctrlKeyArg, bool altKeyArg, bool shiftKeyArg, bool metaKeyArg, ushort buttonArg, EventTarget relatedTargetArg) {
}

[IntrinsicProperty]
public bool MetaKey {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/PageTransitionEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public PageTransitionEvent(string type) {
public PageTransitionEvent(string type, PageTransitionEventInit eventInitDict) {
}

public void InitPageTransitionEvent(string type, bool canBubble, bool cancelable, bool persisted) {
}

[IntrinsicProperty]
public bool Persisted {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/PopStateEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ public PopStateEvent(string type) {
public PopStateEvent(string type, PopStateEventInit eventInitDict) {
}

public void InitPopStateEvent(string type, bool canBubble, bool cancelable, object state) {
}

[IntrinsicProperty]
public object State {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/TimeEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public int Detail {
}
}

public void InitTimeEvent(string aType, WindowInstance aView, int aDetail) {
}

[IntrinsicProperty]
public WindowInstance View {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/TouchEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public bool CtrlKey {
}
}

public void InitTouchEvent(string type, bool canBubble, bool cancelable, WindowInstance view, int detail, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, TouchList touches, TouchList targetTouches, TouchList changedTouches) {
}

[IntrinsicProperty]
public bool MetaKey {
get {
Expand Down
3 changes: 3 additions & 0 deletions Web/Generated/Html/UIEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public int Detail {
}
}

public void InitUIEvent(string aType, bool aCanBubble, bool aCancelable, WindowInstance aView, int aDetail) {
}

[IntrinsicProperty]
public bool IsChar {
get {
Expand Down
2 changes: 2 additions & 0 deletions history.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Re-added XXEvent.initXXEvent methods (#10)

3.0.1
Use 2.0.0.0 as the assembly version to avoid versioning issues.

Expand Down

0 comments on commit 6c1af85

Please sign in to comment.