mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Remove Gecko-specific and other commented-out code in IDL.
This commit is contained in:
parent
da16e54243
commit
546a506149
39 changed files with 7 additions and 1117 deletions
|
@ -6,10 +6,6 @@
|
|||
* http://domparsing.spec.whatwg.org/#the-domparser-interface
|
||||
*/
|
||||
|
||||
/*interface Principal;
|
||||
interface URI;
|
||||
interface InputStream;*/
|
||||
|
||||
enum SupportedType {
|
||||
"text/html",
|
||||
"text/xml",
|
||||
|
@ -18,30 +14,8 @@ enum SupportedType {
|
|||
"image/svg+xml"
|
||||
};
|
||||
|
||||
// the latter is Mozilla-specific
|
||||
/*[Constructor,
|
||||
Constructor(Principal? prin, optional URI? documentURI = null,
|
||||
optional URI? baseURI = null)]*/
|
||||
[Constructor]
|
||||
interface DOMParser {
|
||||
[Creator, Throws]
|
||||
Document parseFromString(DOMString str, SupportedType type);
|
||||
|
||||
/* // Mozilla-specific stuff
|
||||
// Throws if the passed-in length is greater than the actual sequence length
|
||||
[Creator, Throws, ChromeOnly]
|
||||
Document parseFromBuffer(sequence<octet> buf, unsigned long bufLen,
|
||||
SupportedType type);
|
||||
// Throws if the passed-in length is greater than the actual typed array length
|
||||
[Creator, Throws, ChromeOnly]
|
||||
Document parseFromBuffer(Uint8Array buf, unsigned long bufLen,
|
||||
SupportedType type);
|
||||
[Creator, Throws, ChromeOnly]
|
||||
Document parseFromStream(InputStream stream, DOMString? charset,
|
||||
long contentLength, SupportedType type);
|
||||
[Throws, ChromeOnly]
|
||||
void init(optional Principal? principal = null,
|
||||
optional URI? documentURI = null,
|
||||
optional URI? baseURI = null);*/
|
||||
};
|
||||
|
||||
|
|
|
@ -14,9 +14,6 @@ interface DocumentType : Node {
|
|||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString publicId;
|
||||
readonly attribute DOMString systemId;
|
||||
|
||||
// Mozilla extension
|
||||
//readonly attribute DOMString? internalSubset;
|
||||
};
|
||||
|
||||
//DocumentType implements ChildNode;
|
||||
|
|
|
@ -55,29 +55,6 @@ interface Element : Node {
|
|||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
||||
HTMLCollection getElementsByClassName(DOMString classNames);
|
||||
|
||||
/**
|
||||
* The ratio of font-size-inflated text font size to computed font
|
||||
* size for this element. This will query the element for its primary frame,
|
||||
* and then use this to get font size inflation information about the frame.
|
||||
* This will be 1.0 if font size inflation is not enabled, and -1.0 if an
|
||||
* error occurred during the retrieval of the font size inflation.
|
||||
*
|
||||
* @note The font size inflation ratio that is returned is actually the
|
||||
* font size inflation data for the element's _primary frame_, not the
|
||||
* element itself, but for most purposes, this should be sufficient.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute float fontSizeInflation;*/
|
||||
|
||||
// Mozilla specific stuff
|
||||
|
||||
/*[SetterThrows,LenientThis]
|
||||
attribute EventHandler onmouseenter;
|
||||
[SetterThrows,LenientThis]
|
||||
attribute EventHandler onmouseleave;
|
||||
[SetterThrows]
|
||||
attribute EventHandler onwheel;*/
|
||||
|
||||
// Selectors API
|
||||
/**
|
||||
* Returns whether this element would be selected by the given selector
|
||||
|
@ -88,49 +65,6 @@ interface Element : Node {
|
|||
[Throws]
|
||||
boolean mozMatchesSelector(DOMString selector);
|
||||
|
||||
// Proprietary extensions
|
||||
/**
|
||||
* Set this during a mousedown event to grab and retarget all mouse events
|
||||
* to this element until the mouse button is released or releaseCapture is
|
||||
* called. If retargetToElement is true, then all events are targetted at
|
||||
* this element. If false, events can also fire at descendants of this
|
||||
* element.
|
||||
*
|
||||
*/
|
||||
void setCapture(optional boolean retargetToElement = false);
|
||||
|
||||
/**
|
||||
* If this element has captured the mouse, release the capture. If another
|
||||
* element has captured the mouse, this method has no effect.
|
||||
*/
|
||||
void releaseCapture();
|
||||
|
||||
// Mozilla extensions
|
||||
/**
|
||||
* Requests that this element be made the full-screen element, as per the DOM
|
||||
* full-screen api.
|
||||
*
|
||||
* @see <https://wiki.mozilla.org/index.php?title=Gecko:FullScreenAPI>
|
||||
*/
|
||||
void mozRequestFullScreen();
|
||||
|
||||
/**
|
||||
* Requests that this element be made the pointer-locked element, as per the DOM
|
||||
* pointer lock api.
|
||||
*
|
||||
* @see <http://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html>
|
||||
*/
|
||||
void mozRequestPointerLock();
|
||||
|
||||
// Obsolete methods.
|
||||
/*Attr? getAttributeNode(DOMString name);
|
||||
[Throws]
|
||||
Attr? setAttributeNode(Attr newAttr);
|
||||
[Throws]
|
||||
Attr? removeAttributeNode(Attr oldAttr);
|
||||
Attr? getAttributeNodeNS(DOMString? namespaceURI, DOMString localName);
|
||||
[Throws]
|
||||
Attr? setAttributeNodeNS(Attr newAttr);*/
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-element-interface
|
||||
|
@ -150,23 +84,8 @@ partial interface Element {
|
|||
readonly attribute long clientLeft;
|
||||
readonly attribute long clientWidth;
|
||||
readonly attribute long clientHeight;
|
||||
|
||||
// Mozilla specific stuff
|
||||
/* The maximum offset that the element can be scrolled to
|
||||
(i.e., the value that scrollLeft/scrollTop would be clamped to if they were
|
||||
set to arbitrarily large values. */
|
||||
/*readonly attribute long scrollTopMax;
|
||||
readonly attribute long scrollLeftMax;*/
|
||||
};
|
||||
|
||||
// http://dvcs.w3.org/hg/undomanager/raw-file/tip/undomanager.html
|
||||
/*partial interface Element {
|
||||
[Pref="dom.undo_manager.enabled"]
|
||||
readonly attribute UndoManager? undoManager;
|
||||
[SetterThrows,Pref="dom.undo_manager.enabled"]
|
||||
attribute boolean undoScope;
|
||||
};*/
|
||||
|
||||
// http://domparsing.spec.whatwg.org/#extensions-to-the-element-interface
|
||||
partial interface Element {
|
||||
[Throws,TreatNullAs=EmptyString]
|
||||
|
|
|
@ -37,54 +37,6 @@ interface Event {
|
|||
void initEvent(DOMString type, boolean bubbles, boolean cancelable);
|
||||
};
|
||||
|
||||
/*// Mozilla specific legacy stuff.
|
||||
partial interface Event {
|
||||
const long MOUSEDOWN = 0x00000001;
|
||||
const long MOUSEUP = 0x00000002;
|
||||
const long MOUSEOVER = 0x00000004;
|
||||
const long MOUSEOUT = 0x00000008;
|
||||
const long MOUSEMOVE = 0x00000010;
|
||||
const long MOUSEDRAG = 0x00000020;
|
||||
const long CLICK = 0x00000040;
|
||||
const long DBLCLICK = 0x00000080;
|
||||
const long KEYDOWN = 0x00000100;
|
||||
const long KEYUP = 0x00000200;
|
||||
const long KEYPRESS = 0x00000400;
|
||||
const long DRAGDROP = 0x00000800;
|
||||
const long FOCUS = 0x00001000;
|
||||
const long BLUR = 0x00002000;
|
||||
const long SELECT = 0x00004000;
|
||||
const long CHANGE = 0x00008000;
|
||||
const long RESET = 0x00010000;
|
||||
const long SUBMIT = 0x00020000;
|
||||
const long SCROLL = 0x00040000;
|
||||
const long LOAD = 0x00080000;
|
||||
const long UNLOAD = 0x00100000;
|
||||
const long XFER_DONE = 0x00200000;
|
||||
const long ABORT = 0x00400000;
|
||||
const long ERROR = 0x00800000;
|
||||
const long LOCATE = 0x01000000;
|
||||
const long MOVE = 0x02000000;
|
||||
const long RESIZE = 0x04000000;
|
||||
const long FORWARD = 0x08000000;
|
||||
const long HELP = 0x10000000;
|
||||
const long BACK = 0x20000000;
|
||||
const long TEXT = 0x40000000;
|
||||
|
||||
const long ALT_MASK = 0x00000001;
|
||||
const long CONTROL_MASK = 0x00000002;
|
||||
const long SHIFT_MASK = 0x00000004;
|
||||
const long META_MASK = 0x00000008;
|
||||
|
||||
readonly attribute EventTarget? originalTarget;
|
||||
readonly attribute EventTarget? explicitOriginalTarget;
|
||||
[ChromeOnly] readonly attribute boolean multipleActionsPrevented;
|
||||
|
||||
void preventBubble();
|
||||
void preventCapture();
|
||||
boolean getPreventDefault();
|
||||
};*/
|
||||
|
||||
dictionary EventInit {
|
||||
boolean bubbles = false;
|
||||
boolean cancelable = false;
|
||||
|
|
|
@ -37,7 +37,3 @@ interface HTMLAppletElement : HTMLElement {
|
|||
[Pure, SetterThrows]
|
||||
attribute DOMString width;
|
||||
};
|
||||
|
||||
//HTMLAppletElement implements MozImageLoadingContent;
|
||||
//HTMLAppletElement implements MozFrameLoaderOwner;
|
||||
//HTMLAppletElement implements MozObjectLoadingContent;
|
||||
|
|
|
@ -11,27 +11,5 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
|
||||
|
||||
[NamedConstructor=Audio(optional DOMString src)]
|
||||
interface HTMLAudioElement : HTMLMediaElement {};
|
||||
|
||||
partial interface HTMLAudioElement
|
||||
{
|
||||
/*
|
||||
// Setup the audio stream for writing
|
||||
[Pref="media.audio_data.enabled", Throws]
|
||||
void mozSetup(unsigned long channels, unsigned long rate);
|
||||
|
||||
// Write audio to the audio stream
|
||||
[Pref="media.audio_data.enabled", Throws]
|
||||
unsigned long mozWriteAudio(Float32Array data);
|
||||
[Pref="media.audio_data.enabled", Throws]
|
||||
unsigned long mozWriteAudio(sequence<unrestricted float> data);
|
||||
|
||||
// Get the current offset (measured in samples since the start) of the audio
|
||||
// stream created using mozWriteAudio().
|
||||
[Pref="media.audio_data.enabled", Throws]
|
||||
unsigned long long mozCurrentSampleOffset();
|
||||
*/
|
||||
};
|
||||
|
|
|
@ -10,9 +10,6 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// FIXME: servo#707
|
||||
//interface HTMLFormElement;
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-button-element
|
||||
interface HTMLButtonElement : HTMLElement {
|
||||
[SetterThrows, Pure]
|
||||
|
@ -37,15 +34,10 @@ interface HTMLButtonElement : HTMLElement {
|
|||
attribute DOMString type;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString value;
|
||||
// Not yet implemented:
|
||||
// attribute HTMLMenuElement? menu;
|
||||
|
||||
readonly attribute boolean willValidate;
|
||||
readonly attribute ValidityState validity;
|
||||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
|
||||
// Not yet implemented:
|
||||
// readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -10,46 +10,9 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLCanvasElement.webidl
|
||||
|
||||
/*
|
||||
interface Blob;
|
||||
interface FileCallback;
|
||||
interface nsIInputStreamCallback;
|
||||
interface nsISupports;
|
||||
interface PrintCallback;
|
||||
interface Variant;
|
||||
*/
|
||||
|
||||
interface HTMLCanvasElement : HTMLElement {
|
||||
[Pure, SetterThrows]
|
||||
attribute unsigned long width;
|
||||
[Pure, SetterThrows]
|
||||
attribute unsigned long height;
|
||||
/*
|
||||
[Throws]
|
||||
nsISupports? getContext(DOMString contextId, optional any contextOptions = null);
|
||||
|
||||
[Throws]
|
||||
DOMString toDataURL(optional DOMString type = "",
|
||||
optional any encoderOptions);
|
||||
[Throws]
|
||||
void toBlob(FileCallback _callback,
|
||||
optional DOMString type = "",
|
||||
optional any encoderOptions);
|
||||
*/
|
||||
};
|
||||
/*
|
||||
// Mozilla specific bits
|
||||
partial interface HTMLCanvasElement {
|
||||
[Pure, SetterThrows]
|
||||
attribute boolean mozOpaque;
|
||||
[Throws]
|
||||
File mozGetAsFile(DOMString name, optional DOMString? type = null);
|
||||
[ChromeOnly, Throws]
|
||||
nsISupports? MozGetIPCContext(DOMString contextId);
|
||||
[ChromeOnly]
|
||||
void mozFetchAsStream(nsIInputStreamCallback callback, optional DOMString? type = null);
|
||||
attribute PrintCallback? mozPrintCallback;
|
||||
};
|
||||
*/
|
||||
|
|
|
@ -3,11 +3,8 @@
|
|||
* 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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://www.w3.org/TR/2012/WD-dom-20120105/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
* The origin of this IDL file is:
|
||||
* http://dom.spec.whatwg.org/#interface-htmlcollection
|
||||
*/
|
||||
|
||||
interface HTMLCollection {
|
||||
|
|
|
@ -16,22 +16,8 @@ interface HTMLElement : Element {
|
|||
// metadata attributes
|
||||
attribute DOMString title;
|
||||
attribute DOMString lang;
|
||||
// attribute boolean translate;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString dir;
|
||||
/*[Constant]
|
||||
readonly attribute DOMStringMap dataset;*/
|
||||
|
||||
// microdata
|
||||
/*[SetterThrows, Pure]
|
||||
attribute boolean itemScope;
|
||||
[PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemType;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString itemId;
|
||||
[PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemRef;
|
||||
[PutForwards=value,Constant] readonly attribute DOMSettableTokenList itemProp;*/
|
||||
/*[Constant]
|
||||
readonly attribute HTMLPropertiesCollection properties;*/
|
||||
[Throws]
|
||||
attribute any itemValue;
|
||||
|
||||
|
@ -51,40 +37,16 @@ interface HTMLElement : Element {
|
|||
readonly attribute DOMString accessKeyLabel;
|
||||
[SetterThrows, Pure]
|
||||
attribute boolean draggable;
|
||||
//[PutForwards=value] readonly attribute DOMSettableTokenList dropzone;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString contentEditable;
|
||||
[Pure]
|
||||
readonly attribute boolean isContentEditable;
|
||||
/*[Pure]
|
||||
readonly attribute HTMLMenuElement? contextMenu;*/
|
||||
//[SetterThrows]
|
||||
// attribute HTMLMenuElement? contextMenu;
|
||||
[SetterThrows, Pure]
|
||||
attribute boolean spellcheck;
|
||||
|
||||
// command API
|
||||
//readonly attribute DOMString? commandType;
|
||||
//readonly attribute DOMString? commandLabel;
|
||||
//readonly attribute DOMString? commandIcon;
|
||||
//readonly attribute boolean? commandHidden;
|
||||
//readonly attribute boolean? commandDisabled;
|
||||
//readonly attribute boolean? commandChecked;
|
||||
|
||||
// styling
|
||||
/*[PutForwards=cssText, Constant]
|
||||
readonly attribute CSSStyleDeclaration style;*/
|
||||
|
||||
// Mozilla specific stuff
|
||||
// FIXME Bug 810677 Move className from HTMLElement to Element
|
||||
attribute DOMString className;
|
||||
|
||||
/*[SetterThrows]
|
||||
attribute EventHandler oncopy;
|
||||
[SetterThrows]
|
||||
attribute EventHandler oncut;
|
||||
[SetterThrows]
|
||||
attribute EventHandler onpaste;*/
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom-view/#extensions-to-the-htmlelement-interface
|
||||
|
@ -96,23 +58,3 @@ partial interface HTMLElement {
|
|||
readonly attribute long offsetWidth;
|
||||
readonly attribute long offsetHeight;
|
||||
};
|
||||
|
||||
/*[NoInterfaceObject]
|
||||
interface TouchEventHandlers {
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchstart;
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchend;
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchmove;
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchenter;
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchleave;
|
||||
[SetterThrows,Func="nsGenericHTMLElement::TouchEventsEnabled"]
|
||||
attribute EventHandler ontouchcancel;
|
||||
};*/
|
||||
|
||||
/*HTMLElement implements GlobalEventHandlers;
|
||||
HTMLElement implements NodeEventHandlers;
|
||||
HTMLElement implements TouchEventHandlers;*/
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
*/
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-embed-element
|
||||
[NeedNewResolve]
|
||||
interface HTMLEmbedElement : HTMLElement {
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString src;
|
||||
|
@ -23,8 +22,6 @@ interface HTMLEmbedElement : HTMLElement {
|
|||
attribute DOMString width;
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString height;
|
||||
//[Throws]
|
||||
//legacycaller any (any... arguments);
|
||||
};
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLEmbedElement-partial
|
||||
|
@ -39,7 +36,3 @@ partial interface HTMLEmbedElement {
|
|||
// GetSVGDocument
|
||||
Document? getSVGDocument();
|
||||
};
|
||||
|
||||
//HTMLEmbedElement implements MozImageLoadingContent;
|
||||
//HTMLEmbedElement implements MozFrameLoaderOwner;
|
||||
//HTMLEmbedElement implements MozObjectLoadingContent;
|
||||
|
|
|
@ -38,8 +38,6 @@ interface HTMLFormElement : HTMLElement {
|
|||
readonly attribute long length;
|
||||
|
||||
getter Element (unsigned long index);
|
||||
// TODO this should be: getter (RadioNodeList or HTMLInputElement or HTMLImageElement) (DOMString name);
|
||||
// getter nsISupports (DOMString name);
|
||||
|
||||
[Throws]
|
||||
void submit();
|
||||
|
|
|
@ -30,5 +30,3 @@ interface HTMLFrameElement : HTMLElement {
|
|||
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginHeight;
|
||||
[TreatNullAs=EmptyString, SetterThrows] attribute DOMString marginWidth;
|
||||
};
|
||||
|
||||
//HTMLFrameElement implements MozFrameLoaderOwner;
|
||||
|
|
|
@ -18,10 +18,8 @@ interface HTMLIFrameElement : HTMLElement {
|
|||
attribute DOMString srcdoc;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString name;
|
||||
// [PutForwards=value] readonly attribute DOMSettableTokenList sandbox;
|
||||
// We're implementing sandbox as a string for now, see bug 845057.
|
||||
attribute DOMString sandbox;
|
||||
// attribute boolean seamless;
|
||||
[SetterThrows, Pure]
|
||||
attribute boolean allowFullscreen;
|
||||
[SetterThrows, Pure]
|
||||
|
@ -51,17 +49,3 @@ partial interface HTMLIFrameElement {
|
|||
// GetSVGDocument
|
||||
Document? getSVGDocument();
|
||||
};
|
||||
|
||||
/*partial interface HTMLIFrameElement {
|
||||
// nsIDOMMozBrowserFrame
|
||||
[ChromeOnly,SetterThrows]
|
||||
attribute boolean mozbrowser;
|
||||
};
|
||||
|
||||
partial interface HTMLIFrameElement {
|
||||
// nsIMozBrowserFrame
|
||||
[ChromeOnly]
|
||||
readonly attribute DOMString appManifestURL;
|
||||
};
|
||||
|
||||
HTMLIFrameElement implements MozFrameLoaderOwner;*/
|
||||
|
|
|
@ -17,7 +17,6 @@ interface HTMLImageElement : HTMLElement {
|
|||
attribute DOMString alt;
|
||||
[SetterThrows]
|
||||
attribute DOMString src;
|
||||
// attribute DOMString srcset;
|
||||
[SetterThrows]
|
||||
attribute DOMString crossOrigin;
|
||||
[SetterThrows]
|
||||
|
|
|
@ -12,13 +12,6 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// original import from:
|
||||
// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLInputElement.webidl
|
||||
|
||||
/*
|
||||
interface nsIControllers;
|
||||
*/
|
||||
|
||||
interface HTMLInputElement : HTMLElement {
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString accept;
|
||||
|
@ -32,16 +25,8 @@ interface HTMLInputElement : HTMLElement {
|
|||
attribute boolean defaultChecked;
|
||||
[Pure]
|
||||
attribute boolean checked;
|
||||
/*
|
||||
attribute DOMString dirName;
|
||||
*/
|
||||
[Pure, SetterThrows]
|
||||
attribute boolean disabled;
|
||||
/*
|
||||
readonly attribute HTMLFormElement? form;
|
||||
[Pure]
|
||||
readonly attribute FileList? files;
|
||||
*/
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString formAction;
|
||||
[Pure, SetterThrows]
|
||||
|
@ -58,10 +43,6 @@ interface HTMLInputElement : HTMLElement {
|
|||
attribute boolean indeterminate;
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString inputMode;
|
||||
/*
|
||||
[Pure]
|
||||
readonly attribute HTMLElement? list;
|
||||
*/
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString max;
|
||||
[Pure, SetterThrows]
|
||||
|
@ -92,35 +73,15 @@ interface HTMLInputElement : HTMLElement {
|
|||
attribute DOMString defaultValue;
|
||||
[Pure, TreatNullAs=EmptyString, SetterThrows]
|
||||
attribute DOMString value;
|
||||
/*
|
||||
[Throws, Pref="dom.experimental_forms"]
|
||||
attribute Date? valueAsDate;
|
||||
[Pure, SetterThrows]
|
||||
attribute unrestricted double valueAsNumber;
|
||||
*/
|
||||
attribute unsigned long width;
|
||||
/*
|
||||
[Throws]
|
||||
void stepUp(optional long n = 1);
|
||||
[Throws]
|
||||
void stepDown(optional long n = 1);
|
||||
*/
|
||||
|
||||
[Pure]
|
||||
readonly attribute boolean willValidate;
|
||||
/*
|
||||
[Pure]
|
||||
readonly attribute ValidityState validity;
|
||||
*/
|
||||
[GetterThrows]
|
||||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
|
||||
/*
|
||||
readonly attribute NodeList labels;
|
||||
*/
|
||||
|
||||
void select();
|
||||
|
||||
[Throws]
|
||||
|
@ -130,10 +91,6 @@ interface HTMLInputElement : HTMLElement {
|
|||
attribute long selectionEnd;
|
||||
[Throws]
|
||||
attribute DOMString selectionDirection;
|
||||
/*
|
||||
// Bug 850364 void setRangeText(DOMString replacement);
|
||||
// Bug 850364 setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode);
|
||||
*/
|
||||
// also has obsolete members
|
||||
};
|
||||
|
||||
|
@ -143,47 +100,3 @@ partial interface HTMLInputElement {
|
|||
[Pure, SetterThrows]
|
||||
attribute DOMString useMap;
|
||||
};
|
||||
|
||||
/*
|
||||
// Mozilla extensions
|
||||
partial interface HTMLInputElement {
|
||||
[Throws]
|
||||
void setSelectionRange(long start, long end, optional DOMString direction);
|
||||
|
||||
[GetterThrows]
|
||||
readonly attribute nsIControllers controllers;
|
||||
[GetterThrows]
|
||||
readonly attribute long textLength;
|
||||
|
||||
[ChromeOnly]
|
||||
sequence<DOMString> mozGetFileNameArray();
|
||||
|
||||
[ChromeOnly]
|
||||
void mozSetFileNameArray(sequence<DOMString> fileNames);
|
||||
|
||||
boolean mozIsTextField(boolean aExcludePassword);
|
||||
};
|
||||
|
||||
partial interface HTMLInputElement {
|
||||
// Mirrored chrome-only nsIDOMNSEditableElement methods. Please make sure
|
||||
// to update this list if nsIDOMNSEditableElement changes.
|
||||
|
||||
[Pure, ChromeOnly]
|
||||
readonly attribute nsIEditor? editor;
|
||||
|
||||
// This is similar to set .value on nsIDOMInput/TextAreaElements, but handling
|
||||
// of the value change is closer to the normal user input, so 'change' event
|
||||
// for example will be dispatched when focusing out the element.
|
||||
[ChromeOnly]
|
||||
void setUserInput(DOMString input);
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface MozPhonetic {
|
||||
[Pure, ChromeOnly]
|
||||
readonly attribute DOMString phonetic;
|
||||
};
|
||||
|
||||
HTMLInputElement implements MozImageLoadingContent;
|
||||
HTMLInputElement implements MozPhonetic;
|
||||
*/
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// original import from
|
||||
// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLLIElement.webidl
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-li-element
|
||||
interface HTMLLIElement : HTMLElement {
|
||||
[SetterThrows, Pure]
|
||||
|
|
|
@ -14,11 +14,5 @@
|
|||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
|
||||
|
||||
interface HTMLLabelElement : HTMLElement {
|
||||
/* FIXME:
|
||||
readonly attribute HTMLFormElement? form;
|
||||
*/
|
||||
attribute DOMString htmlFor;
|
||||
/*
|
||||
readonly attribute HTMLElement? control;
|
||||
*/
|
||||
};
|
||||
|
|
|
@ -12,14 +12,8 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-legend-element
|
||||
interface HTMLLegendElement : HTMLElement {
|
||||
/*
|
||||
FIXME:
|
||||
readonly attribute HTMLFormElement? form;
|
||||
*/
|
||||
};
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#other-elements,-attributes-and-apis
|
||||
|
|
|
@ -21,16 +21,12 @@ interface HTMLLinkElement : HTMLElement {
|
|||
attribute DOMString crossOrigin;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString rel;
|
||||
// Not supported yet:
|
||||
// readonly attribute DOMTokenList relList;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString media;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString hreflang;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString type;
|
||||
// Not supported yet:
|
||||
// [PutForwards=value] readonly attribute DOMSettableTokenList sizes;
|
||||
};
|
||||
|
||||
// TODO
|
||||
|
|
|
@ -16,6 +16,4 @@ interface HTMLMapElement : HTMLElement {
|
|||
attribute DOMString name;
|
||||
[Constant]
|
||||
readonly attribute HTMLCollection areas;
|
||||
// Not supported yet.
|
||||
//readonly attribute HTMLCollection images;
|
||||
};
|
||||
|
|
|
@ -12,10 +12,6 @@
|
|||
*/
|
||||
|
||||
interface HTMLMediaElement : HTMLElement {
|
||||
/*
|
||||
// error state
|
||||
readonly attribute MediaError? error;
|
||||
*/
|
||||
// network state
|
||||
[SetterThrows]
|
||||
attribute DOMString src;
|
||||
|
@ -27,16 +23,8 @@ interface HTMLMediaElement : HTMLElement {
|
|||
const unsigned short NETWORK_IDLE = 1;
|
||||
const unsigned short NETWORK_LOADING = 2;
|
||||
const unsigned short NETWORK_NO_SOURCE = 3;
|
||||
/*
|
||||
TODO:
|
||||
readonly attribute unsigned short networkState;
|
||||
*/
|
||||
[SetterThrows]
|
||||
attribute DOMString preload;
|
||||
/*
|
||||
[Creator]
|
||||
readonly attribute TimeRanges buffered;
|
||||
*/
|
||||
void load();
|
||||
DOMString canPlayType(DOMString type);
|
||||
|
||||
|
@ -52,23 +40,11 @@ interface HTMLMediaElement : HTMLElement {
|
|||
// playback state
|
||||
[SetterThrows]
|
||||
attribute double currentTime;
|
||||
// TODO: Bug 847375 - void fastSeek(double time);
|
||||
/*
|
||||
TODO:
|
||||
readonly attribute unrestricted double duration;
|
||||
*/
|
||||
// TODO: Bug 847376 - readonly attribute any startDate;
|
||||
readonly attribute boolean paused;
|
||||
[SetterThrows]
|
||||
attribute double defaultPlaybackRate;
|
||||
[SetterThrows]
|
||||
attribute double playbackRate;
|
||||
/*
|
||||
[Creator]
|
||||
readonly attribute TimeRanges played;
|
||||
[Creator]
|
||||
readonly attribute TimeRanges seekable;
|
||||
*/
|
||||
readonly attribute boolean ended;
|
||||
[SetterThrows]
|
||||
attribute boolean autoplay;
|
||||
|
@ -79,11 +55,6 @@ interface HTMLMediaElement : HTMLElement {
|
|||
[Throws]
|
||||
void pause();
|
||||
|
||||
// TODO: Bug 847377 - mediaGroup and MediaController
|
||||
// media controller
|
||||
// attribute DOMString mediaGroup;
|
||||
// attribute MediaController? controller;
|
||||
|
||||
// controls
|
||||
[SetterThrows]
|
||||
attribute boolean controls;
|
||||
|
@ -93,96 +64,4 @@ interface HTMLMediaElement : HTMLElement {
|
|||
[SetterThrows]
|
||||
attribute boolean defaultMuted;
|
||||
|
||||
// TODO: Bug 847379
|
||||
// tracks
|
||||
//readonly attribute AudioTrackList audioTracks;
|
||||
//readonly attribute VideoTrackList videoTracks;
|
||||
/*
|
||||
[Pref="media.webvtt.enabled"]
|
||||
readonly attribute TextTrackList textTracks;
|
||||
[Pref="media.webvtt.enabled"]
|
||||
TextTrack addTextTrack(TextTrackKind kind,
|
||||
optional DOMString label = "",
|
||||
optional DOMString language = "");
|
||||
*/
|
||||
};
|
||||
|
||||
/*
|
||||
// Mozilla extensions:
|
||||
partial interface HTMLMediaElement {
|
||||
attribute MediaStream? mozSrcObject;
|
||||
attribute boolean mozPreservesPitch;
|
||||
readonly attribute boolean mozAutoplayEnabled;
|
||||
|
||||
// Mozilla extension: stream capture
|
||||
[Throws]
|
||||
MediaStream mozCaptureStream();
|
||||
[Throws]
|
||||
MediaStream mozCaptureStreamUntilEnded();
|
||||
readonly attribute boolean mozAudioCaptured;
|
||||
|
||||
// Mozilla extension: extra stream metadata information, used as part
|
||||
// of MozAudioAvailable events and the mozWriteAudio() method. The
|
||||
// mozFrameBufferLength method allows for the size of the framebuffer
|
||||
// used within MozAudioAvailable events to be changed. The new size must
|
||||
// be between 512 and 16384. The default size, for a media element with
|
||||
// audio is (mozChannels * 1024).
|
||||
[GetterThrows]
|
||||
readonly attribute unsigned long mozChannels;
|
||||
[GetterThrows]
|
||||
readonly attribute unsigned long mozSampleRate;
|
||||
[Throws]
|
||||
attribute unsigned long mozFrameBufferLength;
|
||||
|
||||
// Mozilla extension: return embedded metadata from the stream as a
|
||||
// JSObject with key:value pairs for each tag. This can be used by
|
||||
// player interfaces to display the song title, artist, etc.
|
||||
[Throws]
|
||||
object? mozGetMetadata();
|
||||
|
||||
// Mozilla extension: provides access to the fragment end time if
|
||||
// the media element has a fragment URI for the currentSrc, otherwise
|
||||
// it is equal to the media duration.
|
||||
readonly attribute double mozFragmentEnd;
|
||||
|
||||
// Mozilla extension: an audio channel type for media elements.
|
||||
// An exception is thrown if the app tries to change the audio channel type
|
||||
// without the permission (manifest file for B2G apps).
|
||||
// The supported values are:
|
||||
// * normal (default value)
|
||||
// Automatically paused if "notification" or higher priority channel
|
||||
// is played
|
||||
// Use case: normal applications
|
||||
// * content
|
||||
// Automatically paused if "notification" or higher priority channel
|
||||
// is played. Also paused if another app starts using "content"
|
||||
// channel. Using this channel never affects applications using
|
||||
// the "normal" channel.
|
||||
// Use case: video/audio players
|
||||
// * notification
|
||||
// Automatically paused if "alarm" or higher priority channel is played.
|
||||
// Use case: New email, incoming SMS
|
||||
// * alarm
|
||||
// Automatically paused if "telephony" or higher priority channel is
|
||||
// played.
|
||||
// User case: Alarm clock, calendar alarms
|
||||
// * telephony
|
||||
// Automatically paused if "ringer" or higher priority
|
||||
// channel is played.
|
||||
// Use case: dialer, voip
|
||||
// * ringer
|
||||
// Automatically paused if "publicnotification" or higher priority
|
||||
// channel is played.
|
||||
// Use case: dialer, voip
|
||||
// * publicnotification
|
||||
// Always plays in speaker, even when headphones are plugged in.
|
||||
// Use case: Camera shutter sound.
|
||||
[SetterThrows]
|
||||
attribute DOMString mozAudioChannelType;
|
||||
|
||||
// In addition the media element has this new events:
|
||||
// * onmozinterruptbegin - called when the media element is interrupted
|
||||
// because of the audiochannel manager.
|
||||
// * onmozinterruptend - called when the interruption is concluded
|
||||
};
|
||||
*/
|
||||
|
|
|
@ -25,9 +25,4 @@ interface HTMLMeterElement : HTMLElement {
|
|||
attribute double high;
|
||||
[SetterThrows]
|
||||
attribute double optimum;
|
||||
|
||||
/**
|
||||
* The labels attribute will be done with bug 556743.
|
||||
*/
|
||||
//readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -19,7 +19,6 @@ interface HTMLObjectElement : HTMLElement {
|
|||
attribute DOMString data;
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString type;
|
||||
// attribute boolean typeMustMatch;
|
||||
[Pure, SetterThrows]
|
||||
attribute DOMString name;
|
||||
[Pure, SetterThrows]
|
||||
|
@ -40,9 +39,6 @@ interface HTMLObjectElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
|
||||
/*[Throws]
|
||||
legacycaller any (any... arguments);*/
|
||||
};
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#HTMLObjectElement-partial
|
||||
|
@ -74,128 +70,3 @@ partial interface HTMLObjectElement {
|
|||
// GetSVGDocument
|
||||
Document? getSVGDocument();
|
||||
};
|
||||
|
||||
/*[NoInterfaceObject]
|
||||
interface MozObjectLoadingContent {
|
||||
// Mirrored chrome-only scriptable nsIObjectLoadingContent methods. Please
|
||||
// make sure to update this list if nsIObjectLoadingContent changes. Also,
|
||||
// make sure everything on here is [ChromeOnly].
|
||||
[ChromeOnly]
|
||||
const unsigned long TYPE_LOADING = 0;
|
||||
[ChromeOnly]
|
||||
const unsigned long TYPE_IMAGE = 1;
|
||||
[ChromeOnly]
|
||||
const unsigned long TYPE_PLUGIN = 2;
|
||||
[ChromeOnly]
|
||||
const unsigned long TYPE_DOCUMENT = 3;
|
||||
[ChromeOnly]
|
||||
const unsigned long TYPE_NULL = 4;
|
||||
|
||||
// The content type is not supported (e.g. plugin not installed)
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_UNSUPPORTED = 0;
|
||||
// Showing alternate content
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_ALTERNATE = 1;
|
||||
// The plugin exists, but is disabled
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_DISABLED = 2;
|
||||
// The plugin is blocklisted and disabled
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_BLOCKLISTED = 3;
|
||||
// The plugin is considered outdated, but not disabled
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_OUTDATED = 4;
|
||||
// The plugin has crashed
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_CRASHED = 5;
|
||||
// Suppressed by security policy
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_SUPPRESSED = 6;
|
||||
// Blocked by content policy
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_USER_DISABLED = 7;
|
||||
/// ** All values >= PLUGIN_CLICK_TO_PLAY are plugin placeholder types that
|
||||
/// would be replaced by a real plugin if activated (playPlugin())
|
||||
/// ** Furthermore, values >= PLUGIN_CLICK_TO_PLAY and
|
||||
/// <= PLUGIN_VULNERABLE_NO_UPDATE are click-to-play types.
|
||||
// The plugin is disabled until the user clicks on it
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_CLICK_TO_PLAY = 8;
|
||||
// The plugin is vulnerable (update available)
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_VULNERABLE_UPDATABLE = 9;
|
||||
// The plugin is vulnerable (no update available)
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_VULNERABLE_NO_UPDATE = 10;
|
||||
// The plugin is in play preview mode
|
||||
[ChromeOnly]
|
||||
const unsigned long PLUGIN_PLAY_PREVIEW = 11;*/
|
||||
|
||||
/**
|
||||
* The actual mime type (the one we got back from the network
|
||||
* request) for the element.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute DOMString actualType;*/
|
||||
|
||||
/**
|
||||
* Gets the type of the content that's currently loaded. See
|
||||
* the constants above for the list of possible values.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute unsigned long displayedType;*/
|
||||
|
||||
/**
|
||||
* Gets the content type that corresponds to the give MIME type. See the
|
||||
* constants above for the list of possible values. If nothing else fits,
|
||||
* TYPE_NULL will be returned.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
unsigned long getContentTypeForMIMEType(DOMString aMimeType);*/
|
||||
|
||||
/**
|
||||
* This method will play a plugin that has been stopped by the
|
||||
* click-to-play plugins or play-preview features.
|
||||
*/
|
||||
/*[ChromeOnly, Throws]
|
||||
void playPlugin();*/
|
||||
|
||||
/**
|
||||
* This attribute will return true if the current content type has been
|
||||
* activated, either explicitly or by passing checks that would have it be
|
||||
* click-to-play or play-preview.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute boolean activated;*/
|
||||
|
||||
/**
|
||||
* The URL of the data/src loaded in the object. This may be null (i.e.
|
||||
* an <embed> with no src).
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute URI? srcURI;
|
||||
|
||||
[ChromeOnly]
|
||||
readonly attribute unsigned long defaultFallbackType;
|
||||
|
||||
[ChromeOnly]
|
||||
readonly attribute unsigned long pluginFallbackType;*/
|
||||
|
||||
/**
|
||||
* If this object currently owns a running plugin, regardless of whether or
|
||||
* not one is pending spawn/despawn.
|
||||
*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute boolean hasRunningPlugin;*/
|
||||
|
||||
/**
|
||||
* This method will disable the play-preview plugin state.
|
||||
*/
|
||||
/*[ChromeOnly, Throws]
|
||||
void cancelPlayPreview();*/
|
||||
//};
|
||||
|
||||
/*HTMLObjectElement implements MozImageLoadingContent;
|
||||
HTMLObjectElement implements MozFrameLoaderOwner;
|
||||
HTMLObjectElement implements MozObjectLoadingContent;*/
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-output-element
|
||||
interface HTMLOutputElement : HTMLElement {
|
||||
/*[PutForwards=value, Constant]
|
||||
readonly attribute DOMSettableTokenList htmlFor;*/
|
||||
readonly attribute HTMLFormElement? form;
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString name;
|
||||
|
@ -31,7 +29,4 @@ interface HTMLOutputElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
|
||||
// Not yet implemented (bug 556743).
|
||||
// readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -11,17 +11,10 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// original import from:
|
||||
// http://hg.mozilla.org/mozilla-central/filelog/8c240c67f76c/dom/webidl/HTMLProgressElement.webidl
|
||||
|
||||
interface HTMLProgressElement : HTMLElement {
|
||||
[SetterThrows]
|
||||
attribute double value;
|
||||
[SetterThrows]
|
||||
attribute double max;
|
||||
readonly attribute double position;
|
||||
|
||||
/*
|
||||
readonly attribute NodeList labels;
|
||||
*/
|
||||
};
|
||||
|
|
|
@ -26,8 +26,6 @@ interface HTMLSelectElement : HTMLElement {
|
|||
[Pure]
|
||||
readonly attribute DOMString type;
|
||||
|
||||
/*[Constant]
|
||||
readonly attribute HTMLOptionsCollection options;*/
|
||||
[SetterThrows, Pure]
|
||||
attribute unsigned long length;
|
||||
getter Element? item(unsigned long index);
|
||||
|
@ -38,7 +36,6 @@ interface HTMLSelectElement : HTMLElement {
|
|||
[Throws]
|
||||
setter creator void (unsigned long index, HTMLOptionElement? option);
|
||||
|
||||
// NYI: readonly attribute HTMLCollection selectedOptions;
|
||||
[SetterThrows, Pure]
|
||||
attribute long selectedIndex;
|
||||
[Pure]
|
||||
|
@ -50,8 +47,6 @@ interface HTMLSelectElement : HTMLElement {
|
|||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
|
||||
// NYI: readonly attribute NodeList labels;
|
||||
|
||||
// https://www.w3.org/Bugs/Public/show_bug.cgi?id=20720
|
||||
void remove();
|
||||
};
|
||||
|
|
|
@ -16,9 +16,6 @@ interface HTMLTableCellElement : HTMLElement {
|
|||
attribute unsigned long colSpan;
|
||||
[SetterThrows]
|
||||
attribute unsigned long rowSpan;
|
||||
/*
|
||||
[PutForwards=value] readonly attribute DOMSettableTokenList headers;
|
||||
*/
|
||||
[SetterThrows]
|
||||
attribute DOMString headers;
|
||||
readonly attribute long cellIndex;
|
||||
|
|
|
@ -12,30 +12,9 @@
|
|||
*/
|
||||
|
||||
interface HTMLTableElement : HTMLElement {
|
||||
/*
|
||||
attribute HTMLTableCaptionElement? caption;
|
||||
HTMLElement createCaption();
|
||||
*/
|
||||
void deleteCaption();
|
||||
/*
|
||||
[SetterThrows]
|
||||
attribute HTMLTableSectionElement? tHead;
|
||||
HTMLElement createTHead();
|
||||
*/
|
||||
void deleteTHead();
|
||||
/*
|
||||
[SetterThrows]
|
||||
attribute HTMLTableSectionElement? tFoot;
|
||||
HTMLElement createTFoot();
|
||||
*/
|
||||
void deleteTFoot();
|
||||
/*
|
||||
readonly attribute HTMLCollection tBodies;
|
||||
HTMLElement createTBody();
|
||||
readonly attribute HTMLCollection rows;
|
||||
[Throws]
|
||||
HTMLElement insertRow(optional long index = -1);
|
||||
*/
|
||||
[Throws]
|
||||
void deleteRow(long index);
|
||||
attribute boolean sortable;
|
||||
|
|
|
@ -13,10 +13,4 @@
|
|||
*/
|
||||
|
||||
interface HTMLTableHeaderCellElement : HTMLTableCellElement {
|
||||
/* TODO:
|
||||
attribute DOMString scope;
|
||||
attribute DOMString abbr;
|
||||
attribute DOMString sorted;
|
||||
void sort();
|
||||
*/
|
||||
};
|
||||
|
|
|
@ -14,11 +14,6 @@
|
|||
interface HTMLTableRowElement : HTMLElement {
|
||||
readonly attribute long rowIndex;
|
||||
readonly attribute long sectionRowIndex;
|
||||
/*
|
||||
readonly attribute HTMLCollection cells;
|
||||
[Throws]
|
||||
HTMLElement insertCell(optional long index = -1);
|
||||
*/
|
||||
[Throws]
|
||||
void deleteCell(long index);
|
||||
};
|
||||
|
|
|
@ -12,11 +12,6 @@
|
|||
*/
|
||||
|
||||
interface HTMLTableSectionElement : HTMLElement {
|
||||
/*
|
||||
readonly attribute HTMLCollection rows;
|
||||
[Throws]
|
||||
HTMLElement insertRow(optional long index = -1);
|
||||
*/
|
||||
[Throws]
|
||||
void deleteRow(long index);
|
||||
};
|
||||
|
|
|
@ -9,11 +9,6 @@
|
|||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLTemplateElement.webidl
|
||||
|
||||
interface HTMLTemplateElement : HTMLElement {
|
||||
/* FIXME:
|
||||
readonly attribute DocumentFragment content;
|
||||
*/
|
||||
};
|
||||
|
||||
|
|
|
@ -10,24 +10,14 @@
|
|||
* Opera Software ASA. You are granted a license to use, reproduce
|
||||
* and create derivative works of this document.
|
||||
*/
|
||||
/*
|
||||
interface nsIEditor;
|
||||
interface MozControllers;
|
||||
*/
|
||||
|
||||
interface HTMLTextAreaElement : HTMLElement {
|
||||
// attribute DOMString autocomplete;
|
||||
[SetterThrows, Pure]
|
||||
attribute boolean autofocus;
|
||||
[SetterThrows, Pure]
|
||||
attribute unsigned long cols;
|
||||
// attribute DOMString dirName;
|
||||
[SetterThrows, Pure]
|
||||
attribute boolean disabled;
|
||||
/*
|
||||
[Pure]
|
||||
readonly attribute HTMLFormElement? form;
|
||||
*/
|
||||
// attribute DOMString inputMode;
|
||||
[SetterThrows, Pure]
|
||||
attribute long maxLength;
|
||||
[SetterThrows, Pure]
|
||||
|
@ -51,15 +41,9 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||
readonly attribute unsigned long textLength;
|
||||
|
||||
readonly attribute boolean willValidate;
|
||||
/*
|
||||
readonly attribute ValidityState validity;
|
||||
*/
|
||||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
/*
|
||||
readonly attribute NodeList labels;
|
||||
*/
|
||||
void select();
|
||||
[Throws]
|
||||
attribute unsigned long selectionStart;
|
||||
|
@ -68,34 +52,4 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||
[Throws]
|
||||
attribute DOMString selectionDirection;
|
||||
void setRangeText(DOMString replacement);
|
||||
/*
|
||||
void setRangeText(DOMString replacement, unsigned long start, unsigned long end, optional SelectionMode selectionMode);
|
||||
|
||||
[Throws]
|
||||
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
*/
|
||||
};
|
||||
/*
|
||||
partial interface HTMLTextAreaElement {
|
||||
// Mirrored chrome-only Mozilla extensions to nsIDOMHTMLTextAreaElement.
|
||||
// Please make sure to update this list of nsIDOMHTMLTextAreaElement changes.
|
||||
|
||||
[Throws, ChromeOnly]
|
||||
readonly attribute MozControllers controllers;
|
||||
};
|
||||
|
||||
partial interface HTMLTextAreaElement {
|
||||
// Mirrored chrome-only nsIDOMNSEditableElement methods. Please make sure
|
||||
// to update this list if nsIDOMNSEditableElement changes.
|
||||
|
||||
[ChromeOnly]
|
||||
readonly attribute nsIEditor? editor;
|
||||
|
||||
// This is similar to set .value on nsIDOMInput/TextAreaElements, but
|
||||
// handling of the value change is closer to the normal user input, so
|
||||
// 'change' event for example will be dispatched when focusing out the
|
||||
// element.
|
||||
[ChromeOnly]
|
||||
void setUserInput(DOMString input);
|
||||
};
|
||||
*/
|
||||
|
|
|
@ -7,11 +7,6 @@
|
|||
* http://www.whatwg.org/specs/web-apps/current-work/#the-track-element
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
|
||||
|
||||
/*
|
||||
[Pref="media.webvtt.enabled"]
|
||||
*/
|
||||
interface HTMLTrackElement : HTMLElement {
|
||||
[SetterThrows, Pure]
|
||||
attribute DOMString kind;
|
||||
|
|
|
@ -11,8 +11,6 @@
|
|||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
// import from http://mxr.mozilla.org/mozilla-central/source/dom/webidl/
|
||||
|
||||
interface HTMLVideoElement : HTMLMediaElement {
|
||||
[SetterThrows]
|
||||
attribute unsigned long width;
|
||||
|
@ -23,34 +21,3 @@ interface HTMLVideoElement : HTMLMediaElement {
|
|||
[SetterThrows]
|
||||
attribute DOMString poster;
|
||||
};
|
||||
/*
|
||||
partial interface HTMLVideoElement {
|
||||
// A count of the number of video frames that have demuxed from the media
|
||||
// resource. If we were playing perfectly, we'd be able to paint this many
|
||||
// frames.
|
||||
readonly attribute unsigned long mozParsedFrames;
|
||||
|
||||
// A count of the number of frames that have been decoded. We may drop
|
||||
// frames if the decode is taking too much time.
|
||||
readonly attribute unsigned long mozDecodedFrames;
|
||||
|
||||
// A count of the number of frames that have been presented to the rendering
|
||||
// pipeline. We may drop frames if they arrive late at the renderer.
|
||||
readonly attribute unsigned long mozPresentedFrames;
|
||||
|
||||
// Number of presented frames which were painted on screen.
|
||||
readonly attribute unsigned long mozPaintedFrames;
|
||||
|
||||
// Time which the last painted video frame was late by, in seconds.
|
||||
readonly attribute double mozFrameDelay;
|
||||
|
||||
// True if the video has an audio track available.
|
||||
readonly attribute boolean mozHasAudio;
|
||||
};
|
||||
|
||||
// https://dvcs.w3.org/hg/html-media/raw-file/default/media-source/media-source.html#idl-def-HTMLVideoElement
|
||||
partial interface HTMLVideoElement {
|
||||
[Pref="media.mediasource.enabled", Creator]
|
||||
VideoPlaybackQuality getVideoPlaybackQuality();
|
||||
};
|
||||
*/
|
||||
|
|
|
@ -6,22 +6,13 @@
|
|||
* The origin of this IDL file is
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#the-navigator-object
|
||||
* http://www.w3.org/TR/tracking-dnt/
|
||||
* http://www.w3.org/TR/geolocation-API/#geolocation_interface
|
||||
* http://www.w3.org/TR/battery-status/#navigatorbattery-interface
|
||||
* http://www.w3.org/TR/vibration/#vibration-interface
|
||||
* http://www.w3.org/2012/sysapps/runtime/#extension-to-the-navigator-interface-1
|
||||
* https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#navigator-interface-extension
|
||||
*
|
||||
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
||||
* Opera Software ASA. You are granted a license to use, reproduce
|
||||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
interface MozPowerManager;
|
||||
interface MozWakeLock;
|
||||
|
||||
// http://www.whatwg.org/specs/web-apps/current-work/#the-navigator-object
|
||||
[HeaderFile="Navigator.h", NeedNewResolve]
|
||||
interface Navigator {
|
||||
// objects implementing this interface also implement the interfaces given below
|
||||
};
|
||||
|
@ -57,86 +48,12 @@ interface NavigatorOnLine {
|
|||
readonly attribute boolean onLine;
|
||||
};
|
||||
|
||||
/*
|
||||
[NoInterfaceObject]
|
||||
interface NavigatorContentUtils {
|
||||
// content handler registration
|
||||
[Throws]
|
||||
void registerProtocolHandler(DOMString scheme, DOMString url, DOMString title);
|
||||
[Throws]
|
||||
void registerContentHandler(DOMString mimeType, DOMString url, DOMString title);
|
||||
// NOT IMPLEMENTED
|
||||
//DOMString isProtocolHandlerRegistered(DOMString scheme, DOMString url);
|
||||
//DOMString isContentHandlerRegistered(DOMString mimeType, DOMString url);
|
||||
//void unregisterProtocolHandler(DOMString scheme, DOMString url);
|
||||
//void unregisterContentHandler(DOMString mimeType, DOMString url);
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface NavigatorStorageUtils {
|
||||
// NOT IMPLEMENTED
|
||||
//void yieldForStorageUpdates();
|
||||
};
|
||||
|
||||
// Things that definitely need to be in the spec and and are not for some
|
||||
// reason. See https://www.w3.org/Bugs/Public/show_bug.cgi?id=22406
|
||||
partial interface Navigator {
|
||||
[Throws]
|
||||
readonly attribute MimeTypeArray mimeTypes;
|
||||
[Throws]
|
||||
readonly attribute PluginArray plugins;
|
||||
};
|
||||
*/
|
||||
|
||||
// http://www.w3.org/TR/tracking-dnt/ sort of
|
||||
partial interface Navigator {
|
||||
readonly attribute DOMString doNotTrack;
|
||||
};
|
||||
|
||||
/*
|
||||
// http://www.w3.org/TR/geolocation-API/#geolocation_interface
|
||||
[NoInterfaceObject]
|
||||
interface NavigatorGeolocation {
|
||||
[Throws, Pref="geo.enabled"]
|
||||
readonly attribute Geolocation geolocation;
|
||||
};
|
||||
Navigator implements NavigatorGeolocation;
|
||||
|
||||
// http://www.w3.org/TR/battery-status/#navigatorbattery-interface
|
||||
[NoInterfaceObject]
|
||||
interface NavigatorBattery {
|
||||
// XXXbz Per spec this should be non-nullable, but we return null in
|
||||
// torn-down windows. See bug 884925.
|
||||
[Throws, Func="Navigator::HasBatterySupport"]
|
||||
readonly attribute BatteryManager? battery;
|
||||
};
|
||||
Navigator implements NavigatorBattery;
|
||||
*/
|
||||
|
||||
/*
|
||||
// http://www.w3.org/TR/vibration/#vibration-interface
|
||||
partial interface Navigator {
|
||||
// We don't support sequences in unions yet
|
||||
//boolean vibrate ((unsigned long or sequence<unsigned long>) pattern);
|
||||
// XXXbz also, per spec we should be returning a boolean, and we just don't.
|
||||
// See bug 884935.
|
||||
[Throws]
|
||||
void vibrate(unsigned long duration);
|
||||
[Throws]
|
||||
void vibrate(sequence<unsigned long> pattern);
|
||||
};
|
||||
*/
|
||||
|
||||
// Mozilla-specific extensions
|
||||
|
||||
callback interface MozIdleObserver {
|
||||
// Time is in seconds and is read only when idle observers are added
|
||||
// and removed.
|
||||
readonly attribute unsigned long time;
|
||||
void onidle();
|
||||
void onactive();
|
||||
};
|
||||
|
||||
// nsIDOMNavigator
|
||||
partial interface Navigator {
|
||||
// WebKit/Blink/Trident/Presto support this (hardcoded "Mozilla").
|
||||
|
@ -154,192 +71,10 @@ partial interface Navigator {
|
|||
readonly attribute boolean cookieEnabled;
|
||||
[Throws]
|
||||
readonly attribute DOMString buildID;
|
||||
//[Throws, Func="Navigator::HasPowerSupport"]
|
||||
//readonly attribute MozPowerManager mozPower;
|
||||
|
||||
// WebKit/Blink/Trident/Presto support this.
|
||||
[Throws]
|
||||
boolean javaEnabled();
|
||||
// Everyone but WebKit/Blink supports this. See bug 679971.
|
||||
boolean taintEnabled();
|
||||
|
||||
/**
|
||||
* Navigator requests to add an idle observer to the existing window.
|
||||
*/
|
||||
//[Throws, Func="Navigator::HasIdleSupport"]
|
||||
//void addIdleObserver(MozIdleObserver aIdleObserver);
|
||||
|
||||
/**
|
||||
* Navigator requests to remove an idle observer from the existing window.
|
||||
*/
|
||||
//[Throws, Func="Navigator::HasIdleSupport"]
|
||||
//void removeIdleObserver(MozIdleObserver aIdleObserver);
|
||||
|
||||
/**
|
||||
* Request a wake lock for a resource.
|
||||
*
|
||||
* A page holds a wake lock to request that a resource not be turned
|
||||
* off (or otherwise made unavailable).
|
||||
*
|
||||
* The topic is the name of a resource that might be made unavailable for
|
||||
* various reasons. For example, on a mobile device the power manager might
|
||||
* decide to turn off the screen after a period of idle time to save power.
|
||||
*
|
||||
* The resource manager checks the lock state of a topic before turning off
|
||||
* the associated resource. For example, a page could hold a lock on the
|
||||
* "screen" topic to prevent the screensaver from appearing or the screen
|
||||
* from turning off.
|
||||
*
|
||||
* The resource manager defines what each topic means and sets policy. For
|
||||
* example, the resource manager might decide to ignore 'screen' wake locks
|
||||
* held by pages which are not visible.
|
||||
*
|
||||
* One topic can be locked multiple times; it is considered released only when
|
||||
* all locks on the topic have been released.
|
||||
*
|
||||
* The returned nsIDOMMozWakeLock object is a token of the lock. You can
|
||||
* unlock the lock via the object's |unlock| method. The lock is released
|
||||
* automatically when its associated window is unloaded.
|
||||
*
|
||||
* @param aTopic resource name
|
||||
*/
|
||||
//[Throws, Func="Navigator::HasWakeLockSupport"]
|
||||
//MozWakeLock requestWakeLock(DOMString aTopic);
|
||||
};
|
||||
|
||||
/*
|
||||
// nsIDOMNavigatorDeviceStorage
|
||||
partial interface Navigator {
|
||||
[Throws, Pref="device.storage.enabled"]
|
||||
DeviceStorage? getDeviceStorage(DOMString type);
|
||||
[Throws, Pref="device.storage.enabled"]
|
||||
sequence<DeviceStorage> getDeviceStorages(DOMString type);
|
||||
};
|
||||
|
||||
// nsIDOMNavigatorDesktopNotification
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasDesktopNotificationSupport"]
|
||||
readonly attribute DesktopNotificationCenter mozNotification;
|
||||
};
|
||||
|
||||
// nsIDOMClientInformation
|
||||
partial interface Navigator {
|
||||
[Throws]
|
||||
boolean mozIsLocallyAvailable(DOMString uri, boolean whenOffline);
|
||||
};
|
||||
|
||||
// nsIDOMMozNavigatorMobileMessage
|
||||
interface MozMobileMessageManager;
|
||||
partial interface Navigator {
|
||||
[Func="Navigator::HasMobileMessageSupport"]
|
||||
readonly attribute MozMobileMessageManager? mozMobileMessage;
|
||||
};
|
||||
|
||||
// nsIDOMMozNavigatorNetwork
|
||||
interface MozConnection;
|
||||
partial interface Navigator {
|
||||
[Pref="dom.network.enabled"]
|
||||
readonly attribute MozConnection? mozConnection;
|
||||
};
|
||||
|
||||
// nsIDOMNavigatorCamera
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasCameraSupport"]
|
||||
readonly attribute CameraManager mozCameras;
|
||||
};
|
||||
|
||||
// nsIDOMNavigatorSystemMessages and sort of maybe
|
||||
// http://www.w3.org/2012/sysapps/runtime/#extension-to-the-navigator-interface-1
|
||||
callback systemMessageCallback = void (optional object message);
|
||||
partial interface Navigator {
|
||||
[Throws, Pref="dom.sysmsg.enabled"]
|
||||
void mozSetMessageHandler (DOMString type, systemMessageCallback? callback);
|
||||
[Throws, Pref="dom.sysmsg.enabled"]
|
||||
boolean mozHasPendingMessage (DOMString type);
|
||||
};
|
||||
|
||||
#ifdef MOZ_B2G_RIL
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasTelephonySupport"]
|
||||
readonly attribute Telephony? mozTelephony;
|
||||
};
|
||||
|
||||
// nsIMozNavigatorMobileConnection
|
||||
interface MozMobileConnection;
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasMobileConnectionSupport"]
|
||||
readonly attribute MozMobileConnection mozMobileConnection;
|
||||
};
|
||||
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasCellBroadcastSupport"]
|
||||
readonly attribute MozCellBroadcast mozCellBroadcast;
|
||||
};
|
||||
|
||||
// nsIMozNavigatorVoicemail
|
||||
interface MozVoicemail;
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasVoicemailSupport"]
|
||||
readonly attribute MozVoicemail mozVoicemail;
|
||||
};
|
||||
|
||||
// nsIMozNavigatorIccManager
|
||||
interface MozIccManager;
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasIccManagerSupport"]
|
||||
readonly attribute MozIccManager? mozIccManager;
|
||||
};
|
||||
#endif // MOZ_B2G_RIL
|
||||
|
||||
#ifdef MOZ_GAMEPAD
|
||||
// https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#navigator-interface-extension
|
||||
partial interface Navigator {
|
||||
[Throws, Pref="dom.gamepad.enabled"]
|
||||
sequence<Gamepad?> getGamepads();
|
||||
};
|
||||
#endif // MOZ_GAMEPAD
|
||||
|
||||
#ifdef MOZ_B2G_BT
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasBluetoothSupport"]
|
||||
readonly attribute BluetoothManager mozBluetooth;
|
||||
};
|
||||
#endif // MOZ_B2G_BT
|
||||
|
||||
#ifdef MOZ_TIME_MANAGER
|
||||
// nsIDOMMozNavigatorTime
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasTimeSupport"]
|
||||
readonly attribute MozTimeManager mozTime;
|
||||
};
|
||||
#endif // MOZ_TIME_MANAGER
|
||||
|
||||
#ifdef MOZ_AUDIO_CHANNEL_MANAGER
|
||||
// nsIMozNavigatorAudioChannelManager
|
||||
partial interface Navigator {
|
||||
[Throws]
|
||||
readonly attribute AudioChannelManager mozAudioChannelManager;
|
||||
};
|
||||
#endif // MOZ_AUDIO_CHANNEL_MANAGER
|
||||
|
||||
#ifdef MOZ_MEDIA_NAVIGATOR
|
||||
// nsIDOMNavigatorUserMedia
|
||||
callback MozDOMGetUserMediaSuccessCallback = void (nsISupports? value);
|
||||
callback MozDOMGetUserMediaErrorCallback = void (DOMString error);
|
||||
interface MozMediaStreamOptions;
|
||||
partial interface Navigator {
|
||||
[Throws, Func="Navigator::HasUserMediaSupport"]
|
||||
void mozGetUserMedia(MozMediaStreamOptions? params,
|
||||
MozDOMGetUserMediaSuccessCallback? onsuccess,
|
||||
MozDOMGetUserMediaErrorCallback? onerror);
|
||||
};
|
||||
|
||||
// nsINavigatorUserMedia
|
||||
callback MozGetUserMediaDevicesSuccessCallback = void (nsIVariant? devices);
|
||||
partial interface Navigator {
|
||||
[Throws, ChromeOnly]
|
||||
void mozGetUserMediaDevices(MozGetUserMediaDevicesSuccessCallback? onsuccess,
|
||||
MozDOMGetUserMediaErrorCallback? onerror);
|
||||
};
|
||||
#endif // MOZ_MEDIA_NAVIGATOR
|
||||
*/
|
|
@ -3,17 +3,10 @@
|
|||
* 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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://www.w3.org/TR/2012/WD-dom-20120105/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
* The origin of this IDL file is:
|
||||
* http://dom.spec.whatwg.org/#interface-node
|
||||
*/
|
||||
|
||||
/*interface Principal;
|
||||
interface URI;
|
||||
interface UserDataHandler;*/
|
||||
|
||||
interface Node : EventTarget {
|
||||
const unsigned short ELEMENT_NODE = 1;
|
||||
const unsigned short ATTRIBUTE_NODE = 2; // historical
|
||||
|
@ -96,12 +89,4 @@ interface Node : EventTarget {
|
|||
readonly attribute DOMString? localName;
|
||||
|
||||
boolean hasAttributes();
|
||||
/*[Throws, Func="nsINode::IsChromeOrXBL"]
|
||||
any setUserData(DOMString key, any data, UserDataHandler? handler);
|
||||
[Throws, Func="nsINode::IsChromeOrXBL"]
|
||||
any getUserData(DOMString key);*/
|
||||
/*[ChromeOnly]
|
||||
readonly attribute Principal nodePrincipal;
|
||||
[ChromeOnly]
|
||||
readonly attribute URI? baseURIObject;*/
|
||||
};
|
||||
|
|
|
@ -3,11 +3,8 @@
|
|||
* 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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://www.w3.org/TR/2012/WD-dom-20120105/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
* The origin of this IDL file is:
|
||||
* http://dom.spec.whatwg.org/#interface-nodelist
|
||||
*/
|
||||
|
||||
interface NodeList {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue