mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Auto merge of #11610 - nox:dom3events, r=emilio
Fix all the links to the UI Events spec <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11610) <!-- Reviewable:end -->
This commit is contained in:
commit
573c0a7468
9 changed files with 24 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
/*
|
||||
* The origin of this IDL file is
|
||||
* https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-KeyboardEvent
|
||||
* https://w3c.github.io/uievents/#interface-keyboardevent
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -26,7 +26,7 @@ interface KeyboardEvent : UIEvent {
|
|||
boolean getModifierState (DOMString keyArg);
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-interface-KeyboardEvent-initializers
|
||||
// https://w3c.github.io/uievents/#idl-interface-KeyboardEvent-initializers
|
||||
partial interface KeyboardEvent {
|
||||
// Originally introduced (and deprecated) in DOM Level 3
|
||||
void initKeyboardEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg,
|
||||
|
@ -34,7 +34,7 @@ partial interface KeyboardEvent {
|
|||
boolean repeat, DOMString locale);
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#KeyboardEvent-supplemental-interface
|
||||
// https://w3c.github.io/uievents/#legacy-interface-KeyboardEvent
|
||||
partial interface KeyboardEvent {
|
||||
// The following support legacy user agents
|
||||
readonly attribute unsigned long charCode;
|
||||
|
@ -42,7 +42,7 @@ partial interface KeyboardEvent {
|
|||
readonly attribute unsigned long which;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#interface-KeyboardEvent
|
||||
// https://w3c.github.io/uievents/#dictdef-keyboardeventinit
|
||||
dictionary KeyboardEventInit : SharedKeyboardAndMouseEventInit {
|
||||
DOMString key = "";
|
||||
DOMString code = "";
|
||||
|
@ -51,7 +51,7 @@ dictionary KeyboardEventInit : SharedKeyboardAndMouseEventInit {
|
|||
boolean isComposing = false;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#events-KeyboardEventInit-supplemental
|
||||
// https://w3c.github.io/uievents/#legacy-dictionary-KeyboardEventInit
|
||||
/*partial dictionary KeyboardEventInit {
|
||||
unsigned long charCode = 0;
|
||||
unsigned long keyCode = 0;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-MouseEvent
|
||||
// https://w3c.github.io/uievents/#interface-mouseevent
|
||||
[Constructor(DOMString typeArg, optional MouseEventInit mouseEventInitDict)]
|
||||
interface MouseEvent : UIEvent {
|
||||
readonly attribute long screenX;
|
||||
|
@ -23,7 +23,7 @@ interface MouseEvent : UIEvent {
|
|||
readonly attribute long which;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-MouseEventInit
|
||||
// https://w3c.github.io/uievents/#dictdef-eventmodifierinit
|
||||
dictionary MouseEventInit : SharedKeyboardAndMouseEventInit {
|
||||
long screenX = 0;
|
||||
long screenY = 0;
|
||||
|
@ -34,7 +34,7 @@ dictionary MouseEventInit : SharedKeyboardAndMouseEventInit {
|
|||
EventTarget? relatedTarget = null;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-MouseEvent-1
|
||||
// https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers
|
||||
partial interface MouseEvent {
|
||||
// Deprecated in DOM Level 3
|
||||
void initMouseEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-SharedKeyboardAndMouseEventInit
|
||||
// https://w3c.github.io/uievents/#dictdef-eventmodifierinit
|
||||
dictionary SharedKeyboardAndMouseEventInit : UIEventInit {
|
||||
boolean ctrlKey = false;
|
||||
boolean shiftKey = false;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-UIEvent
|
||||
// https://w3c.github.io/uievents/#interface-uievent
|
||||
[Constructor(DOMString type, optional UIEventInit eventInitDict)]
|
||||
interface UIEvent : Event {
|
||||
// readonly attribute WindowProxy? view;
|
||||
|
@ -10,14 +10,14 @@ interface UIEvent : Event {
|
|||
readonly attribute long detail;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-UIEventInit
|
||||
// https://w3c.github.io/uievents/#dictdef-uieventinit-uieventinit
|
||||
dictionary UIEventInit : EventInit {
|
||||
// WindowProxy? view = null;
|
||||
Window? view = null;
|
||||
long detail = 0;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#idl-def-UIEvent-1
|
||||
// https://w3c.github.io/uievents/#idl-interface-UIEvent-initializers
|
||||
partial interface UIEvent {
|
||||
// Deprecated in DOM Level 3
|
||||
void initUIEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg, long detailArg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue