mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
Remove unmaintained WebGL conformance test suite.
This commit is contained in:
parent
47bcca168c
commit
733451d1bb
6788 changed files with 5 additions and 617516 deletions
|
|
@ -1,156 +0,0 @@
|
|||
/*
|
||||
* Copyright 2013 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for globals in Chrome. This file describes the
|
||||
* externs API for the chrome.* object when running in a normal browser
|
||||
* context. For APIs available in Chrome Extensions, see chrome_extensions.js
|
||||
* in this directory.
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* namespace
|
||||
* @const
|
||||
*/
|
||||
var chrome = {};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns an object representing current load times. Note that the properties
|
||||
* on the object do not change and the function must be called again to get
|
||||
* up-to-date data.
|
||||
*
|
||||
* @see http://goto.google.com/chromeloadtimesextension
|
||||
*
|
||||
* @return {!ChromeLoadTimes}
|
||||
*/
|
||||
chrome.loadTimes = function() {};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The data object given by chrome.loadTimes().
|
||||
* @constructor
|
||||
*/
|
||||
function ChromeLoadTimes() {}
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.requestTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.startLoadTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.commitLoadTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.finishDocumentLoadTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.finishLoadTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.firstPaintTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.firstPaintAfterLoadTime;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeLoadTimes.prototype.navigationType;
|
||||
|
||||
|
||||
/**
|
||||
* True iff the resource was fetched over SPDY.
|
||||
* @type {boolean}
|
||||
*/
|
||||
ChromeLoadTimes.prototype.wasFetchedViaSpdy;
|
||||
|
||||
|
||||
/** @type {boolean} */
|
||||
ChromeLoadTimes.prototype.wasNpnNegotiated;
|
||||
|
||||
|
||||
/** @type {string} */
|
||||
ChromeLoadTimes.prototype.npnNegotiatedProtocol;
|
||||
|
||||
|
||||
/** @type {boolean} */
|
||||
ChromeLoadTimes.prototype.wasAlternateProtocolAvailable;
|
||||
|
||||
|
||||
/** @type {string} */
|
||||
ChromeLoadTimes.prototype.connectionInfo;
|
||||
|
||||
|
||||
/**
|
||||
* Returns an object containing timing information.
|
||||
* @return {!ChromeCsiInfo}
|
||||
*/
|
||||
chrome.csi = function() {};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The data object given by chrome.csi().
|
||||
* @constructor
|
||||
*/
|
||||
function ChromeCsiInfo() {}
|
||||
|
||||
|
||||
/**
|
||||
* Same as chrome.loadTimes().requestTime, if defined.
|
||||
* Otherwise, gives the same value as chrome.loadTimes().startLoadTime.
|
||||
* In milliseconds, truncated.
|
||||
* @type {number}
|
||||
*/
|
||||
ChromeCsiInfo.prototype.startE;
|
||||
|
||||
|
||||
/**
|
||||
* Same as chrome.loadTimes().finishDocumentLoadTime but in milliseconds and
|
||||
* truncated.
|
||||
* @type {number}
|
||||
*/
|
||||
ChromeCsiInfo.prototype.onloadT;
|
||||
|
||||
|
||||
/**
|
||||
* The time since startE in milliseconds.
|
||||
* @type {number}
|
||||
*/
|
||||
ChromeCsiInfo.prototype.pageT;
|
||||
|
||||
|
||||
/** @type {number} */
|
||||
ChromeCsiInfo.prototype.tran;
|
||||
|
||||
|
||||
/**
|
||||
* @param {string|!ArrayBuffer|!Object} message
|
||||
* @see https://developers.google.com/native-client/devguide/tutorial
|
||||
*/
|
||||
HTMLEmbedElement.prototype.postMessage = function(message) {};
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview JavaScript Built-Ins that are not
|
||||
* part of any specifications but are
|
||||
* still needed in some project's build.
|
||||
* @externs
|
||||
*
|
||||
*/
|
||||
|
||||
// Do we need an opera.js?
|
||||
var opera;
|
||||
Window.prototype.opera;
|
||||
Window.prototype.opera.postError;
|
||||
|
||||
/** @constructor */ function XSLTProcessor() {}
|
||||
/**
|
||||
* @param {*=} opt_text
|
||||
* @param {*=} opt_value
|
||||
* @param {*=} opt_defaultSelected
|
||||
* @param {*=} opt_selected
|
||||
* @constructor
|
||||
* @extends {Element}
|
||||
*/
|
||||
function Option(opt_text, opt_value, opt_defaultSelected, opt_selected) {}
|
||||
|
||||
|
||||
// The "methods" object is a place to hang arbitrary external
|
||||
// properties. It is a throwback to pre-typed days, and should
|
||||
// not be used for any new definitions; it exists only to bridge
|
||||
// the gap between the old way and the new way.
|
||||
var methods = {};
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,269 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for ECMAScript 5.
|
||||
* @see http://www.ecma-international.org/publications/files/drafts/tc39-2009-025.pdf
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @param {Object|undefined} selfObj Specifies the object to which |this| should
|
||||
* point when the function is run. If the value is null or undefined, it
|
||||
* will default to the global object.
|
||||
* @param {...*} var_args Additional arguments that are partially
|
||||
* applied to fn.
|
||||
* @return {!Function} A partially-applied form of the Function on which
|
||||
* bind() was invoked as a method.
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind
|
||||
*/
|
||||
Function.prototype.bind = function(selfObj, var_args) {};
|
||||
|
||||
|
||||
/**
|
||||
* @this {String|string}
|
||||
* @return {string}
|
||||
* @nosideeffects
|
||||
* @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/Trim
|
||||
*/
|
||||
String.prototype.trim = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @this {String|string}
|
||||
* @return {string}
|
||||
* @nosideeffects
|
||||
* @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimLeft
|
||||
*/
|
||||
String.prototype.trimLeft = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @this {String|string}
|
||||
* @return {string}
|
||||
* @nosideeffects
|
||||
* @see http://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String/TrimRight
|
||||
*/
|
||||
String.prototype.trimRight = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* A object property descriptor used by Object.create, Object.defineProperty,
|
||||
* Object.defineProperties, Object.getOwnPropertyDescriptor.
|
||||
*
|
||||
* Note: not a real constructor.
|
||||
* @constructor
|
||||
*/
|
||||
var ObjectPropertyDescriptor = function(){};
|
||||
|
||||
/** @type {*} */
|
||||
ObjectPropertyDescriptor.prototype.value;
|
||||
|
||||
/** @type {(function():?)||undefined} */
|
||||
ObjectPropertyDescriptor.prototype.get;
|
||||
|
||||
/** @type {(function(?):void)||undefined} */
|
||||
ObjectPropertyDescriptor.prototype.set;
|
||||
|
||||
/** @type {boolean|undefined} */
|
||||
ObjectPropertyDescriptor.prototype.writable;
|
||||
|
||||
/** @type {boolean|undefined} */
|
||||
ObjectPropertyDescriptor.prototype.enumerable;
|
||||
|
||||
/** @type {boolean|undefined} */
|
||||
ObjectPropertyDescriptor.prototype.configurable;
|
||||
|
||||
|
||||
/**
|
||||
* @param {Object} proto
|
||||
* @param {Object=} opt_properties A map of ObjectPropertyDescriptors.
|
||||
* @return {!Object}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/create
|
||||
*/
|
||||
Object.create = function(proto, opt_properties) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @param {string} prop
|
||||
* @param {!Object} descriptor A ObjectPropertyDescriptor.
|
||||
* @return {!Object}
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperty
|
||||
*/
|
||||
Object.defineProperty = function(obj, prop, descriptor) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @param {!Object} props A map of ObjectPropertyDescriptors.
|
||||
* @return {!Object}
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/defineProperties
|
||||
*/
|
||||
Object.defineProperties = function(obj, props) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @param {string} prop
|
||||
* @return {!ObjectPropertyDescriptor|undefined}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyDescriptor
|
||||
*/
|
||||
Object.getOwnPropertyDescriptor = function(obj, prop) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {!Array.<string>}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys
|
||||
*/
|
||||
Object.keys = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {!Array.<string>}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/getOwnPropertyNames
|
||||
*/
|
||||
Object.getOwnPropertyNames = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {Object}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/GetPrototypeOf
|
||||
*/
|
||||
Object.getPrototypeOf = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {T} obj
|
||||
* @return {T}
|
||||
* @template T
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/preventExtensions
|
||||
*/
|
||||
Object.preventExtensions = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {T} obj
|
||||
* @return {T}
|
||||
* @template T
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/seal
|
||||
*/
|
||||
Object.seal = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {T} obj
|
||||
* @return {T}
|
||||
* @template T
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/freeze
|
||||
*/
|
||||
Object.freeze = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isExtensible
|
||||
*/
|
||||
Object.isExtensible = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isSealed
|
||||
*/
|
||||
Object.isSealed = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!Object} obj
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/isFrozen
|
||||
*/
|
||||
Object.isFrozen = function(obj) {};
|
||||
|
||||
|
||||
/**
|
||||
* As per ECMAScript 5, 15.12.3.
|
||||
* @param {string=} opt_key The JSON key for this object.
|
||||
* @return {*} The serializable representation of this object. Note that this
|
||||
* need not be a string. See http://goo.gl/PEUvs.
|
||||
*/
|
||||
Object.prototype.toJSON = function(opt_key) {};
|
||||
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date/toISOString
|
||||
* @return {string}
|
||||
*/
|
||||
Date.prototype.toISOString = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {*=} opt_ignoredKey
|
||||
* @return {string}
|
||||
* @override
|
||||
*/
|
||||
Date.prototype.toJSON = function(opt_ignoredKey) {};
|
||||
|
||||
|
||||
/**
|
||||
* A fake type to model the JSON object.
|
||||
* @constructor
|
||||
*/
|
||||
var JSONType = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} jsonStr The string to parse.
|
||||
* @param {(function(string, *) : *)=} opt_reviver
|
||||
* @return {*} The JSON object.
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
JSONType.prototype.parse = function(jsonStr, opt_reviver) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {*} jsonObj Input object.
|
||||
* @param {(Array.<string>|(function(string, *) : *)|null)=} opt_replacer
|
||||
* @param {(number|string)=} opt_space
|
||||
* @return {string} JSON string which represents jsonObj.
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
JSONType.prototype.stringify = function(jsonObj, opt_replacer, opt_space) {};
|
||||
|
||||
|
||||
/**
|
||||
* @type {!JSONType}
|
||||
* @suppress {duplicate}
|
||||
*/
|
||||
var JSON;
|
||||
|
|
@ -1,856 +0,0 @@
|
|||
/*
|
||||
* Copyright 2014 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for ECMAScript 6.
|
||||
* @see http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts
|
||||
* @see https://www.khronos.org/registry/typedarray/specs/latest/
|
||||
* @externs
|
||||
*/
|
||||
|
||||
// TODO(johnlenz): symbol should be a primitive type.
|
||||
/** @typedef {?} */
|
||||
var symbol;
|
||||
|
||||
/**
|
||||
* @param {string} description
|
||||
* @return {symbol}
|
||||
*/
|
||||
function Symbol(description) {}
|
||||
|
||||
/** @const {symbol} */
|
||||
Symbol.iterator;
|
||||
|
||||
|
||||
/**
|
||||
* @interface
|
||||
* @template VALUE
|
||||
*/
|
||||
function Iterable() {}
|
||||
|
||||
// TODO(johnlenz): remove this when the compiler understands "symbol" natively
|
||||
/**
|
||||
* @return {Iterator.<VALUE>}
|
||||
* @suppress {externsValidation}
|
||||
*/
|
||||
Iterable.prototype[Symbol.iterator] = function() {};
|
||||
|
||||
|
||||
|
||||
// TODO(johnlenz): Iterator should be a templated record type.
|
||||
/**
|
||||
* @interface
|
||||
* @template VALUE
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol
|
||||
*/
|
||||
function Iterator() {}
|
||||
|
||||
/**
|
||||
* @param {VALUE=} value
|
||||
* @return {{value:VALUE, done:boolean}}
|
||||
*/
|
||||
Iterator.prototype.next;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://people.mozilla.org/~jorendorff/es6-draft.html#sec-generator-objects
|
||||
* @implements {Iterator<VALUE>}
|
||||
* @template VALUE
|
||||
*/
|
||||
var Generator = function() {};
|
||||
|
||||
/**
|
||||
* @param {?=} opt_value
|
||||
* @return {{value:VALUE, done:boolean}}
|
||||
* @override
|
||||
*/
|
||||
Generator.prototype.next = function(opt_value) {};
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {{value:VALUE, done:boolean}}
|
||||
*/
|
||||
Generator.prototype.return = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {?} exception
|
||||
* @return {{value:VALUE, done:boolean}}
|
||||
*/
|
||||
Generator.prototype.throw = function(exception) {};
|
||||
|
||||
|
||||
// TODO(johnlenz): Array should be Iterable.
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.log10 = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.log2 = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.log1p = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.expm1 = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.cosh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.sinh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.tanh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.acosh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.asinh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.atanh = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.trunc = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.sign = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Math.cbrt = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {number} value1
|
||||
* @param {...number} var_args
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
* @see http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot
|
||||
*/
|
||||
Math.hypot = function(value1, var_args) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {*} a
|
||||
* @param {*} b
|
||||
* @return {boolean}
|
||||
* @see http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.is
|
||||
*/
|
||||
Object.is;
|
||||
|
||||
|
||||
/**
|
||||
* Returns a language-sensitive string representation of this number.
|
||||
* @param {(string|!Array<string>)=} opt_locales
|
||||
* @param {Object=} opt_options
|
||||
* @return {string}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString
|
||||
* @see http://www.ecma-international.org/ecma-402/1.0/#sec-13.2.1
|
||||
* @override
|
||||
*/
|
||||
Number.prototype.toLocaleString = function(opt_locales, opt_options) {};
|
||||
|
||||
|
||||
/**
|
||||
* @see http://dev.w3.org/html5/postmsg/
|
||||
* @interface
|
||||
*/
|
||||
function Transferable() {}
|
||||
|
||||
/**
|
||||
* @param {number} length The length in bytes
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
* @implements {Transferable}
|
||||
*/
|
||||
function ArrayBuffer(length) {}
|
||||
|
||||
/** @type {number} */
|
||||
ArrayBuffer.prototype.byteLength;
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!ArrayBuffer}
|
||||
* @nosideeffects
|
||||
*/
|
||||
ArrayBuffer.prototype.slice = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @noalias
|
||||
*/
|
||||
function ArrayBufferView() {}
|
||||
|
||||
/** @type {!ArrayBuffer} */
|
||||
ArrayBufferView.prototype.buffer;
|
||||
|
||||
/** @type {number} */
|
||||
ArrayBufferView.prototype.byteOffset;
|
||||
|
||||
/** @type {number} */
|
||||
ArrayBufferView.prototype.byteLength;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments} If the user passes a backing array, then indexed
|
||||
* accesses will modify the backing array. JSCompiler does not model
|
||||
* this well. In other words, if you have:
|
||||
* <code>
|
||||
* var x = new ArrayBuffer(1);
|
||||
* var y = new Int8Array(x);
|
||||
* y[0] = 2;
|
||||
* </code>
|
||||
* JSCompiler will not recognize that the last assignment modifies x.
|
||||
* We workaround this by marking all these arrays as @modifies {arguments},
|
||||
* to introduce the possibility that x aliases y.
|
||||
*/
|
||||
function Int8Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Int8Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int8Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int8Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Int8Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Int8Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Int8Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Uint8Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Uint8Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint8Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint8Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Uint8Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Uint8Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Uint8Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Uint8ClampedArray(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Uint8ClampedArray.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint8ClampedArray.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint8ClampedArray.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Uint8ClampedArray.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Uint8ClampedArray}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Uint8ClampedArray.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {Uint8ClampedArray}
|
||||
* @deprecated CanvasPixelArray has been replaced by Uint8ClampedArray
|
||||
* in the latest spec.
|
||||
* @see http://www.w3.org/TR/2dcontext/#imagedata
|
||||
*/
|
||||
var CanvasPixelArray;
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Int16Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Int16Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int16Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int16Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Int16Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Int16Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Int16Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Uint16Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Uint16Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint16Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint16Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Uint16Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Uint16Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Uint16Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Int32Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Int32Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int32Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Int32Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Int32Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Int32Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Int32Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Uint32Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Uint32Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint32Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Uint32Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Uint32Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Uint32Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Uint32Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Float32Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Float32Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Float32Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Float32Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Float32Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Float32Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Float32Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {number|ArrayBufferView|Array.<number>|ArrayBuffer} length or array
|
||||
* or buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_length
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @modifies {arguments}
|
||||
*/
|
||||
function Float64Array(length, opt_byteOffset, opt_length) {}
|
||||
|
||||
/** @type {number} */
|
||||
Float64Array.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Float64Array.prototype.BYTES_PER_ELEMENT;
|
||||
|
||||
/** @type {number} */
|
||||
Float64Array.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {ArrayBufferView|Array.<number>} array
|
||||
* @param {number=} opt_offset
|
||||
*/
|
||||
Float64Array.prototype.set = function(array, opt_offset) {};
|
||||
|
||||
/**
|
||||
* @param {number} begin
|
||||
* @param {number=} opt_end
|
||||
* @return {!Float64Array}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Float64Array.prototype.subarray = function(begin, opt_end) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {ArrayBuffer} buffer
|
||||
* @param {number=} opt_byteOffset
|
||||
* @param {number=} opt_byteLength
|
||||
* @extends {ArrayBufferView}
|
||||
* @constructor
|
||||
* @noalias
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays/DataView
|
||||
*/
|
||||
function DataView(buffer, opt_byteOffset, opt_byteLength) {}
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getInt8 = function(byteOffset) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getUint8 = function(byteOffset) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getInt16 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getUint16 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getInt32 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getUint32 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getFloat32 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @return {number}
|
||||
* @throws {Error}
|
||||
* @nosideeffects
|
||||
*/
|
||||
DataView.prototype.getFloat64 = function(byteOffset, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setInt8 = function(byteOffset, value) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setUint8 = function(byteOffset, value) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setInt16 = function(byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setUint16 = function(byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setInt32 = function(byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setUint32 = function(byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setFloat32 = function(
|
||||
byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
/**
|
||||
* @param {number} byteOffset
|
||||
* @param {number} value
|
||||
* @param {boolean=} opt_littleEndian
|
||||
* @throws {Error}
|
||||
*/
|
||||
DataView.prototype.setFloat64 = function(
|
||||
byteOffset, value, opt_littleEndian) {};
|
||||
|
||||
|
||||
/**
|
||||
* @see https://github.com/promises-aplus/promises-spec
|
||||
* @typedef {{then: !Function}}
|
||||
*/
|
||||
var Thenable;
|
||||
|
||||
|
||||
/**
|
||||
* This is not an official DOM interface. It is used to add generic typing
|
||||
* and respective type inference where available.
|
||||
* {@see goog.Thenable} inherits from this making all promises
|
||||
* interoperate.
|
||||
* @interface
|
||||
* @template TYPE
|
||||
*/
|
||||
var IThenable = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?(function(TYPE):
|
||||
* (RESULT|IThenable.<RESULT>|Thenable))=} opt_onFulfilled
|
||||
* @param {?(function(*): *)=} opt_onRejected
|
||||
* @return {!IThenable.<RESULT>}
|
||||
* @template RESULT
|
||||
*/
|
||||
IThenable.prototype.then = function(opt_onFulfilled, opt_onRejected) {};
|
||||
|
||||
|
||||
/**
|
||||
* @see https://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects
|
||||
* @param {function(
|
||||
* function((TYPE|IThenable.<TYPE>|Thenable|null)=),
|
||||
* function(*=))} resolver
|
||||
* @constructor
|
||||
* @implements {IThenable.<TYPE>}
|
||||
* @template TYPE
|
||||
*/
|
||||
var Promise = function(resolver) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {(TYPE|IThenable.<TYPE>)=} opt_value
|
||||
* @return {!Promise.<TYPE>}
|
||||
* @template TYPE
|
||||
*/
|
||||
Promise.resolve = function(opt_value) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {*=} opt_error
|
||||
* @return {!Promise.<?>}
|
||||
*/
|
||||
Promise.reject = function(opt_error) {};
|
||||
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
||||
* @param {!Array<T|!Promise<T>>} iterable
|
||||
* @return {!Promise<!Array<T>>}
|
||||
*/
|
||||
Promise.all = function(iterable) {};
|
||||
|
||||
|
||||
/**
|
||||
* @template T
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
|
||||
* @param {!Array.<T>} iterable
|
||||
* @return {!Promise.<T>}
|
||||
*/
|
||||
Promise.race = function(iterable) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {?(function(TYPE):
|
||||
* (RESULT|IThenable.<RESULT>|Thenable))=} opt_onFulfilled
|
||||
* @param {?(function(*): *)=} opt_onRejected
|
||||
* @return {!Promise.<RESULT>}
|
||||
* @template RESULT
|
||||
* @override
|
||||
*/
|
||||
Promise.prototype.then = function(opt_onFulfilled, opt_onRejected) {};
|
||||
|
||||
|
||||
/**
|
||||
* @param {function(*): RESULT} onRejected
|
||||
* @return {!Promise.<RESULT>}
|
||||
* @template RESULT
|
||||
*/
|
||||
Promise.prototype.catch = function(onRejected) {};
|
||||
|
|
@ -1,253 +0,0 @@
|
|||
/*
|
||||
* Copyright 2014 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for ECMAScript 6.
|
||||
* @see http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts
|
||||
* @externs
|
||||
*/
|
||||
|
||||
// TODO(johnlenz): Use Tuples for the Map and Set iterators where appropriate.
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Iterable.<!Array.<KEY|VALUE>>|!Array.<!Array.<KEY|VALUE>>=} opt_iterable
|
||||
* @implements {Iterable.<!Array.<KEY|VALUE>>}
|
||||
* @template KEY, VALUE
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
|
||||
*/
|
||||
function Map(opt_iterable) {}
|
||||
|
||||
/** @return {void} */
|
||||
Map.prototype.clear;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {boolean}
|
||||
*/
|
||||
Map.prototype.delete;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<!Array.<KEY|VALUE>>}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Map.prototype.entries;
|
||||
|
||||
/**
|
||||
* @param {function(this:THIS, VALUE, KEY, MAP):void} callback
|
||||
* @param {THIS} thisArg
|
||||
* @this {MAP}
|
||||
* @template MAP,THIS
|
||||
*/
|
||||
Map.prototype.forEach;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {VALUE|undefined}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Map.prototype.get;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Map.prototype.has;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<KEY>}
|
||||
*/
|
||||
Map.prototype.keys;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @param {VALUE} value
|
||||
* @return {THIS}
|
||||
* @this {THIS}
|
||||
* @template THIS
|
||||
*/
|
||||
Map.prototype.set;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* (readonly)
|
||||
*/
|
||||
Map.prototype.size;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<VALUE>}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Map.prototype.values;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<!Array.<KEY|VALUE>>}
|
||||
*/
|
||||
Map.prototype[Symbol.iterator] = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Iterable.<!Array.<KEY|VALUE>>|!Array.<!Array.<KEY|VALUE>>=} opt_iterable
|
||||
* @template KEY, VALUE
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
|
||||
*/
|
||||
function WeakMap(opt_iterable) {}
|
||||
|
||||
/** @return {void} */
|
||||
WeakMap.prototype.clear;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {boolean}
|
||||
*/
|
||||
WeakMap.prototype.delete;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {VALUE|undefined}
|
||||
* @nosideeffects
|
||||
*/
|
||||
WeakMap.prototype.get;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
*/
|
||||
WeakMap.prototype.has;
|
||||
|
||||
/**
|
||||
* @param {KEY} key
|
||||
* @param {VALUE} value
|
||||
* @return {THIS}
|
||||
* @this {THIS}
|
||||
* @template THIS
|
||||
*/
|
||||
WeakMap.prototype.set;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Iterable.<VALUE>|Array.<VALUE>=} opt_iterable
|
||||
* @implements {Iterable.<VALUE>}
|
||||
* @template VALUE
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
||||
*/
|
||||
function Set(opt_iterable) {}
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {THIS}
|
||||
* @this {THIS}
|
||||
* @template THIS
|
||||
*/
|
||||
Set.prototype.add;
|
||||
|
||||
/**
|
||||
* @return {void}
|
||||
*/
|
||||
Set.prototype.clear;
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {boolean}
|
||||
*/
|
||||
Set.prototype.delete;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<!Array.<VALUE>>} Where each array has two entries:
|
||||
* [value, value]
|
||||
* @nosideeffects
|
||||
*/
|
||||
Set.prototype.entries;
|
||||
|
||||
/**
|
||||
* @param {function(VALUE, VALUE, SET)} callback
|
||||
* @param {THIS} thisArg
|
||||
* @this {SET}
|
||||
* @template SET,THIS
|
||||
*/
|
||||
Set.prototype.forEach;
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Set.prototype.has;
|
||||
|
||||
/**
|
||||
* @type {number} (readonly)
|
||||
*/
|
||||
Set.prototype.size;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<VALUE>}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Set.prototype.keys;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<VALUE>}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Set.prototype.values;
|
||||
|
||||
/**
|
||||
* @return {!Iterator.<VALUE>}
|
||||
*/
|
||||
Set.prototype[Symbol.iterator] = function() {};
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {Iterable.<VALUE>|Array.<VALUE>=} opt_iterable
|
||||
* @template VALUE
|
||||
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
||||
*/
|
||||
function WeakSet(opt_iterable) {}
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {THIS}
|
||||
* @this {THIS}
|
||||
* @template THIS
|
||||
*/
|
||||
WeakSet.prototype.add;
|
||||
|
||||
/**
|
||||
* @return {void}
|
||||
*/
|
||||
WeakSet.prototype.clear;
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {boolean}
|
||||
*/
|
||||
WeakSet.prototype.delete;
|
||||
|
||||
/**
|
||||
* @param {VALUE} value
|
||||
* @return {boolean}
|
||||
* @nosideeffects
|
||||
*/
|
||||
WeakSet.prototype.has;
|
||||
|
||||
|
||||
|
|
@ -1,961 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for objects in the File API, File Writer API, and
|
||||
* File System API. Details of the API are at:
|
||||
* http://www.w3.org/TR/FileAPI/
|
||||
* http://www.w3.org/TR/file-writer-api/
|
||||
* http://www.w3.org/TR/file-system-api/
|
||||
*
|
||||
* @externs
|
||||
* @author dbk@google.com (David Barrett-Kahn)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @see http://dev.w3.org/2006/webapi/FileAPI/#dfn-Blob
|
||||
* @param {Array.<ArrayBufferView|Blob|string>=} opt_blobParts
|
||||
* @param {Object=} opt_options
|
||||
* @constructor
|
||||
* @nosideeffects
|
||||
*/
|
||||
function Blob(opt_blobParts, opt_options) {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-size
|
||||
* @type {number}
|
||||
*/
|
||||
Blob.prototype.size;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-type
|
||||
* @type {string}
|
||||
*/
|
||||
Blob.prototype.type;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-slice
|
||||
* @param {number} start
|
||||
* @param {number} length
|
||||
* @return {!Blob}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Blob.prototype.slice = function(start, length) {};
|
||||
|
||||
/**
|
||||
* This replaces Blob.slice in Chrome since WebKit revision 84005.
|
||||
* @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
|
||||
* @param {number} start
|
||||
* @param {number} end
|
||||
* @return {!Blob}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Blob.prototype.webkitSlice = function(start, end) {};
|
||||
|
||||
/**
|
||||
* This replaces Blob.slice in Firefox.
|
||||
* @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
|
||||
* @param {number} start
|
||||
* @param {number} end
|
||||
* @return {!Blob}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Blob.prototype.mozSlice = function(start, end) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#the-blobbuilder-interface
|
||||
* @constructor
|
||||
*/
|
||||
function BlobBuilder() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append0
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append1
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append2
|
||||
* @param {string|Blob|ArrayBuffer} data
|
||||
* @param {string=} endings
|
||||
*/
|
||||
BlobBuilder.prototype.append = function(data, endings) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-getBlob
|
||||
* @param {string=} contentType
|
||||
* @return {!Blob}
|
||||
*/
|
||||
BlobBuilder.prototype.getBlob = function(contentType) {};
|
||||
|
||||
/**
|
||||
* This has replaced BlobBuilder in Chrome since WebKit revision 84008.
|
||||
* @see http://lists.w3.org/Archives/Public/public-webapps/2011AprJun/0222.html
|
||||
* @constructor
|
||||
*/
|
||||
function WebKitBlobBuilder() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append0
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append1
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-append2
|
||||
* @param {string|Blob|ArrayBuffer} data
|
||||
* @param {string=} endings
|
||||
*/
|
||||
WebKitBlobBuilder.prototype.append = function(data, endings) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-BlobBuilder-getBlob
|
||||
* @param {string=} contentType
|
||||
* @return {!Blob}
|
||||
*/
|
||||
WebKitBlobBuilder.prototype.getBlob = function(contentType) {};
|
||||
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#the-directoryentry-interface
|
||||
* @constructor
|
||||
* @extends {Entry}
|
||||
*/
|
||||
function DirectoryEntry() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-createReader
|
||||
* @return {!DirectoryReader}
|
||||
*/
|
||||
DirectoryEntry.prototype.createReader = function() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-getFile
|
||||
* @param {string} path
|
||||
* @param {Object=} options
|
||||
* @param {function(!FileEntry)=} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
DirectoryEntry.prototype.getFile = function(path, options, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-getDirectory
|
||||
* @param {string} path
|
||||
* @param {Object=} options
|
||||
* @param {function(!DirectoryEntry)=} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
DirectoryEntry.prototype.getDirectory = function(path, options, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-DirectoryEntry-removeRecursively
|
||||
* @param {function()} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
DirectoryEntry.prototype.removeRecursively = function(successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#the-directoryreader-interface
|
||||
* @constructor
|
||||
*/
|
||||
function DirectoryReader() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-DirectoryReader-readEntries
|
||||
* @param {function(!Array.<!Entry>)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
DirectoryReader.prototype.readEntries = function(successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#the-entry-interface
|
||||
* @constructor
|
||||
*/
|
||||
function Entry() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-isFile
|
||||
* @type {boolean}
|
||||
*/
|
||||
Entry.prototype.isFile;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-isDirectory
|
||||
* @type {boolean}
|
||||
*/
|
||||
Entry.prototype.isDirectory;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-name
|
||||
* @type {string}
|
||||
*/
|
||||
Entry.prototype.name;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-fullPath
|
||||
* @type {string}
|
||||
*/
|
||||
Entry.prototype.fullPath;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-filesystem
|
||||
* @type {!FileSystem}
|
||||
*/
|
||||
Entry.prototype.filesystem;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-moveTo
|
||||
* @param {!DirectoryEntry} parent
|
||||
* @param {string=} newName
|
||||
* @param {function(!Entry)=} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Entry.prototype.moveTo = function(parent, newName, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-copyTo
|
||||
* @param {!DirectoryEntry} parent
|
||||
* @param {string=} newName
|
||||
* @param {function(!Entry)=} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Entry.prototype.copyTo = function(parent, newName, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-toURL
|
||||
* @param {string=} mimeType
|
||||
* @return {string}
|
||||
*/
|
||||
Entry.prototype.toURL = function(mimeType) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-remove
|
||||
* @param {function()} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Entry.prototype.remove = function(successCallback, errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-getMetadata
|
||||
* @param {function(!Metadata)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Entry.prototype.getMetadata = function(successCallback, errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Entry-getParent
|
||||
* @param {function(!Entry)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Entry.prototype.getParent = function(successCallback, errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-file
|
||||
* @constructor
|
||||
* @extends {Blob}
|
||||
*/
|
||||
function File() {}
|
||||
|
||||
/**
|
||||
* Chrome uses this instead of name.
|
||||
* @deprecated Use name instead.
|
||||
* @type {string}
|
||||
*/
|
||||
File.prototype.fileName;
|
||||
|
||||
/**
|
||||
* Chrome uses this instead of size.
|
||||
* @deprecated Use size instead.
|
||||
* @type {string}
|
||||
*/
|
||||
File.prototype.fileSize;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-name
|
||||
* @type {string}
|
||||
*/
|
||||
File.prototype.name;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-lastModifiedDate
|
||||
* @type {Date}
|
||||
*/
|
||||
File.prototype.lastModifiedDate;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#the-fileentry-interface
|
||||
* @constructor
|
||||
* @extends {Entry}
|
||||
*/
|
||||
function FileEntry() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileEntry-createWriter
|
||||
* @param {function(!FileWriter)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
FileEntry.prototype.createWriter = function(successCallback, errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileEntry-file
|
||||
* @param {function(!File)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
FileEntry.prototype.file = function(successCallback, errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#FileErrorInterface
|
||||
* @constructor
|
||||
* @extends {DOMError}
|
||||
*/
|
||||
function FileError() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-NOT_FOUND_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.NOT_FOUND_ERR = 1;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.NOT_FOUND_ERR = 1;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-SECURITY_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.SECURITY_ERR = 2;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.SECURITY_ERR = 2;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-ABORT_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.ABORT_ERR = 3;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.ABORT_ERR = 3;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-NOT_READABLE_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.NOT_READABLE_ERR = 4;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.NOT_READABLE_ERR = 4;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-ENCODING_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.ENCODING_ERR = 5;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.ENCODING_ERR = 5;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileError-NO_MODIFICATION_ALLOWED_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.NO_MODIFICATION_ALLOWED_ERR = 6;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.NO_MODIFICATION_ALLOWED_ERR = 6;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileException-INVALID_STATE_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.INVALID_STATE_ERR = 7;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.INVALID_STATE_ERR = 7;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileException-SYNTAX_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.SYNTAX_ERR = 8;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.SYNTAX_ERR = 8;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileError-INVALID_MODIFICATION_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.INVALID_MODIFICATION_ERR = 9;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.INVALID_MODIFICATION_ERR = 9;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileError-QUOTA_EXCEEDED_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.QUOTA_EXCEEDED_ERR = 10;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.QUOTA_EXCEEDED_ERR = 10;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileException-TYPE_MISMATCH_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.TYPE_MISMATCH_ERR = 11;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.TYPE_MISMATCH_ERR = 11;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileException-PATH_EXISTS_ERR
|
||||
* @type {number}
|
||||
*/
|
||||
FileError.prototype.PATH_EXISTS_ERR = 12;
|
||||
|
||||
/** @type {number} */
|
||||
FileError.PATH_EXISTS_ERR = 12;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-code-exception
|
||||
* @type {number}
|
||||
* @deprecated Use the 'name' or 'message' attributes of DOMError rather than
|
||||
* 'code'
|
||||
*/
|
||||
FileError.prototype.code;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-filereader
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
*/
|
||||
function FileReader() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
FileReader.prototype.addEventListener = function(type, listener, opt_useCapture)
|
||||
{};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
FileReader.prototype.removeEventListener = function(type, listener,
|
||||
opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
FileReader.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-readAsArrayBuffer
|
||||
* @param {!Blob} blob
|
||||
*/
|
||||
FileReader.prototype.readAsArrayBuffer = function(blob) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-readAsBinaryStringAsync
|
||||
* @param {!Blob} blob
|
||||
*/
|
||||
FileReader.prototype.readAsBinaryString = function(blob) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-readAsText
|
||||
* @param {!Blob} blob
|
||||
* @param {string=} encoding
|
||||
*/
|
||||
FileReader.prototype.readAsText = function(blob, encoding) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-readAsDataURL
|
||||
* @param {!Blob} blob
|
||||
*/
|
||||
FileReader.prototype.readAsDataURL = function(blob) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-abort
|
||||
*/
|
||||
FileReader.prototype.abort = function() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-empty
|
||||
* @type {number}
|
||||
*/
|
||||
FileReader.prototype.EMPTY = 0;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-loading
|
||||
* @type {number}
|
||||
*/
|
||||
FileReader.prototype.LOADING = 1;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-done
|
||||
* @type {number}
|
||||
*/
|
||||
FileReader.prototype.DONE = 2;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-readystate
|
||||
* @type {number}
|
||||
*/
|
||||
FileReader.prototype.readyState;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-result
|
||||
* @type {string|Blob|ArrayBuffer}
|
||||
*/
|
||||
FileReader.prototype.result;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-error
|
||||
* @type {FileError}
|
||||
*/
|
||||
FileReader.prototype.error;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onloadstart
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onloadstart;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onprogress
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onprogress;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onload
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onload;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onabort
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onabort;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onerror
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onerror;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-onloadend
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileReader.prototype.onloadend;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#idl-def-FileSaver
|
||||
* @constructor
|
||||
*/
|
||||
function FileSaver() {};
|
||||
|
||||
/** @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-abort */
|
||||
FileSaver.prototype.abort = function() {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-INIT
|
||||
* @type {number}
|
||||
*/
|
||||
FileSaver.prototype.INIT = 0;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-WRITING
|
||||
* @type {number}
|
||||
*/
|
||||
FileSaver.prototype.WRITING = 1;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-DONE
|
||||
* @type {number}
|
||||
*/
|
||||
FileSaver.prototype.DONE = 2;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-readyState
|
||||
* @type {number}
|
||||
*/
|
||||
FileSaver.prototype.readyState;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-error
|
||||
* @type {FileError}
|
||||
*/
|
||||
FileSaver.prototype.error;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwritestart
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onwritestart;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onprogress
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onprogress;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwrite
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onwrite;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onabort
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onabort;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onerror
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onerror;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileSaver-onwriteend
|
||||
* @type {?function(!ProgressEvent)}
|
||||
*/
|
||||
FileSaver.prototype.onwriteend;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#the-filesystem-interface
|
||||
* @constructor
|
||||
*/
|
||||
function FileSystem() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileSystem-name
|
||||
* @type {string}
|
||||
*/
|
||||
FileSystem.prototype.name;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-FileSystem-root
|
||||
* @type {!DirectoryEntry}
|
||||
*/
|
||||
FileSystem.prototype.root;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#idl-def-FileWriter
|
||||
* @constructor
|
||||
* @extends {FileSaver}
|
||||
*/
|
||||
function FileWriter() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-position
|
||||
* @type {number}
|
||||
*/
|
||||
FileWriter.prototype.position;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-length
|
||||
* @type {number}
|
||||
*/
|
||||
FileWriter.prototype.length;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-write
|
||||
* @param {!Blob} blob
|
||||
*/
|
||||
FileWriter.prototype.write = function(blob) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-seek
|
||||
* @param {number} offset
|
||||
*/
|
||||
FileWriter.prototype.seek = function(offset) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-writer-api/#widl-FileWriter-truncate
|
||||
* @param {number} size
|
||||
*/
|
||||
FileWriter.prototype.truncate = function(size) {};
|
||||
|
||||
/**
|
||||
* LocalFileSystem interface, implemented by Window and WorkerGlobalScope.
|
||||
* @see http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem
|
||||
* @constructor
|
||||
*/
|
||||
function LocalFileSystem() {}
|
||||
|
||||
/**
|
||||
* Metadata interface.
|
||||
* @see http://www.w3.org/TR/file-system-api/#idl-def-Metadata
|
||||
* @constructor
|
||||
*/
|
||||
function Metadata() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Metadata-modificationTime
|
||||
* @type {!Date}
|
||||
*/
|
||||
Metadata.prototype.modificationTime;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-Metadata-size
|
||||
* @type {number}
|
||||
*/
|
||||
Metadata.prototype.size;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-TEMPORARY
|
||||
* @type {number}
|
||||
*/
|
||||
Window.prototype.TEMPORARY = 0;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-PERSISTENT
|
||||
* @type {number}
|
||||
*/
|
||||
Window.prototype.PERSISTENT = 1;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
|
||||
* @param {number} type
|
||||
* @param {number} size
|
||||
* @param {function(!FileSystem)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
function requestFileSystem(type, size, successCallback, errorCallback) {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
|
||||
* @param {number} type
|
||||
* @param {number} size
|
||||
* @param {function(!FileSystem)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Window.prototype.requestFileSystem = function(type, size, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
|
||||
* @param {string} uri
|
||||
* @param {function(!Entry)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
function resolveLocalFileSystemURI(uri, successCallback, errorCallback) {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
|
||||
* @param {string} uri
|
||||
* @param {function(!Entry)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Window.prototype.resolveLocalFileSystemURI = function(uri, successCallback,
|
||||
errorCallback) {}
|
||||
|
||||
/**
|
||||
* This has replaced requestFileSystem in Chrome since WebKit revision 84224.
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
|
||||
* @param {number} type
|
||||
* @param {number} size
|
||||
* @param {function(!FileSystem)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
function webkitRequestFileSystem(type, size, successCallback, errorCallback) {}
|
||||
|
||||
/**
|
||||
* This has replaced requestFileSystem in Chrome since WebKit revision 84224.
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-requestFileSystem
|
||||
* @param {number} type
|
||||
* @param {number} size
|
||||
* @param {function(!FileSystem)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Window.prototype.webkitRequestFileSystem = function(type, size, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* This has replaced resolveLocalFileSystemURI in Chrome since WebKit revision
|
||||
* 84224.
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
|
||||
* @param {string} uri
|
||||
* @param {function(!Entry)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
function webkitResolveLocalFileSystemURI(uri, successCallback, errorCallback) {}
|
||||
|
||||
/**
|
||||
* This has replaced resolveLocalFileSystemURI in Chrome since WebKit revision
|
||||
* 84224.
|
||||
* @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURI
|
||||
* @param {string} uri
|
||||
* @param {function(!Entry)} successCallback
|
||||
* @param {function(!FileError)=} errorCallback
|
||||
*/
|
||||
Window.prototype.webkitResolveLocalFileSystemURI = function(uri, successCallback,
|
||||
errorCallback) {}
|
||||
|
||||
// WindowBlobURIMethods interface, implemented by Window and WorkerGlobalScope.
|
||||
// There are three APIs for this: the old specced API, the new specced API, and
|
||||
// the webkit-prefixed API.
|
||||
// @see http://www.w3.org/TR/FileAPI/#creating-revoking
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
||||
* @param {!Object} obj
|
||||
* @return {string}
|
||||
*/
|
||||
function createObjectURL(obj) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
||||
* @param {!Object} obj
|
||||
* @return {string}
|
||||
*/
|
||||
Window.prototype.createObjectURL = function(obj) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
||||
* @param {string} url
|
||||
*/
|
||||
function revokeObjectURL(url) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
||||
* @param {string} url
|
||||
*/
|
||||
Window.prototype.revokeObjectURL = function(url) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#URL-object
|
||||
* @constructor
|
||||
*/
|
||||
function DOMURL() {}
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#
|
||||
* @constructor
|
||||
* @param {string} urlString
|
||||
* @param {string=} opt_base
|
||||
* @extends {DOMURL}
|
||||
*/
|
||||
function URL(urlString, opt_base) {}
|
||||
|
||||
/** @type {string} */
|
||||
URL.prototype.protocol;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
||||
* @param {!File|!Blob|!MediaSource|!MediaStream} obj
|
||||
* @return {string}
|
||||
*/
|
||||
URL.createObjectURL = function(obj) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
||||
* @param {string} url
|
||||
*/
|
||||
URL.revokeObjectURL = function(url) {};
|
||||
|
||||
/**
|
||||
* This has been replaced by URL in Chrome since WebKit revision 75739.
|
||||
* @constructor
|
||||
* @param {string} urlString
|
||||
* @param {string=} opt_base
|
||||
* @extends {DOMURL}
|
||||
*/
|
||||
function webkitURL(urlString, opt_base) {}
|
||||
|
||||
/** @constructor */
|
||||
window.webkitURL = webkitURL;
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-createObjectURL
|
||||
* @param {!Object} obj
|
||||
* @return {string}
|
||||
*/
|
||||
webkitURL.createObjectURL = function(obj) {};
|
||||
|
||||
/**
|
||||
* @see http://www.w3.org/TR/FileAPI/#dfn-revokeObjectURL
|
||||
* @param {string} url
|
||||
*/
|
||||
webkitURL.revokeObjectURL = function(url) {};
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage
|
||||
* @constructor
|
||||
*/
|
||||
function StorageInfo() {}
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage
|
||||
* @type {number}
|
||||
* */
|
||||
StorageInfo.prototype.TEMPORARY = 0;
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage
|
||||
* @type {number}
|
||||
*/
|
||||
StorageInfo.prototype.PERSISTENT = 1;
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage#requestQuota
|
||||
* @param {number} type
|
||||
* @param {number} size
|
||||
* @param {function(number)} successCallback
|
||||
* @param {function(!DOMException)=} errorCallback
|
||||
*/
|
||||
StorageInfo.prototype.requestQuota = function(type, size, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage#queryUsageAndQuota
|
||||
* @param {number} type
|
||||
* @param {function(number, number)} successCallback
|
||||
* @param {function(!DOMException)=} errorCallback
|
||||
*/
|
||||
StorageInfo.prototype.queryUsageAndQuota = function(type, successCallback,
|
||||
errorCallback) {};
|
||||
|
||||
/**
|
||||
* @see https://developers.google.com/chrome/whitepapers/storage
|
||||
* @type {!StorageInfo}
|
||||
*/
|
||||
Window.prototype.webkitStorageInfo;
|
||||
|
||||
/**
|
||||
* @see https://dvcs.w3.org/hg/quota/raw-file/tip/Overview.html#storagequota-interface.
|
||||
* @constructor
|
||||
*/
|
||||
function StorageQuota() {}
|
||||
|
||||
/**
|
||||
* @param {number} size
|
||||
* @param {function(number)=} opt_successCallback
|
||||
* @param {function(!DOMException)=} opt_errorCallback
|
||||
*/
|
||||
StorageQuota.prototype.requestQuota = function(size, opt_successCallback,
|
||||
opt_errorCallback) {};
|
||||
|
||||
/**
|
||||
* @param {function(number, number)} successCallback
|
||||
* @param {function(!DOMException)=} opt_errorCallback
|
||||
*/
|
||||
StorageQuota.prototype.queryUsageAndQuota = function(successCallback,
|
||||
opt_errorCallback) {};
|
||||
|
|
@ -1,210 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for all the Flash Object JavaScript methods. This
|
||||
* file depends on w3c_dom2.js.
|
||||
* Created from
|
||||
* http://www.adobe.com/support/flash/publishexport/scriptingwithflash/scriptingwithflash_03.html
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
// Standard Methods.
|
||||
|
||||
/**
|
||||
* Call a Flash function exported by ExternalInterface.
|
||||
* @param {string} xmlString The XML string passed to Flash. The outer element
|
||||
* should be {@code <invoke>}. A sample invocation string:
|
||||
* {@code <invoke name="function_name" returntype="javascript">
|
||||
* <string>test</string></invoke>}
|
||||
* @return {string} The serialized return value from Flash that you can eval.
|
||||
*/
|
||||
HTMLObjectElement.prototype.CallFunction = function(xmlString) {};
|
||||
|
||||
/**
|
||||
* Returns the value of the Flash variable specified by varName or null if the
|
||||
* variable does not exist.
|
||||
* @param {string} varName The variable name.
|
||||
* @return {string?} The variable value.
|
||||
*/
|
||||
HTMLObjectElement.prototype.GetVariable = function(varName) {};
|
||||
|
||||
/**
|
||||
* Activates the frame number specified by {@code frameNumber} in the current
|
||||
* movie.
|
||||
* @param {number} frameNumber A non-negative integer frame number.
|
||||
*/
|
||||
HTMLObjectElement.prototype.GotoFrame = function(frameNumber) {};
|
||||
|
||||
/**
|
||||
* @return {boolean} Whether the movie is currently playing.
|
||||
*/
|
||||
HTMLObjectElement.prototype.IsPlaying = function() {};
|
||||
|
||||
/**
|
||||
* Loads the movie identified by {@code url} to the layer specified by {@code
|
||||
* layerNumber}.
|
||||
* @param {number} layerNumber The layer number.
|
||||
* @param {string} url The movie URL.
|
||||
*/
|
||||
HTMLObjectElement.prototype.LoadMovie = function(layerNumber, url) {};
|
||||
|
||||
/**
|
||||
* Pans a zoomed-in movie to the coordinates specified by x and y. Use mode to
|
||||
* specify whether the values for x and y are pixels or a percent of the window.
|
||||
* When mode is 0, the coordinates are pixels; when mode is 1, the coordinates
|
||||
* are percent of the window.
|
||||
* @param {number} x The x-coordinate.
|
||||
* @param {number} y The y-coordinate.
|
||||
* @param {number} mode The mode.
|
||||
*/
|
||||
HTMLObjectElement.prototype.Pan = function(x, y, mode) {};
|
||||
|
||||
/**
|
||||
* @return {number} The percent of the Flash Player movie that has streamed
|
||||
* into the browser so far; Possible values are from 0 to 100.
|
||||
*/
|
||||
HTMLObjectElement.prototype.PercentLoaded = function() {};
|
||||
|
||||
/**
|
||||
* Starts playing the movie.
|
||||
*/
|
||||
HTMLObjectElement.prototype.Play = function() {};
|
||||
|
||||
/**
|
||||
* Goes to the first frame.
|
||||
*/
|
||||
HTMLObjectElement.prototype.Rewind = function() {};
|
||||
|
||||
/**
|
||||
* Sets the value of the flash variable.
|
||||
* @param {string} variableName The variable name.
|
||||
* @param {string} value The value.
|
||||
*/
|
||||
HTMLObjectElement.prototype.SetVariable = function(variableName, value) {};
|
||||
|
||||
/**
|
||||
* Zooms in on a rectangular area of the movie. The units of the coordinates
|
||||
* are in twips (1440 units per inch).
|
||||
* @param {number} left The left coordinate.
|
||||
* @param {number} top The top coordinate.
|
||||
* @param {number} right The right coordinate.
|
||||
* @param {number} bottom The bottom coordinate.
|
||||
*/
|
||||
HTMLObjectElement.prototype.SetZoomRect = function(left, top, right, bottom) {};
|
||||
|
||||
/**
|
||||
* Stops playing the movie.
|
||||
*/
|
||||
HTMLObjectElement.prototype.StopPlay = function() {};
|
||||
|
||||
/**
|
||||
* @return {number} The total number of frames in the movie.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TotalFrames = function() {};
|
||||
|
||||
/**
|
||||
* Zooms the view by a relative scale factor.
|
||||
* @param {number} percent The percentage scale factor, should be an integer.
|
||||
*/
|
||||
HTMLObjectElement.prototype.Zoom = function(percent) {};
|
||||
|
||||
|
||||
// TellTarget Methods.
|
||||
|
||||
/**
|
||||
* Executes the action in the timeline specified by {@code target} in the
|
||||
* specified frame.
|
||||
* @param {string} target The timeline.
|
||||
* @param {number} frameNumber The frame number.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TCallFrame = function(target, frameNumber) {};
|
||||
|
||||
/**
|
||||
* Executes the action in the timeline specified by {@code target} in the
|
||||
* specified frame.
|
||||
* @param {string} target The timeline.
|
||||
* @param {string} label The frame label.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TCallLabel = function(target, label) {};
|
||||
|
||||
/**
|
||||
* Returns the number of the current frame for the specified timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @return {number} The number of the current frame.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TCurentFrame = function(target) {};
|
||||
|
||||
/**
|
||||
* Returns the label of the current frame for the specified timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @return {string} The label of the current frame, empty string if no
|
||||
* current frame.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TCurrentLabel = function(target) {};
|
||||
|
||||
/**
|
||||
* Returns a string indicating the value of the property in the
|
||||
* specified timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @param {number} property The integer corresponding to the desired property.
|
||||
* @return {string} The value of the property.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TGetProperty = function(target, property) {};
|
||||
|
||||
/**
|
||||
* Returns a number indicating the value of the property in the specified
|
||||
* timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @param {number} property The integer corresponding to the desired property.
|
||||
* @return {number} A number indicating the value of the property.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TGetPropertyAsNumber = function(target, property) {};
|
||||
|
||||
/**
|
||||
* Goes to the specified frame number in the specified timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @param {number} frameNumber The frame number.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TGotoFrame = function(target, frameNumber) {};
|
||||
|
||||
/**
|
||||
* Goes to the specified frame label in the specified timeline.
|
||||
* @param {string} target The timeline.
|
||||
* @param {string} label The framelabel.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TGotoLabel = function(target, label) {};
|
||||
|
||||
/**
|
||||
* Plays the specified timeline.
|
||||
* @param {number} target The timeline.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TPlay = function(target) {};
|
||||
|
||||
/**
|
||||
* Sets the value of the property in the specified timeline.
|
||||
* @param {number} target The timeline.
|
||||
* @param {number} property The integer corresponding to the desired property.
|
||||
* @param {string|number} value The value.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TSetProperty = function(target, property, value) {};
|
||||
|
||||
/**
|
||||
* Stops the specified timeline.
|
||||
* @param {number} target The timeline.
|
||||
*/
|
||||
HTMLObjectElement.prototype.TStopPlay = function(target) {};
|
||||
|
|
@ -1,126 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for Gecko's custom CSS properties. Copied from:
|
||||
* http://mxr.mozilla.org/mozilla2.0/source/dom/interfaces/css/nsIDOMCSS2Properties.idl
|
||||
*
|
||||
* @externs
|
||||
* @author nicksantos@google.com (Nick Santos)
|
||||
*/
|
||||
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.MozAppearance;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBackfaceVisibility;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBackgroundClip;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBackgroundInlinePolicy;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBackgroundOrigin;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBinding;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderBottomColors;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderEnd;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderEndColor;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderEndStyle;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderEndWidth;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderImage;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderLeftColors;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRadius;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRadiusTopleft;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRadiusTopright;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRadiusBottomleft;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRadiusBottomright;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderRightColors;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderStart;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderStartColor;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderStartStyle;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderStartWidth;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBorderTopColors;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxAlign;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxDirection;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxFlex;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxOrdinalGroup;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxOrient;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxPack;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxSizing;
|
||||
/** @type {string} */ CSSProperties.prototype.MozBoxShadow;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnCount;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnGap;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnRule;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnRuleColor;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnRuleStyle;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnRuleWidth;
|
||||
/** @type {string} */ CSSProperties.prototype.MozColumnWidth;
|
||||
/** @type {string} */ CSSProperties.prototype.MozFloatEdge;
|
||||
/** @type {string} */ CSSProperties.prototype.MozFontFeatureSettings;
|
||||
/** @type {string} */ CSSProperties.prototype.MozFontLanguageOverride;
|
||||
/** @type {string} */ CSSProperties.prototype.MozForceBrokenImageIcon;
|
||||
/** @type {string} */ CSSProperties.prototype.MozImageRegion;
|
||||
/** @type {string} */ CSSProperties.prototype.MozMarginEnd;
|
||||
/** @type {string} */ CSSProperties.prototype.MozMarginStart;
|
||||
/** @type {number|string} */ CSSProperties.prototype.MozOpacity;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutline;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineColor;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineOffset;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineRadius;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineRadiusBottomleft;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineRadiusBottomright;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineRadiusTopleft;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineRadiusTopright;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineStyle;
|
||||
/** @type {string} */ CSSProperties.prototype.MozOutlineWidth;
|
||||
/** @type {string} */ CSSProperties.prototype.MozPaddingEnd;
|
||||
/** @type {string} */ CSSProperties.prototype.MozPaddingStart;
|
||||
/** @type {string} */ CSSProperties.prototype.MozPerspective;
|
||||
/** @type {string} */ CSSProperties.prototype.MozStackSizing;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTabSize;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransform;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransformOrigin;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransition;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransitionDelay;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransitionDuration;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransitionProperty;
|
||||
/** @type {string} */ CSSProperties.prototype.MozTransitionTimingFunction;
|
||||
/** @type {string} */ CSSProperties.prototype.MozUserFocus;
|
||||
/** @type {string} */ CSSProperties.prototype.MozUserInput;
|
||||
/** @type {string} */ CSSProperties.prototype.MozUserModify;
|
||||
/** @type {string} */ CSSProperties.prototype.MozUserSelect;
|
||||
/** @type {string} */ CSSProperties.prototype.MozWindowShadow;
|
||||
|
||||
|
||||
// These are non-standard Gecko CSSOM properties on Window.prototype.screen.
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://developer.mozilla.org/En/DOM/window.screen.availTop
|
||||
*/
|
||||
Screen.prototype.availTop;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://developer.mozilla.org/En/DOM/window.screen.availLeft
|
||||
*/
|
||||
Screen.prototype.availLeft;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://developer.mozilla.org/En/DOM/window.screen.left
|
||||
*/
|
||||
Screen.prototype.left;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://developer.mozilla.org/En/DOM/window.screen.top
|
||||
*/
|
||||
Screen.prototype.top;
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,62 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for all the extensions over
|
||||
* W3C's event specification by Gecko. This file depends on
|
||||
* w3c_event.js.
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
// TODO: Almost all of it has not been annotated with types.
|
||||
|
||||
/** @type {number} */ Event.prototype.HORIZONTAL_AXIS;
|
||||
/** @type {number} */ Event.prototype.VERTICAL_AXIS;
|
||||
/** @type {boolean} */ Event.prototype.altKey;
|
||||
/** @type {number} */ Event.prototype.axis;
|
||||
/** @type {number} */ Event.prototype.button;
|
||||
/** @type {boolean} */ Event.prototype.cancelBubble;
|
||||
/** @type {number} */ Event.prototype.charCode;
|
||||
/** @type {number} */ Event.prototype.clientX;
|
||||
/** @type {number} */ Event.prototype.clientY;
|
||||
/** @type {boolean} */ Event.prototype.ctrlKey;
|
||||
/** @type {EventTarget} */ Event.prototype.explicitOriginalTarget;
|
||||
/** @type {boolean} */ Event.prototype.isChar;
|
||||
/** @type {number} */ Event.prototype.keyCode;
|
||||
/** @type {number} */ Event.prototype.layerX;
|
||||
/** @type {number} */ Event.prototype.layerY;
|
||||
/** @type {boolean} */ Event.prototype.metaKey;
|
||||
/** @type {EventTarget} */ Event.prototype.originalTarget;
|
||||
/** @type {number} */ Event.prototype.pageX;
|
||||
/** @type {number} */ Event.prototype.pageY;
|
||||
/** @type {EventTarget} */ Event.prototype.relatedTarget;
|
||||
/** @type {number} */ Event.prototype.screenX;
|
||||
/** @type {number} */ Event.prototype.screenY;
|
||||
/** @type {boolean} */ Event.prototype.shiftKey;
|
||||
/** @type {Window} */ Event.prototype.view;
|
||||
/** @type {number} */ Event.prototype.which;
|
||||
|
||||
/** @constructor */ function nsIDOMPageTransitionEvent() {}
|
||||
/** @type {boolean} */ nsIDOMPageTransitionEvent.prototype.persisted;
|
||||
|
||||
//Methods
|
||||
Event.prototype.initKeyEvent;
|
||||
Event.prototype.initMouseEvent;
|
||||
Event.prototype.initUIEvent;
|
||||
Event.prototype.initMessageEvent;
|
||||
Event.prototype.preventBubble;
|
||||
Event.prototype.preventCapture;
|
||||
|
|
@ -1,73 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for all the extensions over some of the
|
||||
* W3C's XML specifications by Gecko. This file depends on
|
||||
* w3c_xml.js. The whole file has been fully type annotated.
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* XMLSerializer can be used to convert DOM subtree or DOM document into text.
|
||||
* XMLSerializer is available to unprivileged scripts.
|
||||
*
|
||||
* XMLSerializer is mainly useful for applications and extensions based on
|
||||
* Mozilla platform. While it's available to web pages, it's not part of any
|
||||
* standard and level of support in other browsers is unknown.
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function XMLSerializer() {}
|
||||
|
||||
/**
|
||||
* Returns the serialized subtree in the form of a string
|
||||
* @param {Node} subtree
|
||||
* @return {string}
|
||||
*/
|
||||
XMLSerializer.prototype.serializeToString = function(subtree) {};
|
||||
|
||||
/**
|
||||
* The subtree rooted by the specified element is serialized to a byte stream
|
||||
* using the character set specified.
|
||||
*
|
||||
* @param {Node} subtree
|
||||
* @return {Object}
|
||||
*/
|
||||
XMLSerializer.prototype.serializeToStream = function(subtree) {};
|
||||
|
||||
/**
|
||||
* DOMParser is mainly useful for applications and extensions based on Mozilla
|
||||
* platform. While it's available to web pages, it's not part of any standard and
|
||||
* level of support in other browsers is unknown.
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function DOMParser() {}
|
||||
|
||||
/**
|
||||
* The string passed in is parsed into a DOM document.
|
||||
*
|
||||
* Example:
|
||||
* var parser = new DOMParser();
|
||||
* var doc = parser.parseFromString(aStr, "text/xml");
|
||||
*
|
||||
* @param {string} src The UTF16 string to be parsed.
|
||||
* @param {string} type The content type of the string.
|
||||
* @return {Document}
|
||||
*/
|
||||
DOMParser.prototype.parseFromString = function(src, type) {};
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Declaration of the type level google namespace.
|
||||
* @externs
|
||||
* @author nicksantos@google.com (Nick Santos)
|
||||
*/
|
||||
|
||||
/**
|
||||
* Suppresses the compiler warning when multiple externs files declare the
|
||||
* google namespace.
|
||||
* @suppress {duplicate}
|
||||
* @noalias
|
||||
*/
|
||||
// TODO(nicksantos): Consolidate to one google namespace declaration.
|
||||
var google = {};
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,267 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for IE's custom CSS properties, as defined here:
|
||||
* http://msdn.microsoft.com/en-us/library/aa768661(VS.85).aspx
|
||||
*
|
||||
* This page is also useful for the IDL definitions:
|
||||
* http://source.winehq.org/source/include/mshtml.idl
|
||||
*
|
||||
* @externs
|
||||
* @author nicksantos@google.com
|
||||
*/
|
||||
|
||||
/** @type {Element} */
|
||||
StyleSheet.prototype.owningElement;
|
||||
|
||||
/** @type {boolean} */
|
||||
StyleSheet.prototype.readOnly;
|
||||
|
||||
/** @type {StyleSheetList} */
|
||||
StyleSheet.prototype.imports;
|
||||
|
||||
/** @type {string} */
|
||||
StyleSheet.prototype.id;
|
||||
|
||||
/**
|
||||
* @param {string} bstrURL
|
||||
* @param {number} lIndex
|
||||
* @return {number}
|
||||
*/
|
||||
StyleSheet.prototype.addImport;
|
||||
|
||||
/**
|
||||
* @param {string} bstrSelector
|
||||
* @param {string} bstrStyle
|
||||
* @param {number=} opt_iIndex
|
||||
* @return {number}
|
||||
* @see http://msdn.microsoft.com/en-us/library/aa358796%28v=vs.85%29.aspx
|
||||
*/
|
||||
StyleSheet.prototype.addRule;
|
||||
|
||||
/**
|
||||
* @param {number} lIndex
|
||||
*/
|
||||
StyleSheet.prototype.removeImport;
|
||||
|
||||
/**
|
||||
* @param {number} lIndex
|
||||
*/
|
||||
StyleSheet.prototype.removeRule;
|
||||
|
||||
/** @type {string} */
|
||||
StyleSheet.prototype.cssText;
|
||||
|
||||
/** @type {CSSRuleList} */
|
||||
StyleSheet.prototype.rules;
|
||||
|
||||
// StyleSheet methods
|
||||
|
||||
/**
|
||||
* @param {string} propName
|
||||
* @return {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/aa358797(VS.85).aspx
|
||||
*/
|
||||
StyleSheet.prototype.getExpression;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} expression
|
||||
* @return {undefined}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms531196(VS.85).aspx
|
||||
*/
|
||||
StyleSheet.prototype.setExpression;
|
||||
|
||||
/**
|
||||
* @param {string} expression
|
||||
* @return {undefined}
|
||||
* @see http://msdn.microsoft.com/en-us/library/aa358798(VS.85).aspx
|
||||
*/
|
||||
StyleSheet.prototype.removeExpression;
|
||||
|
||||
// IE-only CSS style names.
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.backgroundPositionX;
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.backgroundPositionY;
|
||||
|
||||
/**
|
||||
* @see http://msdn.microsoft.com/en-us/library/ie/ms531081(v=vs.85).aspx
|
||||
* NOTE: Left untyped to avoid conflict with caller.
|
||||
*/
|
||||
CSSProperties.prototype.behavior;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms533883.aspx
|
||||
*/
|
||||
CSSProperties.prototype.imeMode;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms534176(VS.85).aspx
|
||||
*/
|
||||
CSSProperties.prototype.msInterpolationMode;
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.overflowX;
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.overflowY;
|
||||
|
||||
/** @type {number} */ CSSProperties.prototype.pixelWidth;
|
||||
|
||||
/** @type {number} */ CSSProperties.prototype.pixelHeight;
|
||||
|
||||
/** @type {number} */ CSSProperties.prototype.pixelLeft;
|
||||
|
||||
/** @type {number} */ CSSProperties.prototype.pixelTop;
|
||||
|
||||
/** @type {string} */ CSSProperties.prototype.styleFloat;
|
||||
|
||||
/**
|
||||
* @type {string|number}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms535169(VS.85).aspx
|
||||
*/
|
||||
CSSProperties.prototype.zoom;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms535153(VS.85).aspx
|
||||
*/
|
||||
CSSProperties.prototype.writingMode;
|
||||
|
||||
/**
|
||||
* IE-specific extensions.
|
||||
* @see http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx
|
||||
*/
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsAccelerator;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsBackgroundPositionX;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsBackgroundPositionY;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsBehavior;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsBlockProgression;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsFilter;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsImeMode;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLayoutGrid;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLayoutGridChar;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLayoutGridLine;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLayoutGridMode;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLayoutGridType;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLineBreak;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsLineGridMode;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsInterpolationMode;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsOverflowX;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsOverflowY;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbar3dlightColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarArrowColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarBaseColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarDarkshadowColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarFaceColor;
|
||||
|
||||
CSSProperties.prototype.MsScrollbarHighlightColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarShadowColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsScrollbarTrackColor;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextAlignLast;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextAutospace;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextJustify;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextKashidaSpace;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextOverflow;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsTextUnderlinePosition;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsWordBreak;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsWordWrap;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsWritingMode;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.MsZoom;
|
||||
|
||||
// See: http://msdn.microsoft.com/en-us/library/windows/apps/Hh702466.aspx
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.msContentZooming;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.msTouchAction;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.msTransform;
|
||||
|
||||
/** @type {string} */
|
||||
CSSProperties.prototype.msTransition;
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,309 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for all the extensions over the
|
||||
* W3C's event specification by IE in JScript. This file depends on
|
||||
* w3c_event.js.
|
||||
*
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms535863.aspx
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.Abstract;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.altLeft;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.Banner;
|
||||
|
||||
/**
|
||||
* A ClipboardData on IE, but a DataTransfer on WebKit.
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms535220.aspx
|
||||
* @type {(ClipboardData|undefined)}
|
||||
*/
|
||||
Event.prototype.clipboardData;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.contentOverflow;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.ctrlLeft;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.dataFld;
|
||||
|
||||
Event.prototype.domain;
|
||||
|
||||
/** @type {Element} */
|
||||
Event.prototype.fromElement;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.MoreInfo;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.nextPage;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.offsetX;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.offsetY;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.propertyName;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.qualifier;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.reason;
|
||||
|
||||
/** @type {Object.<*,*>} */
|
||||
Event.prototype.recordset;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.repeat;
|
||||
|
||||
/** @type {(boolean|string|undefined)} */
|
||||
Event.prototype.returnValue;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.saveType;
|
||||
|
||||
Event.prototype.scheme;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.shiftLeft;
|
||||
|
||||
/** @type {Window} */
|
||||
Event.prototype.source;
|
||||
|
||||
/** @type {Element} */
|
||||
Event.prototype.srcElement;
|
||||
|
||||
Event.prototype.srcFilter;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.srcUrn;
|
||||
|
||||
/** @type {Element} */
|
||||
Event.prototype.toElement;
|
||||
|
||||
Event.prototype.userName;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.wheelDelta;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.x;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.y;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441257.aspx
|
||||
*/
|
||||
function MSPointerPoint() {}
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerPoint.prototype.pointerId;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerPoint.prototype.pointerType;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441233.aspx
|
||||
*/
|
||||
function MSPointerEvent() {}
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.MSPOINTER_TYPE_MOUSE;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.MSPOINTER_TYPE_PEN;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.MSPOINTER_TYPE_TOUCH;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.height;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.hwTimestamp;
|
||||
|
||||
/** @type {boolean} */
|
||||
MSPointerEvent.prototype.isPrimary;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.pointerId;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.pointerType;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.pressure;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.rotation;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.tiltX;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.tiltY;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.timeStamp;
|
||||
|
||||
/** @type {number} */
|
||||
MSPointerEvent.prototype.width;
|
||||
|
||||
/**
|
||||
* @param {number} pointerId
|
||||
* @return {undefined}
|
||||
*/
|
||||
MSPointerEvent.prototype.msReleasePointerCapture;
|
||||
|
||||
/**
|
||||
* @param {number} pointerId
|
||||
* @return {undefined}
|
||||
*/
|
||||
MSPointerEvent.prototype.msSetPointerCapture;
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {Window} viewArg
|
||||
* @param {number} detailArg
|
||||
* @param {number} screenXArg
|
||||
* @param {number} screenYArg
|
||||
* @param {number} clientXArg
|
||||
* @param {number} clientYArg
|
||||
* @param {boolean} ctrlKeyArg
|
||||
* @param {boolean} altKeyArg
|
||||
* @param {boolean} shiftKeyArg
|
||||
* @param {boolean} metaKeyArg
|
||||
* @param {number} buttonArg
|
||||
* @param {Element} relatedTargetArg
|
||||
* @param {number} offsetXArg
|
||||
* @param {number} offsetYArg
|
||||
* @param {number} widthArg
|
||||
* @param {number} heightArg
|
||||
* @param {number} pressure
|
||||
* @param {number} rotation
|
||||
* @param {number} tiltX
|
||||
* @param {number} tiltY
|
||||
* @param {number} pointerIdArg
|
||||
* @param {number} pointerType
|
||||
* @param {number} hwTimestampArg
|
||||
* @param {boolean} isPrimary
|
||||
* @return {undefined}
|
||||
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441246.aspx
|
||||
*/
|
||||
MSPointerEvent.prototype.initPointerEvent;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://msdn.microsoft.com/en-us/library/ie/hh968249(v=vs.85).aspx
|
||||
*/
|
||||
function MSGesture() {}
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
*/
|
||||
MSGesture.prototype.target;
|
||||
|
||||
/**
|
||||
* @param {number} pointerId
|
||||
*/
|
||||
MSGesture.prototype.addPointer = function(pointerId) {};
|
||||
|
||||
MSGesture.prototype.stop = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @see http://msdn.microsoft.com/en-us/library/ie/hh772076(v=vs.85).aspx
|
||||
*/
|
||||
function MSGestureEvent() {}
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.expansion;
|
||||
|
||||
/** @type {!MSGesture} */
|
||||
MSGestureEvent.prototype.gestureObject;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.hwTimestamp;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.rotation;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.scale;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.translationX;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.translationY;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.velocityAngular;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.velocityExpansion;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.velocityX;
|
||||
|
||||
/** @type {number} */
|
||||
MSGestureEvent.prototype.velocityY;
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {Window} viewArg
|
||||
* @param {number} detailArg
|
||||
* @param {number} screenXArg
|
||||
* @param {number} screenYArg
|
||||
* @param {number} clientXArg
|
||||
* @param {number} clientYArg
|
||||
* @param {number} offsetXArg
|
||||
* @param {number} offsetYArg
|
||||
* @param {number} translationXArg
|
||||
* @param {number} translationYArg
|
||||
* @param {number} scaleArg
|
||||
* @param {number} expansionArg
|
||||
* @param {number} rotationArg
|
||||
* @param {number} velocityXArg
|
||||
* @param {number} velocityYArg
|
||||
* @param {number} velocityExpansionArg
|
||||
* @param {number} velocityAngularArg
|
||||
* @param {number} hwTimestampArg
|
||||
* @param {EventTarget} relatedTargetArg
|
||||
* @return {undefined}
|
||||
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh441187.aspx
|
||||
*/
|
||||
MSGestureEvent.prototype.initGestureEvent;
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for IE's vector markup language, or VML.
|
||||
*
|
||||
* @externs
|
||||
* @author robbyw@google.com (Robby Walker)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @type {Object|string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263836(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.coordorigin;
|
||||
|
||||
/**
|
||||
* @type {Object|string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263837(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.coordsize;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263839(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.fillcolor;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263840(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.filled;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263871(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.path;
|
||||
|
||||
/**
|
||||
* @type {number|string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263877(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.rotation;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263881(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.strokecolor;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263882(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.stroked;
|
||||
|
||||
/**
|
||||
* @type {number|string}
|
||||
* @see http://msdn.microsoft.com/en-us/library/bb263883(VS.85).aspx
|
||||
*/
|
||||
Element.prototype.strokeweight;
|
||||
|
|
@ -1,163 +0,0 @@
|
|||
/*
|
||||
* Copyright 2013 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for the JS Internationalization API as defined in
|
||||
* http://www.ecma-international.org/ecma-402/1.0/
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/** @const */
|
||||
var Intl = {};
|
||||
|
||||
/**
|
||||
* NOTE: this API is not from ecma402 and is subject to change.
|
||||
* @param {string|Array.<string>=} opt_locales
|
||||
* @param {{type: (string|undefined)}=}
|
||||
* opt_options
|
||||
* @constructor
|
||||
*/
|
||||
Intl.v8BreakIterator = function(opt_locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {string} text
|
||||
*/
|
||||
Intl.v8BreakIterator.prototype.adoptText = function(text) {};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
Intl.v8BreakIterator.prototype.breakType = function() {};
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
*/
|
||||
Intl.v8BreakIterator.prototype.current = function() {};
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
*/
|
||||
Intl.v8BreakIterator.prototype.first = function() {};
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
*/
|
||||
Intl.v8BreakIterator.prototype.next = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string|Array.<string>=} opt_locales
|
||||
* @param {{usage: (string|undefined), localeMatcher: (string|undefined),
|
||||
* sensitivity: (string|undefined), ignorePunctuation: (boolean|undefined),
|
||||
* numeric: (boolean|undefined), caseFirst: (string|undefined)}=}
|
||||
* opt_options
|
||||
*/
|
||||
Intl.Collator = function(opt_locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {Array.<string>} locales
|
||||
* @param {{localeMatcher: (string|undefined)}=} opt_options
|
||||
*/
|
||||
Intl.Collator.supportedLocalesOf = function(locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {string} arg1
|
||||
* @param {string} arg2
|
||||
* @return {number}
|
||||
*/
|
||||
Intl.Collator.prototype.compare = function(arg1, arg2) {};
|
||||
|
||||
/**
|
||||
* @return {{locale: string, usage: string, sensitivity: string,
|
||||
* ignorePunctuation: boolean, collation: string, numeric: boolean,
|
||||
* caseFirst: string}}
|
||||
*/
|
||||
Intl.Collator.prototype.resolvedOptions = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string|Array.<string>=} opt_locales
|
||||
* @param {{localeMatcher: (string|undefined), useGrouping: (boolean|undefined),
|
||||
* numberingSystem: (string|undefined), style: (string|undefined),
|
||||
* currency: (string|undefined), currencyDisplay: (string|undefined),
|
||||
* minimumIntegerDigits: (number|undefined),
|
||||
* minimumFractionDigits: (number|undefined),
|
||||
* maximumFractionDigits: (number|undefined),
|
||||
* minimumSignificantDigits: (number|undefined),
|
||||
* maximumSignificantDigits: (number|undefined)}=}
|
||||
* opt_options
|
||||
*/
|
||||
Intl.NumberFormat = function(opt_locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {Array.<string>} locales
|
||||
* @param {{localeMatcher: (string|undefined)}=} opt_options
|
||||
*/
|
||||
Intl.NumberFormat.supportedLocalesOf = function(locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {number} num
|
||||
* @return {string}
|
||||
*/
|
||||
Intl.NumberFormat.prototype.format = function(num) {};
|
||||
|
||||
/**
|
||||
* @return {{locale: string, numberingSystem: string, style: string,
|
||||
* currency: (string|undefined), currencyDisplay: (string|undefined),
|
||||
* minimumIntegerDigits: number, minimumFractionDigits: number,
|
||||
* maximumFractionDigits: number, minimumSignificantDigits: number,
|
||||
* maximumSignificantDigits: number, useGrouping: boolean}}
|
||||
*/
|
||||
Intl.NumberFormat.prototype.resolvedOptions = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string|Array.<string>=} opt_locales
|
||||
* @param {{localeMatcher: (string|undefined),
|
||||
* formatMatcher: (string|undefined), calendar: (string|undefined),
|
||||
* numberingSystem: (string|undefined), tz: (string|undefined),
|
||||
* weekday: (string|undefined), era: (string|undefined),
|
||||
* year: (string|undefined), month: (string|undefined),
|
||||
* day: (string|undefined), hour: (string|undefined),
|
||||
* minute: (string|undefined), second: (string|undefined),
|
||||
* timeZoneName: (string|undefined), hour12: (boolean|undefined)}=}
|
||||
* opt_options
|
||||
*/
|
||||
Intl.DateTimeFormat = function(opt_locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {Array.<string>} locales
|
||||
* @param {{localeMatcher: string}=} opt_options
|
||||
*/
|
||||
Intl.DateTimeFormat.supportedLocalesOf = function(locales, opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {number} date
|
||||
* @return {string}
|
||||
*/
|
||||
Intl.DateTimeFormat.prototype.format = function(date) {};
|
||||
|
||||
/**
|
||||
* @return {{locale: string, calendar: string, numberingSystem: string,
|
||||
* timeZone: (string|undefined), weekday: (string|undefined),
|
||||
* era: (string|undefined), year: (string|undefined),
|
||||
* month: (string|undefined), day: (string|undefined),
|
||||
* hour: (string|undefined), minute: (string|undefined),
|
||||
* second: (string|undefined), timeZoneName: (string|undefined),
|
||||
* hour12: (boolean|undefined)}}
|
||||
*/
|
||||
Intl.DateTimeFormat.prototype.resolvedOptions = function() {};
|
||||
|
|
@ -1,362 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for all iPhone extensions. Created from:
|
||||
* http://developer.apple.com/library/safari/navigation/
|
||||
*
|
||||
* @externs
|
||||
* @author agrieve@google.com (Andrew Grieve)
|
||||
*/
|
||||
|
||||
/**
|
||||
* The Touch class represents a single touch on the surface. A touch is the
|
||||
* presence or movement of a finger that is part of a unique multi-touch
|
||||
* sequence.
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/TouchClassReference/Touch/Touch.html
|
||||
* @constructor
|
||||
*/
|
||||
function Touch() {}
|
||||
|
||||
/**
|
||||
* The x-coordinate of the touch's location relative to the window's viewport.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.clientX;
|
||||
|
||||
/**
|
||||
* The y-coordinate of the touch's location relative to the window's viewport.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.clientY;
|
||||
|
||||
/**
|
||||
* The unique identifier for this touch object.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.identifier;
|
||||
|
||||
/**
|
||||
* The x-coordinate of the touch's location in page coordinates.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.pageX;
|
||||
|
||||
/**
|
||||
* The y-coordinate of the touch's location in page coordinates.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.pageY;
|
||||
|
||||
/**
|
||||
* The x-coordinate of the touch's location in screen coordinates.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.screenX;
|
||||
|
||||
/**
|
||||
* The y-coordinate of the touch's location in screen coordinates.
|
||||
* @type {number}
|
||||
*/
|
||||
Touch.prototype.screenY;
|
||||
|
||||
/**
|
||||
* The target of this touch.
|
||||
* @type {EventTarget}
|
||||
*/
|
||||
Touch.prototype.target;
|
||||
|
||||
/**
|
||||
* Creates a new Touch object.
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html#//apple_ref/javascript/instm/Document/createTouch
|
||||
* @param {Window} view
|
||||
* @param {EventTarget} target
|
||||
* @param {number} identifier
|
||||
* @param {number} pageX
|
||||
* @param {number} pageY
|
||||
* @param {number} screenX
|
||||
* @param {number} screenY
|
||||
* @return {Touch}
|
||||
*/
|
||||
Document.prototype.createTouch = function(view, target, identifier, pageX,
|
||||
pageY, screenX, screenY) {};
|
||||
|
||||
/**
|
||||
* The TouchList class is used to represent a collection of Touch objects.
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/TouchListClassReference/TouchList/TouchList.html
|
||||
* @constructor
|
||||
*/
|
||||
function TouchList() {}
|
||||
|
||||
/**
|
||||
* The number of Touch objects in this TouchList object.
|
||||
* @type {number}
|
||||
*/
|
||||
TouchList.prototype.length;
|
||||
|
||||
/**
|
||||
* Returns the Touch object at the given index.
|
||||
* @param {number} index
|
||||
* @return {!Touch}
|
||||
*/
|
||||
TouchList.prototype.item = function(index) {};
|
||||
|
||||
/**
|
||||
* Creates a new TouchList object.
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html#//apple_ref/javascript/instm/Document/createTouchList
|
||||
* @param {Array.<Touch>} touches
|
||||
* @return {TouchList}
|
||||
*/
|
||||
Document.prototype.createTouchList = function(touches) {};
|
||||
|
||||
/**
|
||||
* The TouchEvent class encapsulates information about a touch event.
|
||||
*
|
||||
* <p>The system continually sends TouchEvent objects to an application as
|
||||
* fingers touch and move across a surface. A touch event provides a snapshot of
|
||||
* all touches during a multi-touch sequence, most importantly the touches that
|
||||
* are new or have changed for a particular target. A multi-touch sequence
|
||||
* begins when a finger first touches the surface. Other fingers may
|
||||
* subsequently touch the surface, and all fingers may move across the surface.
|
||||
* The sequence ends when the last of these fingers is lifted from the surface.
|
||||
* An application receives touch event objects during each phase of any touch.
|
||||
* </p>
|
||||
*
|
||||
* <p>The different types of TouchEvent objects that can occur are:
|
||||
* <ul>
|
||||
* <li>touchstart - Sent when a finger for a given event touches the surface.
|
||||
* <li>touchmove - Sent when a given event moves on the surface.
|
||||
* <li>touchend - Sent when a given event lifts from the surface.
|
||||
* <li>touchcancel - Sent when the system cancels tracking for the touch.
|
||||
* </ul>
|
||||
* TouchEvent objects are combined together to form high-level GestureEvent
|
||||
* objects that are also sent during a multi-touch sequence.</p>
|
||||
*
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/TouchEventClassReference/TouchEvent/TouchEvent.html
|
||||
* @extends {UIEvent}
|
||||
* @constructor
|
||||
*/
|
||||
function TouchEvent() {}
|
||||
|
||||
/**
|
||||
* A collection of Touch objects representing all touches associated with this
|
||||
* target.
|
||||
* @type {TouchList}
|
||||
*/
|
||||
TouchEvent.prototype.touches;
|
||||
|
||||
/**
|
||||
* A collection of Touch objects representing all touches associated with this
|
||||
* target.
|
||||
* @type {TouchList}
|
||||
*/
|
||||
TouchEvent.prototype.targetTouches;
|
||||
|
||||
/**
|
||||
* A collection of Touch objects representing all touches that changed in this event.
|
||||
* @type {TouchList}
|
||||
*/
|
||||
TouchEvent.prototype.changedTouches;
|
||||
|
||||
/**
|
||||
* The distance between two fingers since the start of an event as a multiplier
|
||||
* of the initial distance. The initial value is 1.0. If less than 1.0, the
|
||||
* gesture is pinch close (to zoom out). If greater than 1.0, the gesture is
|
||||
* pinch open (to zoom in).
|
||||
* @type {number}
|
||||
*/
|
||||
TouchEvent.prototype.scale;
|
||||
|
||||
/**
|
||||
* The delta rotation since the start of an event, in degrees, where clockwise
|
||||
* is positive and counter-clockwise is negative. The initial value is 0.0.
|
||||
* @type {number}
|
||||
*/
|
||||
TouchEvent.prototype.rotation;
|
||||
|
||||
/**
|
||||
* Initializes a newly created TouchEvent object.
|
||||
* @param {string} type
|
||||
* @param {boolean} canBubble
|
||||
* @param {boolean} cancelable
|
||||
* @param {Window} view
|
||||
* @param {number} detail
|
||||
* @param {number} screenX
|
||||
* @param {number} screenY
|
||||
* @param {number} clientX
|
||||
* @param {number} clientY
|
||||
* @param {boolean} ctrlKey
|
||||
* @param {boolean} altKey
|
||||
* @param {boolean} shiftKey
|
||||
* @param {boolean} metaKey
|
||||
* @param {TouchList} touches
|
||||
* @param {TouchList} targetTouches
|
||||
* @param {TouchList} changedTouches
|
||||
* @param {number} scale
|
||||
* @param {number} rotation
|
||||
*/
|
||||
TouchEvent.prototype.initTouchEvent = function(type, canBubble, cancelable,
|
||||
view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
|
||||
metaKey, touches, targetTouches, changedTouches, scale, rotation) {};
|
||||
|
||||
/**
|
||||
* The GestureEvent class encapsulates information about a multi-touch gesture.
|
||||
*
|
||||
* GestureEvent objects are high-level events that encapsulate the low-level
|
||||
* TouchEvent objects. Both GestureEvent and TouchEvent events are sent during
|
||||
* a multi-touch sequence. Gesture events contain scaling and rotation
|
||||
* information allowing gestures to be combined, if supported by the platform.
|
||||
* If not supported, one gesture ends before another starts. Listen for
|
||||
* GestureEvent events if you want to respond to gestures only, not process
|
||||
* the low-level TouchEvent objects.
|
||||
*
|
||||
* @see http://developer.apple.com/library/safari/#documentation/UserExperience/Reference/GestureEventClassReference/GestureEvent/GestureEvent.html
|
||||
* @extends {UIEvent}
|
||||
* @constructor
|
||||
*/
|
||||
function GestureEvent() {}
|
||||
|
||||
/**
|
||||
* The distance between two fingers since the start of an event as a multiplier
|
||||
* of the initial distance. The initial value is 1.0. If less than 1.0, the
|
||||
* gesture is pinch close (to zoom out). If greater than 1.0, the gesture is
|
||||
* pinch open (to zoom in).
|
||||
* @type {number}
|
||||
*/
|
||||
GestureEvent.prototype.scale;
|
||||
|
||||
/**
|
||||
* The delta rotation since the start of an event, in degrees, where clockwise
|
||||
* is positive and counter-clockwise is negative. The initial value is 0.0.
|
||||
* @type {number}
|
||||
*/
|
||||
GestureEvent.prototype.rotation;
|
||||
|
||||
/**
|
||||
* The target of this gesture.
|
||||
* @type {EventTarget}
|
||||
*/
|
||||
GestureEvent.prototype.target;
|
||||
|
||||
/**
|
||||
* Initializes a newly created GestureEvent object.
|
||||
* @param {string} type
|
||||
* @param {boolean} canBubble
|
||||
* @param {boolean} cancelable
|
||||
* @param {Window} view
|
||||
* @param {number} detail
|
||||
* @param {number} screenX
|
||||
* @param {number} screenY
|
||||
* @param {number} clientX
|
||||
* @param {number} clientY
|
||||
* @param {boolean} ctrlKey
|
||||
* @param {boolean} altKey
|
||||
* @param {boolean} shiftKey
|
||||
* @param {boolean} metaKey
|
||||
* @param {EventTarget} target
|
||||
* @param {number} scale
|
||||
* @param {number} rotation
|
||||
*/
|
||||
GestureEvent.prototype.initGestureEvent = function(type, canBubble, cancelable,
|
||||
view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey,
|
||||
metaKey, target, scale, rotation) {};
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when the system cancels tracking
|
||||
* for the touch.
|
||||
* @type {?function(!TouchEvent)}
|
||||
*/
|
||||
Element.prototype.ontouchcancel;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when a given event lifts from the
|
||||
* surface.
|
||||
* @type {?function(!TouchEvent)}
|
||||
*/
|
||||
Element.prototype.ontouchend;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when a finger for a given event
|
||||
* moves on the surface.
|
||||
* @type {?function(!TouchEvent)}
|
||||
*/
|
||||
Element.prototype.ontouchmove;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when a finger for a given event
|
||||
* touches the surface.
|
||||
* @type {?function(!TouchEvent)}
|
||||
*/
|
||||
Element.prototype.ontouchstart;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when a gesture is started by
|
||||
* two or more fingers touching the surface.
|
||||
* @type {?function(!GestureEvent)}
|
||||
*/
|
||||
Element.prototype.ongesturestart;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when fingers are moved during a
|
||||
* gesture.
|
||||
* @type {?function(!GestureEvent)}
|
||||
*/
|
||||
Element.prototype.ongesturechange;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when a gesture ends (when there are
|
||||
* 0 or 1 fingers touching the surface).
|
||||
* @type {?function(!GestureEvent)}
|
||||
*/
|
||||
Element.prototype.ongestureend;
|
||||
|
||||
/**
|
||||
* Specifies the JavaScript method to invoke when the browser device's
|
||||
* orientation changes, i.e.the device is rotated.
|
||||
* @type {?function(!Event)}
|
||||
* @see http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
|
||||
*/
|
||||
Window.prototype.onorientationchange;
|
||||
|
||||
/**
|
||||
* Returns the orientation of the browser's device, one of [-90, 0, 90, 180].
|
||||
* @type {number}
|
||||
* @see http://developer.apple.com/library/IOS/#documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
|
||||
*/
|
||||
Window.prototype.orientation;
|
||||
|
||||
/**
|
||||
* @implicitCast
|
||||
* @type {boolean}
|
||||
*/
|
||||
HTMLInputElement.prototype.autocorrect;
|
||||
|
||||
/**
|
||||
* @implicitCast
|
||||
* @type {boolean}
|
||||
*/
|
||||
HTMLInputElement.prototype.autocapitalize;
|
||||
|
||||
/**
|
||||
* @implicitCast
|
||||
* @type {boolean}
|
||||
*/
|
||||
HTMLTextAreaElement.prototype.autocorrect;
|
||||
|
||||
/**
|
||||
* @implicitCast
|
||||
* @type {boolean}
|
||||
*/
|
||||
HTMLTextAreaElement.prototype.autocapitalize;
|
||||
|
|
@ -1,142 +0,0 @@
|
|||
/*
|
||||
* Copyright 2012 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for the Media Source Extensions. Note that the
|
||||
* properties available here are the union of several versions of the spec.
|
||||
* @see http://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
*/
|
||||
function MediaSource() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
MediaSource.prototype.addEventListener = function(
|
||||
type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
MediaSource.prototype.removeEventListener = function(
|
||||
type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
MediaSource.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/** @type {Array.<SourceBuffer>} */
|
||||
MediaSource.prototype.sourceBuffers;
|
||||
|
||||
/** @type {Array.<SourceBuffer>} */
|
||||
MediaSource.prototype.activeSourceBuffers;
|
||||
|
||||
/** @type {number} */
|
||||
MediaSource.prototype.duration;
|
||||
|
||||
/**
|
||||
* @param {string} type
|
||||
* @return {SourceBuffer}
|
||||
*/
|
||||
MediaSource.prototype.addSourceBuffer = function(type) {};
|
||||
|
||||
/**
|
||||
* @param {SourceBuffer} sourceBuffer
|
||||
*/
|
||||
MediaSource.prototype.removeSourceBuffer = function(sourceBuffer) {};
|
||||
|
||||
/** @type {string} */
|
||||
MediaSource.prototype.readyState;
|
||||
|
||||
/**
|
||||
* @param {string=} opt_error
|
||||
*/
|
||||
MediaSource.prototype.endOfStream = function(opt_error) {};
|
||||
|
||||
/**
|
||||
* @param {string} type
|
||||
* @return {boolean}
|
||||
*/
|
||||
MediaSource.isTypeSupported = function(type) {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
*/
|
||||
function SourceBuffer() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
SourceBuffer.prototype.addEventListener = function(
|
||||
type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
SourceBuffer.prototype.removeEventListener = function(
|
||||
type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
SourceBuffer.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/** @type {string} */
|
||||
SourceBuffer.prototype.appendMode;
|
||||
|
||||
/** @type {boolean} */
|
||||
SourceBuffer.prototype.updating;
|
||||
|
||||
/** @type {TimeRanges} */
|
||||
SourceBuffer.prototype.buffered;
|
||||
|
||||
/** @type {number} */
|
||||
SourceBuffer.prototype.timestampOffset;
|
||||
|
||||
/** @type {number} */
|
||||
SourceBuffer.prototype.appendWindowStart;
|
||||
|
||||
/** @type {number} */
|
||||
SourceBuffer.prototype.appendWindowEnd;
|
||||
|
||||
/**
|
||||
* @param {Uint8Array} data
|
||||
*/
|
||||
SourceBuffer.prototype.append = function(data) {};
|
||||
|
||||
/**
|
||||
* @param {ArrayBuffer|ArrayBufferView} data
|
||||
*/
|
||||
SourceBuffer.prototype.appendBuffer = function(data) {};
|
||||
|
||||
/**
|
||||
* Abort the current segment append sequence.
|
||||
*/
|
||||
SourceBuffer.prototype.abort = function() {};
|
||||
|
||||
/**
|
||||
* @param {number} start
|
||||
* @param {number} end
|
||||
*/
|
||||
SourceBuffer.prototype.remove = function(start, end) {};
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
/*
|
||||
* Copyright 2015 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Externs for Page Visibility.
|
||||
*
|
||||
* @see http://www.w3.org/TR/page-visibility
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @enum {string}
|
||||
* @see http://www.w3.org/TR/page-visibility/#VisibilityState
|
||||
*/
|
||||
var VisibilityState = {
|
||||
HIDDEN: 'hidden',
|
||||
VISIBLE: 'visible',
|
||||
PRERENDER: 'prerender',
|
||||
UNLOADED: 'unloaded'
|
||||
};
|
||||
|
|
@ -1,125 +0,0 @@
|
|||
/*
|
||||
* Copyright 2013 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview This file describes the externs API for V8-specific objects.
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Stack frame elements in V8.
|
||||
* @constructor
|
||||
*/
|
||||
function CallSite() {}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the value of this.
|
||||
* @return {Object|undefined}
|
||||
*/
|
||||
CallSite.prototype.getThis = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the type of this as a string. This is the name of the function stored
|
||||
* in the constructor field of this, if available, otherwise the object's
|
||||
* [[Class]] internal property.
|
||||
* @return {string|undefined}
|
||||
*/
|
||||
CallSite.prototype.getTypeName = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the current function.
|
||||
* @return {!Function|undefined}
|
||||
*/
|
||||
CallSite.prototype.getFunction = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the name of the current function, typically its name property. If a
|
||||
* name property is not available an attempt will be made to try to infer a name
|
||||
* from the function's context.
|
||||
* @return {string|undefined}
|
||||
*/
|
||||
CallSite.prototype.getFunctionName = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Returns the name of the property of this or one of its prototypes that holds
|
||||
* the current function.
|
||||
* @return {string|undefined}
|
||||
*/
|
||||
CallSite.prototype.getMethodName = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* If this function was defined in a script returns the name of the script
|
||||
* @return {string|undefined}
|
||||
*/
|
||||
CallSite.prototype.getFileName = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* If this function was defined in a script returns the current line number.
|
||||
* @return {number|undefined}
|
||||
*/
|
||||
CallSite.prototype.getLineNumber = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* If this function was defined in a script returns the current column number.
|
||||
* @return {number|undefined}
|
||||
*/
|
||||
CallSite.prototype.getColumnNumber = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* If this function was created using a call to eval, returns a CallSite object
|
||||
* representing the location where eval was called
|
||||
* @return {CallSite|undefined}
|
||||
*/
|
||||
CallSite.prototype.getEvalOrigin = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Is this a toplevel invocation, that is, is this the global object?
|
||||
* @return {boolean}
|
||||
*/
|
||||
CallSite.prototype.isToplevel = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Does this call take place in code defined by a call to eval?
|
||||
* @return {boolean}
|
||||
*/
|
||||
CallSite.prototype.isEval = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Is this call in native V8 code?
|
||||
* @return {boolean}
|
||||
*/
|
||||
CallSite.prototype.isNative = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* Is this a constructor call?
|
||||
* @return {boolean}
|
||||
*/
|
||||
CallSite.prototype.isConstructor = function() {};
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
/*
|
||||
* Copyright 2011 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for timing control for script base animations. The
|
||||
* whole file has been fully type annotated.
|
||||
*
|
||||
* @see http://www.w3.org/TR/animation-timing/
|
||||
* @see http://webstuff.nfshost.com/anim-timing/Overview.html
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element In early versions of this API, the callback
|
||||
* was invoked only if the element was visible.
|
||||
* @return {number}
|
||||
*/
|
||||
function requestAnimationFrame(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function cancelRequestAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
function webkitRequestAnimationFrame(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function webkitCancelRequestAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function webkitCancelAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {?function(number)} callback It's legitimate to pass a null
|
||||
* callback and listen on the MozBeforePaint event instead.
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
function mozRequestAnimationFrame(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function mozCancelRequestAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function mozCancelAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
function msRequestAnimationFrame(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function msCancelRequestAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function msCancelAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
function oRequestAnimationFrame(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function oCancelRequestAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
function oCancelAnimationFrame(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
Window.prototype.requestAnimationFrame = function(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.cancelRequestAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.cancelAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
Window.prototype.webkitRequestAnimationFrame = function(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.webkitCancelRequestAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.webkitCancelAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {?function(number)} callback It's legitimate to pass a null
|
||||
* callback and listen on the MozBeforePaint event instead.
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
Window.prototype.mozRequestAnimationFrame = function(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.mozCancelRequestAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.mozCancelAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
Window.prototype.msRequestAnimationFrame = function(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.msCancelRequestAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.msCancelAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {function(number)} callback
|
||||
* @param {Element=} opt_element
|
||||
* @return {number}
|
||||
*/
|
||||
Window.prototype.oRequestAnimationFrame = function(callback, opt_element) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.oCancelRequestAnimationFrame = function(handle) {};
|
||||
|
||||
/**
|
||||
* @param {number} handle
|
||||
*/
|
||||
Window.prototype.oCancelAnimationFrame = function(handle) {};
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,199 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's CSS 3D Transforms specification.
|
||||
* The whole file has been fully type annotated. Created from
|
||||
* https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string=} opt_matrix
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#the-cssmatrix-interface
|
||||
*/
|
||||
function CSSMatrix(opt_matrix) {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m11;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m12;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m13;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m14;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m21;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m22;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m23;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m24;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m31;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m32;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m33;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m34;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m41;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m42;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m43;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#three-dimensional-attributes
|
||||
*/
|
||||
CSSMatrix.prototype.m44;
|
||||
|
||||
/**
|
||||
* @param {string} string
|
||||
* @return {void}
|
||||
*/
|
||||
CSSMatrix.prototype.setMatrixValue = function(string) {};
|
||||
|
||||
/**
|
||||
* @param {!CSSMatrix} secondMatrix
|
||||
* @return {!CSSMatrix}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-multiply-CSSMatrix-CSSMatrix-other
|
||||
*/
|
||||
CSSMatrix.prototype.multiply = function(secondMatrix) {};
|
||||
|
||||
/**
|
||||
* @return {CSSMatrix} Returns void if the matrix is non-invertable.
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-inverse-CSSMatrix
|
||||
*/
|
||||
CSSMatrix.prototype.inverse = function() {};
|
||||
|
||||
/**
|
||||
* @param {number=} opt_x Defaults to 0.
|
||||
* @param {number=} opt_y Defaults to 0.
|
||||
* @param {number=} opt_z Defaults to 0.
|
||||
* @return {!CSSMatrix}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-translate-CSSMatrix-unrestricted-double-tx-unrestricted-double-ty-unrestricted-double-tz
|
||||
*/
|
||||
CSSMatrix.prototype.translate = function(opt_x, opt_y, opt_z) {};
|
||||
|
||||
/**
|
||||
* @param {number=} opt_scaleX Defaults to 1.
|
||||
* @param {number=} opt_scaleY Defaults to scaleX.
|
||||
* @param {number=} opt_scaleZ Defaults to 1.
|
||||
* @return {!CSSMatrix}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-scale-CSSMatrix-unrestricted-double-scale-unrestricted-double-originX-unrestricted-double-originY
|
||||
*/
|
||||
CSSMatrix.prototype.scale = function(opt_scaleX, opt_scaleY, opt_scaleZ) {};
|
||||
|
||||
/**
|
||||
* @param {number=} opt_rotX Defaults to 0.
|
||||
* @param {number=} opt_rotY Defaults to 0.
|
||||
* @param {number=} opt_rotZ Defaults to rotX if rotY is not defined, else 0.
|
||||
* @return {!CSSMatrix}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotate-CSSMatrix-unrestricted-double-angle-unrestricted-double-originX-unrestricted-double-originY
|
||||
*/
|
||||
CSSMatrix.prototype.rotate = function(opt_rotX, opt_rotY, opt_rotZ) {};
|
||||
|
||||
/**
|
||||
* @param {number=} opt_x Defaults to 0.
|
||||
* @param {number=} opt_y Defaults to 0.
|
||||
* @param {number=} opt_z Defaults to 0.
|
||||
* @param {number=} opt_angle Defaults to 0.
|
||||
* @return {!CSSMatrix}
|
||||
* @see https://dvcs.w3.org/hg/FXTF/raw-file/tip/matrix/index.html#widl-CSSMatrix-rotateAxisAngle-CSSMatrix-unrestricted-double-x-unrestricted-double-y-unrestricted-double-z-unrestricted-double-angle
|
||||
*/
|
||||
CSSMatrix.prototype.rotateAxisAngle =
|
||||
function(opt_x, opt_y, opt_z, opt_angle) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string=} opt_matrix
|
||||
* @extends {CSSMatrix}
|
||||
* @see http://developer.apple.com/safari/library/documentation/AudioVideo/Reference/WebKitCSSMatrixClassReference/WebKitCSSMatrix/WebKitCSSMatrix.html#//apple_ref/javascript/instm/WebKitCSSMatrix/setMatrixValue
|
||||
*/
|
||||
function WebKitCSSMatrix(opt_matrix) {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string=} opt_matrix
|
||||
* @extends {CSSMatrix}
|
||||
* @see http://msdn.microsoft.com/en-us/library/windows/apps/hh453593.aspx
|
||||
*/
|
||||
function MSCSSMatrix(opt_matrix) {}
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Copyright 2013 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's device orientation and device motion
|
||||
* events specification.
|
||||
* This file depends on w3c_event.js.
|
||||
* The whole file has been partially type annotated.
|
||||
* Created from http://dev.w3.org/geo/api/spec-source-orientation.
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
*/
|
||||
function DeviceOrientationEvent() {}
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceOrientationEvent.prototype.alpha;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceOrientationEvent.prototype.beta;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceOrientationEvent.prototype.gamma;
|
||||
|
||||
/** @type {boolean} */
|
||||
DeviceOrientationEvent.prototype.absolute;
|
||||
|
||||
/**
|
||||
* @type {?number}
|
||||
* @see https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/webkitCompassAccuracy
|
||||
*/
|
||||
DeviceOrientationEvent.prototype.webkitCompassAccuracy;
|
||||
|
||||
/**
|
||||
* @type {?number}
|
||||
* @see https://developer.apple.com/library/safari/documentation/SafariDOMAdditions/Reference/DeviceOrientationEventClassRef/DeviceOrientationEvent/DeviceOrientationEvent.html#//apple_ref/javascript/instp/DeviceOrientationEvent/webkitCompassHeading
|
||||
*/
|
||||
DeviceOrientationEvent.prototype.webkitCompassHeading;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function DeviceAcceleration() {}
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceAcceleration.prototype.x;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceAcceleration.prototype.y;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceAcceleration.prototype.z;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
function DeviceRotationRate() {}
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceRotationRate.prototype.alpha;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceRotationRate.prototype.beta;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceRotationRate.prototype.gamma;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
*/
|
||||
function DeviceMotionEvent() {}
|
||||
|
||||
/** @type {?DeviceAcceleration} */
|
||||
DeviceMotionEvent.prototype.acceleration;
|
||||
|
||||
/** @type {?DeviceAcceleration} */
|
||||
DeviceMotionEvent.prototype.accelerationIncludingGravity;
|
||||
|
||||
/** @type {?DeviceRotationRate} */
|
||||
DeviceMotionEvent.prototype.rotationRate;
|
||||
|
||||
/** @type {?number} */
|
||||
DeviceMotionEvent.prototype.interval;
|
||||
|
|
@ -1,874 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's DOM Level 1 specification.
|
||||
* The whole file has been fully type annotated. Created from
|
||||
* http://www.w3.org/TR/REC-DOM-Level-1/ecma-script-language-binding.html
|
||||
*
|
||||
* @externs
|
||||
* @author stevey@google.com (Steve Yegge)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-17189187
|
||||
*/
|
||||
function DOMException() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.INDEX_SIZE_ERR = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.DOMSTRING_SIZE_ERR = 2;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.HIERARCHY_REQUEST_ERR = 3;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.WRONG_DOCUMENT_ERR = 4;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.INVALID_CHARACTER_ERR = 5;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.NO_DATA_ALLOWED_ERR = 6;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.NOT_FOUND_ERR = 8;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.NOT_SUPPORTED_ERR = 9;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.INUSE_ATTRIBUTE_ERR = 10;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-258A00AF
|
||||
*/
|
||||
function ExceptionCode() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-102161490
|
||||
*/
|
||||
function DOMImplementation() {}
|
||||
|
||||
/**
|
||||
* @param {string} feature
|
||||
* @param {string} version
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-5CED94D7
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementation.prototype.hasFeature = function(feature, version) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
function Node() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Node.prototype.addEventListener = function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Node.prototype.removeEventListener = function(type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
Node.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* @type {NamedNodeMap}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-attributes
|
||||
*/
|
||||
Node.prototype.attributes;
|
||||
|
||||
/**
|
||||
* @type {!NodeList}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-childNodes
|
||||
*/
|
||||
Node.prototype.childNodes;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-firstChild
|
||||
*/
|
||||
Node.prototype.firstChild;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-lastChild
|
||||
*/
|
||||
Node.prototype.lastChild;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-nextSibling
|
||||
*/
|
||||
Node.prototype.nextSibling;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-nodeName
|
||||
*/
|
||||
Node.prototype.nodeName;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-nodeValue
|
||||
*/
|
||||
Node.prototype.nodeValue;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-nodeType
|
||||
*/
|
||||
Node.prototype.nodeType;
|
||||
|
||||
/**
|
||||
* @type {Document}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-ownerDocument
|
||||
*/
|
||||
Node.prototype.ownerDocument;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-parentNode
|
||||
*/
|
||||
Node.prototype.parentNode;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-previousSibling
|
||||
*/
|
||||
Node.prototype.previousSibling;
|
||||
|
||||
/**
|
||||
* @param {Node} newChild
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-appendChild
|
||||
*/
|
||||
Node.prototype.appendChild = function(newChild) {};
|
||||
|
||||
/**
|
||||
* @param {boolean} deep
|
||||
* @return {!Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-cloneNode
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.cloneNode = function(deep) {};
|
||||
|
||||
/**
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-hasChildNodes
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.hasChildNodes = function() {};
|
||||
|
||||
/**
|
||||
* @param {Node} newChild
|
||||
* @param {Node} refChild
|
||||
* @return {!Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-insertBefore
|
||||
*/
|
||||
Node.prototype.insertBefore = function(newChild, refChild) {};
|
||||
|
||||
/**
|
||||
* @param {Node} oldChild
|
||||
* @return {!Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-removeChild
|
||||
*/
|
||||
Node.prototype.removeChild = function(oldChild) {};
|
||||
|
||||
/**
|
||||
* @param {Node} newChild
|
||||
* @param {Node} oldChild
|
||||
* @return {!Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-replaceChild
|
||||
*/
|
||||
Node.prototype.replaceChild = function(newChild, oldChild) {};
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.ATTRIBUTE_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.CDATA_SECTION_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.COMMENT_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.DOCUMENT_FRAGMENT_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.DOCUMENT_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.DOCUMENT_TYPE_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.ELEMENT_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.ENTITY_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.ENTITY_REFERENCE_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.PROCESSING_INSTRUCTION_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.TEXT_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.XPATH_NAMESPACE_NODE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1950641247
|
||||
*/
|
||||
Node.NOTATION_NODE;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-B63ED1A3
|
||||
*/
|
||||
function DocumentFragment() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#i-Document
|
||||
*/
|
||||
function Document() {}
|
||||
|
||||
/**
|
||||
* @type {DocumentType}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-doctype
|
||||
*/
|
||||
Document.prototype.doctype;
|
||||
|
||||
/**
|
||||
* @type {!Element}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-documentElement
|
||||
*/
|
||||
Document.prototype.documentElement;
|
||||
|
||||
/**
|
||||
* @type {DOMImplementation}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-implementation
|
||||
*/
|
||||
Document.prototype.implementation;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {!Attr}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createAttribute
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createAttribute = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} data
|
||||
* @return {!Comment}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createComment
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createComment = function(data) {};
|
||||
|
||||
/**
|
||||
* @param {string} data
|
||||
* @return {!CDATASection}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createCDATASection
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createCDATASection = function(data) {};
|
||||
|
||||
/**
|
||||
* @return {!DocumentFragment}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createDocumentFragment
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createDocumentFragment = function() {};
|
||||
|
||||
/**
|
||||
* Create a DOM element.
|
||||
*
|
||||
* Web components introduced the second parameter as a way of extending existing
|
||||
* tags (e.g. document.createElement('button', 'fancy-button')).
|
||||
*
|
||||
* @param {string} tagName
|
||||
* @param {string=} opt_typeExtension
|
||||
* @return {!Element}
|
||||
* @nosideeffects
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createElement
|
||||
* @see http://w3c.github.io/webcomponents/spec/custom/#extensions-to-document-interface-to-instantiate
|
||||
*/
|
||||
Document.prototype.createElement = function(tagName, opt_typeExtension) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {!EntityReference}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createEntityReference
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createEntityReference = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} target
|
||||
* @param {string} data
|
||||
* @return {!ProcessingInstruction}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createProcessingInstruction
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createProcessingInstruction = function(target, data) {};
|
||||
|
||||
/**
|
||||
* @param {number|string} data
|
||||
* @return {!Text}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-createTextNode
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.createTextNode = function(data) {};
|
||||
|
||||
/**
|
||||
* @param {string} tagname
|
||||
* @return {!NodeList}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-A6C9094
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.getElementsByTagName = function(tagname) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-536297177
|
||||
*/
|
||||
function NodeList() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-203510337
|
||||
*/
|
||||
NodeList.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-844377136
|
||||
*/
|
||||
NodeList.prototype.item = function(index) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1780488922
|
||||
*/
|
||||
function NamedNodeMap() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-6D0FB19E
|
||||
*/
|
||||
NamedNodeMap.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1074577549
|
||||
* @nosideeffects
|
||||
*/
|
||||
NamedNodeMap.prototype.getNamedItem = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-349467F9
|
||||
* @nosideeffects
|
||||
*/
|
||||
NamedNodeMap.prototype.item = function(index) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-D58B193
|
||||
*/
|
||||
NamedNodeMap.prototype.removeNamedItem = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {Node} arg
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1025163788
|
||||
*/
|
||||
NamedNodeMap.prototype.setNamedItem = function(arg) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-FF21A306
|
||||
*/
|
||||
function CharacterData() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-72AB8359
|
||||
*/
|
||||
CharacterData.prototype.data;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-7D61178C
|
||||
*/
|
||||
CharacterData.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {string} arg
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-32791A2F
|
||||
*/
|
||||
CharacterData.prototype.appendData = function(arg) {};
|
||||
|
||||
/**
|
||||
* @param {number} offset
|
||||
* @param {number} count
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-7C603781
|
||||
*/
|
||||
CharacterData.prototype.deleteData = function(offset, count) {};
|
||||
|
||||
/**
|
||||
* @param {number} offset
|
||||
* @param {string} arg
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-3EDB695F
|
||||
*/
|
||||
CharacterData.prototype.insertData = function(offset, arg) {};
|
||||
|
||||
/**
|
||||
* @param {number} offset
|
||||
* @param {number} count
|
||||
* @param {string} arg
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-E5CBA7FB
|
||||
*/
|
||||
CharacterData.prototype.replaceData = function(offset, count, arg) {};
|
||||
|
||||
/**
|
||||
* @param {number} offset
|
||||
* @param {number} count
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-6531BCCF
|
||||
* @nosideeffects
|
||||
*/
|
||||
CharacterData.prototype.substringData = function(offset, count) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-637646024
|
||||
*/
|
||||
function Attr() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1112119403
|
||||
*/
|
||||
Attr.prototype.name;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-862529273
|
||||
*/
|
||||
Attr.prototype.specified;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-221662474
|
||||
*/
|
||||
Attr.prototype.value;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-745549614
|
||||
*/
|
||||
function Element() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#attribute-tagName
|
||||
*/
|
||||
Element.prototype.tagName;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {number?=} opt_flags
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-getAttribute
|
||||
* @see http://msdn.microsoft.com/en-us/library/ms536429(VS.85).aspx
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getAttribute = function(name, opt_flags) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {Attr}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-getAttributeNode
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getAttributeNode = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} tagname
|
||||
* @return {!NodeList}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1938918D
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getElementsByTagName = function(tagname) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-removeAttribute
|
||||
*/
|
||||
Element.prototype.removeAttribute = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {Attr} oldAttr
|
||||
* @return {?Attr}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-removeAttributeNode
|
||||
*/
|
||||
Element.prototype.removeAttributeNode = function(oldAttr) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string|number|boolean} value Values are converted to strings with
|
||||
* ToString, so we accept number and boolean since both convert easily to
|
||||
* strings.
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-setAttribute
|
||||
*/
|
||||
Element.prototype.setAttribute = function(name, value) {};
|
||||
|
||||
/**
|
||||
* @param {Attr} newAttr
|
||||
* @return {?Attr}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#method-setAttributeNode
|
||||
*/
|
||||
Element.prototype.setAttributeNode = function(newAttr) {};
|
||||
|
||||
// Event handlers
|
||||
// The DOM level 3 spec has a good index of these
|
||||
// http://www.w3.org/TR/DOM-Level-3-Events/#event-types
|
||||
|
||||
/** @type {?function (Event)} */ Element.prototype.onabort;
|
||||
/** @type {?function (Event)} */ Element.prototype.onbeforeinput;
|
||||
/** @type {?function (Event)} */ Element.prototype.onbeforeunload;
|
||||
/** @type {?function (Event)} */ Element.prototype.onblur;
|
||||
/** @type {?function (Event)} */ Element.prototype.onchange;
|
||||
/** @type {?function (Event)} */ Element.prototype.onclick;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncompositionstart;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncompositionupdate;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncompositionend;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncontextmenu;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncopy;
|
||||
/** @type {?function (Event)} */ Element.prototype.oncut;
|
||||
/** @type {?function (Event)} */ Element.prototype.ondblclick;
|
||||
/** @type {?function (Event)} */ Element.prototype.onerror;
|
||||
/** @type {?function (Event)} */ Element.prototype.onfocus;
|
||||
/** @type {?function (Event)} */ Element.prototype.onfocusin;
|
||||
/** @type {?function (Event)} */ Element.prototype.onfocusout;
|
||||
/** @type {?function (Event)} */ Element.prototype.oninput;
|
||||
/** @type {?function (Event)} */ Element.prototype.onkeydown;
|
||||
/** @type {?function (Event)} */ Element.prototype.onkeypress;
|
||||
/** @type {?function (Event)} */ Element.prototype.onkeyup;
|
||||
/** @type {?function (Event)} */ Element.prototype.onload;
|
||||
/** @type {?function (Event)} */ Element.prototype.onunload;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmousedown;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmousemove;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmouseout;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmouseover;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmouseup;
|
||||
/** @type {?function (Event)} */ Element.prototype.onmousewheel;
|
||||
/** @type {?function (Event)} */ Element.prototype.onpaste;
|
||||
/** @type {?function (Event)} */ Element.prototype.onreset;
|
||||
/** @type {?function (Event)} */ Element.prototype.onresize;
|
||||
/** @type {?function (Event)} */ Element.prototype.onscroll;
|
||||
/** @type {?function (Event)} */ Element.prototype.onselect;
|
||||
/** @type {?function (Event=)} */ Element.prototype.onsubmit;
|
||||
/** @type {?function (Event)} */ Element.prototype.ontextinput;
|
||||
/** @type {?function (Event)} */ Element.prototype.onwheel;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {CharacterData}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1312295772
|
||||
*/
|
||||
function Text() {}
|
||||
|
||||
/**
|
||||
* @param {number} offset
|
||||
* @return {Text}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-38853C1D
|
||||
*/
|
||||
Text.prototype.splitText = function(offset) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {CharacterData}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1728279322
|
||||
*/
|
||||
function Comment() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Text}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-667469212
|
||||
*/
|
||||
function CDATASection() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-412266927
|
||||
*/
|
||||
function DocumentType() {}
|
||||
|
||||
/**
|
||||
* @type {NamedNodeMap}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1788794630
|
||||
*/
|
||||
DocumentType.prototype.entities;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1844763134
|
||||
*/
|
||||
DocumentType.prototype.name;
|
||||
|
||||
/**
|
||||
* @type {NamedNodeMap}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-D46829EF
|
||||
*/
|
||||
DocumentType.prototype.notations;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-5431D1B9
|
||||
*/
|
||||
function Notation() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-54F2B4D0
|
||||
*/
|
||||
Notation.prototype.publicId;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-E8AAB1D0
|
||||
*/
|
||||
Notation.prototype.systemId;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-527DCFF2
|
||||
*/
|
||||
function Entity() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-D7303025
|
||||
*/
|
||||
Entity.prototype.publicId;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-D7C29F3E
|
||||
*/
|
||||
Entity.prototype.systemId;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-6ABAEB38
|
||||
*/
|
||||
Entity.prototype.notationName;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-11C98490
|
||||
*/
|
||||
function EntityReference() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1004215813
|
||||
*/
|
||||
function ProcessingInstruction() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-837822393
|
||||
*/
|
||||
ProcessingInstruction.prototype.data;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core.html#ID-1478689192
|
||||
*/
|
||||
ProcessingInstruction.prototype.target;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
*/
|
||||
function Window() {}
|
||||
Window.prototype.Window;
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Window.prototype.addEventListener = function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Window.prototype.removeEventListener = function(type, listener, opt_useCapture)
|
||||
{};
|
||||
|
||||
/** @override */
|
||||
Window.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/** @type {?function (Event)} */ Window.prototype.onabort;
|
||||
/** @type {?function (Event)} */ Window.prototype.onbeforeunload;
|
||||
/** @type {?function (Event)} */ Window.prototype.onblur;
|
||||
/** @type {?function (Event)} */ Window.prototype.onchange;
|
||||
/** @type {?function (Event)} */ Window.prototype.onclick;
|
||||
/** @type {?function (Event)} */ Window.prototype.onclose;
|
||||
/** @type {?function (Event)} */ Window.prototype.oncontextmenu;
|
||||
/** @type {?function (Event)} */ Window.prototype.ondblclick;
|
||||
/** @type {?function (Event)} */ Window.prototype.ondragdrop;
|
||||
// onerror has a special signature.
|
||||
// See https://developer.mozilla.org/en/DOM/window.onerror
|
||||
// and http://msdn.microsoft.com/en-us/library/cc197053(VS.85).aspx
|
||||
/** @type {?function (string, string, number)} */
|
||||
Window.prototype.onerror;
|
||||
/** @type {?function (Event)} */ Window.prototype.onfocus;
|
||||
/** @type {?function (Event)} */ Window.prototype.onhashchange;
|
||||
/** @type {?function (Event)} */ Window.prototype.onkeydown;
|
||||
/** @type {?function (Event)} */ Window.prototype.onkeypress;
|
||||
/** @type {?function (Event)} */ Window.prototype.onkeyup;
|
||||
/** @type {?function (Event)} */ Window.prototype.onload;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmousedown;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmousemove;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmouseout;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmouseover;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmouseup;
|
||||
/** @type {?function (Event)} */ Window.prototype.onmousewheel;
|
||||
/** @type {?function (Event)} */ Window.prototype.onpaint;
|
||||
/** @type {?function (Event)} */ Window.prototype.onpopstate;
|
||||
/** @type {?function (Event)} */ Window.prototype.onreset;
|
||||
/** @type {?function (Event)} */ Window.prototype.onresize;
|
||||
/** @type {?function (Event)} */ Window.prototype.onscroll;
|
||||
/** @type {?function (Event)} */ Window.prototype.onselect;
|
||||
/** @type {?function (Event=)} */ Window.prototype.onsubmit;
|
||||
/** @type {?function (Event)} */ Window.prototype.onunload;
|
||||
/** @type {?function (Event)} */ Window.prototype.onwheel;
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,854 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's DOM Level 3 specification.
|
||||
* This file depends on w3c_dom2.js.
|
||||
* The whole file has been fully type annotated.
|
||||
* Created from
|
||||
* http://www.w3.org/TR/DOM-Level-3-Core/ecma-script-binding.html
|
||||
*
|
||||
* @externs
|
||||
* @author stevey@google.com (Steve Yegge)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.prototype.code;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.VALIDATION_ERR = 16;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-258A00AF
|
||||
*/
|
||||
DOMException.TYPE_MISMATCH_ERR = 17;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList
|
||||
*/
|
||||
function DOMStringList() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-length
|
||||
*/
|
||||
DOMStringList.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {string} str
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-contains
|
||||
*/
|
||||
DOMStringList.prototype.contains = function(str) {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMStringList-item
|
||||
*/
|
||||
DOMStringList.prototype.item = function(index) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList
|
||||
*/
|
||||
function NameList() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-length
|
||||
*/
|
||||
NameList.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {string} str
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-contains
|
||||
* @nosideeffects
|
||||
*/
|
||||
NameList.prototype.contains = function(str) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} name
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-containsNS
|
||||
* @nosideeffects
|
||||
*/
|
||||
NameList.prototype.containsNS = function(namespaceURI, name) {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-getName
|
||||
* @nosideeffects
|
||||
*/
|
||||
NameList.prototype.getName = function(index) {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#NameList-getNamespaceURI
|
||||
* @nosideeffects
|
||||
*/
|
||||
NameList.prototype.getNamespaceURI = function(index) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList
|
||||
*/
|
||||
function DOMImplementationList() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-length
|
||||
*/
|
||||
DOMImplementationList.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {DOMImplementation}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationList-item
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementationList.prototype.item = function(index) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementationSource
|
||||
*/
|
||||
function DOMImplementationSource() {}
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} publicId
|
||||
* @param {DocumentType} doctype
|
||||
* @return {Document}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocument
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementation.prototype.createDocument = function(namespaceURI, publicId, doctype) {};
|
||||
|
||||
/**
|
||||
* @param {string} qualifiedName
|
||||
* @param {string} publicId
|
||||
* @param {string} systemId
|
||||
* @return {DocumentType}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-DOM-createDocType
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementation.prototype.createDocumentType = function(qualifiedName, publicId, systemId) {};
|
||||
|
||||
/**
|
||||
* @param {string} features
|
||||
* @return {DOMImplementation}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpl
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementationSource.prototype.getDOMImplementation = function(features) {};
|
||||
|
||||
/**
|
||||
* @param {string} features
|
||||
* @return {DOMImplementationList}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-getDOMImpls
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementationSource.prototype.getDOMImplementationList = function(features) {};
|
||||
|
||||
/**
|
||||
* @param {string} feature
|
||||
* @param {string} version
|
||||
* @return {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMImplementation3-getFeature
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMImplementation.prototype.getFeature = function(feature, version) {};
|
||||
|
||||
/**
|
||||
* @param {Node} externalNode
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-adoptNode
|
||||
*/
|
||||
Document.prototype.adoptNode = function(externalNode) {};
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-documentURI
|
||||
*/
|
||||
Document.prototype.documentURI;
|
||||
|
||||
/**
|
||||
* @type {DOMConfiguration}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-domConfig
|
||||
*/
|
||||
Document.prototype.domConfig;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-inputEncoding
|
||||
*/
|
||||
Document.prototype.inputEncoding;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-strictErrorChecking
|
||||
*/
|
||||
Document.prototype.strictErrorChecking;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-encoding
|
||||
*/
|
||||
Document.prototype.xmlEncoding;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-standalone
|
||||
*/
|
||||
Document.prototype.xmlStandalone;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-version
|
||||
*/
|
||||
Document.prototype.xmlVersion;
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-normalizeDocument
|
||||
*/
|
||||
Document.prototype.normalizeDocument = function() {};
|
||||
|
||||
/**
|
||||
* @param {Node} n
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} qualifiedName
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Document3-renameNode
|
||||
*/
|
||||
Document.prototype.renameNode = function(n, namespaceURI, qualifiedName) {};
|
||||
|
||||
/**
|
||||
* @type {?string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-baseURI
|
||||
*/
|
||||
Node.prototype.baseURI;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSLocalN
|
||||
*/
|
||||
Node.prototype.localName;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSname
|
||||
*/
|
||||
Node.prototype.namespaceURI;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeNSPrefix
|
||||
*/
|
||||
Node.prototype.prefix;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @implicitCast
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-textContent
|
||||
*/
|
||||
Node.prototype.textContent;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_DISCONNECTED
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_DISCONNECTED = 0x01;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_PRECEDING
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_PRECEDING = 0x02;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_FOLLOWING
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_FOLLOWING = 0x04;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINS
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_CONTAINS = 0x08;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_CONTAINED_BY
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_CONTAINED_BY = 0x10;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node-DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
|
||||
*/
|
||||
Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20;
|
||||
|
||||
/**
|
||||
* @param {Node} other
|
||||
* @return {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.compareDocumentPosition = function(other) {};
|
||||
|
||||
/**
|
||||
* @param {string} feature
|
||||
* @param {string} version
|
||||
* @return {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getFeature
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.getFeature = function(feature, version) {};
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @return {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-getUserData
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.getUserData = function(key) {};
|
||||
|
||||
/**
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-NodeHasAttrs
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.hasAttributes = function() {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isDefaultNamespace
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.isDefaultNamespace = function(namespaceURI) {};
|
||||
|
||||
/**
|
||||
* @param {Node} arg
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isEqualNode
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.isEqualNode = function(arg) {};
|
||||
|
||||
/**
|
||||
* @param {Node} other
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-isSameNode
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.isSameNode = function(other) {};
|
||||
|
||||
/**
|
||||
* @param {string} feature
|
||||
* @param {string} version
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Level-2-Core-Node-supports
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.isSupported = function(feature, version) {};
|
||||
|
||||
/**
|
||||
* @param {string} prefix
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.lookupNamespaceURI = function(prefix) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespacePrefix
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.lookupPrefix = function(namespaceURI) {};
|
||||
|
||||
/**
|
||||
* @return undefined
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-normalize
|
||||
*/
|
||||
Node.prototype.normalize = function() {};
|
||||
|
||||
/**
|
||||
* @param {Object} key
|
||||
* @param {Object} data
|
||||
* @param {UserDataHandler} handler
|
||||
* @return {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-setUserData'
|
||||
*/
|
||||
Node.prototype.setUserData = function(key, data, handler) {};
|
||||
|
||||
/**
|
||||
* @param {string} query
|
||||
* @return {Node}
|
||||
* @see http://www.w3.org/TR/selectors-api/#queryselector
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.querySelector = function(query) {};
|
||||
|
||||
/**
|
||||
* @param {string} query
|
||||
* @return {!NodeList}
|
||||
* @see http://www.w3.org/TR/selectors-api/#queryselectorall
|
||||
* @nosideeffects
|
||||
*/
|
||||
Node.prototype.querySelectorAll = function(query) {};
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-ownerElement
|
||||
*/
|
||||
Attr.prototype.ownerElement;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-isId
|
||||
*/
|
||||
Attr.prototype.isId;
|
||||
|
||||
/**
|
||||
* @type {TypeInfo}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Attr-schemaTypeInfo
|
||||
*/
|
||||
Attr.prototype.schemaTypeInfo;
|
||||
|
||||
/**
|
||||
* @type {TypeInfo}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Element-schemaTypeInfo
|
||||
*/
|
||||
Element.prototype.schemaTypeInfo;
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @return {Attr}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAtNodeNS
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getAttributeNodeNS = function(namespaceURI, localName) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElGetAttrNS
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getAttributeNS = function(namespaceURI, localName) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @return {!NodeList}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-A6C90942
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.getElementsByTagNameNS = function(namespaceURI, localName) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttr
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.hasAttribute = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElHasAttrNS
|
||||
* @nosideeffects
|
||||
*/
|
||||
Element.prototype.hasAttributeNS = function(namespaceURI, localName) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElRemAtNS
|
||||
*/
|
||||
Element.prototype.removeAttributeNS = function(namespaceURI, localName) {};
|
||||
|
||||
/**
|
||||
* @param {Attr} newAttr
|
||||
* @return {Attr}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAtNodeNS
|
||||
*/
|
||||
Element.prototype.setAttributeNodeNS = function(newAttr) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} qualifiedName
|
||||
* @param {string|number|boolean} value Values are converted to strings with
|
||||
* ToString, so we accept number and boolean since both convert easily to
|
||||
* strings.
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetAttrNS
|
||||
*/
|
||||
Element.prototype.setAttributeNS = function(namespaceURI, qualifiedName, value) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {boolean} isId
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttr
|
||||
*/
|
||||
Element.prototype.setIdAttribute = function(name, isId) {};
|
||||
|
||||
/**
|
||||
* @param {Attr} idAttr
|
||||
* @param {boolean} isId
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttrNode
|
||||
*/
|
||||
Element.prototype.setIdAttributeNode = function(idAttr, isId) {};
|
||||
|
||||
/**
|
||||
* @param {string} namespaceURI
|
||||
* @param {string} localName
|
||||
* @param {boolean} isId
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ElSetIdAttrNS
|
||||
*/
|
||||
Element.prototype.setIdAttributeNS = function(namespaceURI, localName, isId) {};
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-wholeText
|
||||
*/
|
||||
Text.prototype.wholeText;
|
||||
|
||||
/**
|
||||
* @param {string} newText
|
||||
* @return {Text}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-replaceWholeText
|
||||
*/
|
||||
Text.prototype.replaceWholeText = function(newText) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo
|
||||
*/
|
||||
function TypeInfo() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_EXTENSION
|
||||
*/
|
||||
TypeInfo.prototype.DERIVATION_EXTENSION;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_LIST
|
||||
*/
|
||||
TypeInfo.prototype.DERIVATION_LIST;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_RESTRICTION
|
||||
*/
|
||||
TypeInfo.prototype.DERIVATION_RESTRICTION;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-DERIVATION_UNION
|
||||
*/
|
||||
TypeInfo.prototype.DERIVATION_UNION;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-typeName
|
||||
*/
|
||||
TypeInfo.prototype.typeName;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-typeNamespace
|
||||
*/
|
||||
TypeInfo.prototype.typeNamespace;
|
||||
|
||||
/**
|
||||
* @param {string} typeNamespaceArg
|
||||
* @param {string} typeNameArg
|
||||
* @param {number} derivationMethod
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#TypeInfo-isDerivedFrom
|
||||
* @nosideeffects
|
||||
*/
|
||||
TypeInfo.prototype.isDerivedFrom = function(typeNamespaceArg, typeNameArg, derivationMethod) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler
|
||||
*/
|
||||
function UserDataHandler() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-CLONED
|
||||
*/
|
||||
UserDataHandler.prototype.NODE_CLONED = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-IMPORTED
|
||||
*/
|
||||
UserDataHandler.prototype.NODE_IMPORTED = 2;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-DELETED
|
||||
*/
|
||||
UserDataHandler.prototype.NODE_DELETED = 3;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-RENAMED
|
||||
*/
|
||||
UserDataHandler.prototype.NODE_RENAMED = 4;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#UserDataHandler-ADOPTED
|
||||
*/
|
||||
UserDataHandler.prototype.NODE_ADOPTED = 5;
|
||||
|
||||
/**
|
||||
* @param {number} operation
|
||||
* @param {string} key
|
||||
* @param {*=} opt_data
|
||||
* @param {?Node=} opt_src
|
||||
* @param {?Node=} opt_dst
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-handleUserDataEvent
|
||||
*/
|
||||
UserDataHandler.prototype.handle = function(operation, key, opt_data,
|
||||
opt_src, opt_dst) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMError
|
||||
*/
|
||||
function DOMError() {}
|
||||
|
||||
/**
|
||||
* @type {DOMLocator}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-location
|
||||
*/
|
||||
DOMError.prototype.location;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-message
|
||||
*/
|
||||
DOMError.prototype.message;
|
||||
|
||||
/**
|
||||
* @type {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedData
|
||||
*/
|
||||
DOMError.prototype.relatedData;
|
||||
|
||||
/**
|
||||
* @type {Object}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-relatedException
|
||||
*/
|
||||
DOMError.prototype.relatedException;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-warning
|
||||
*/
|
||||
DOMError.SEVERITY_WARNING = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-error
|
||||
*/
|
||||
DOMError.SEVERITY_ERROR = 2;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity-fatal-error
|
||||
*/
|
||||
DOMError.SEVERITY_FATAL_ERROR = 3;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-severity
|
||||
*/
|
||||
DOMError.prototype.severity;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-DOMError-type
|
||||
*/
|
||||
DOMError.prototype.type;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/dom/#domerror
|
||||
*/
|
||||
DOMError.prototype.name;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ERROR-Interfaces-DOMErrorHandler
|
||||
*/
|
||||
function DOMErrorHandler() {}
|
||||
|
||||
/**
|
||||
* @param {DOMError} error
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-ERRORS-DOMErrorHandler-handleError
|
||||
*/
|
||||
DOMErrorHandler.prototype.handleError = function(error) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Interfaces-DOMLocator
|
||||
*/
|
||||
function DOMLocator() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-byteOffset
|
||||
*/
|
||||
DOMLocator.prototype.byteOffset;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-column-number
|
||||
*/
|
||||
DOMLocator.prototype.columnNumber;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-line-number
|
||||
*/
|
||||
DOMLocator.prototype.lineNumber;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-node
|
||||
*/
|
||||
DOMLocator.prototype.relatedNode;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-uri
|
||||
*/
|
||||
DOMLocator.prototype.uri;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMLocator-utf16Offset
|
||||
*/
|
||||
DOMLocator.prototype.utf16Offset;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration
|
||||
*/
|
||||
function DOMConfiguration() {}
|
||||
|
||||
/**
|
||||
* @type {DOMStringList}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-parameterNames
|
||||
*/
|
||||
DOMConfiguration.prototype.parameterNames;
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-canSetParameter
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMConfiguration.prototype.canSetParameter = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @return {*}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-getParameter
|
||||
* @nosideeffects
|
||||
*/
|
||||
DOMConfiguration.prototype.getParameter = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {*} value
|
||||
* @return {*}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#DOMConfiguration-property
|
||||
*/
|
||||
DOMConfiguration.prototype.setParameter = function(name, value) {};
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-internalSubset
|
||||
*/
|
||||
DocumentType.prototype.internalSubset;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-publicId
|
||||
*/
|
||||
DocumentType.prototype.publicId;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-Core-DocType-systemId
|
||||
*/
|
||||
DocumentType.prototype.systemId;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-inputEncoding
|
||||
*/
|
||||
Entity.prototype.inputEncoding;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-encoding
|
||||
*/
|
||||
Entity.prototype.xmlEncoding;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Core/core.html#Entity3-version
|
||||
*/
|
||||
Entity.prototype.xmlVersion;
|
||||
|
|
@ -1,56 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for DOM Element Traversal interface.
|
||||
* This file depends on w3c_dom1.js.
|
||||
* The whole file has been fully type annotated.
|
||||
* Created from:
|
||||
* http://www.w3.org/TR/ElementTraversal/#ecmascript-bindings
|
||||
*
|
||||
* @externs
|
||||
* @author arv@google.com (Erik Arvidsson)
|
||||
*/
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see https://developer.mozilla.org/En/DOM/Element.firstElementChild
|
||||
*/
|
||||
Element.prototype.firstElementChild;
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see https://developer.mozilla.org/En/DOM/Element.lastElementChild
|
||||
*/
|
||||
Element.prototype.lastElementChild;
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see https://developer.mozilla.org/En/DOM/Element.previousElementSibling
|
||||
*/
|
||||
Element.prototype.previousElementSibling;
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see https://developer.mozilla.org/En/DOM/Element.nextElementSibling
|
||||
*/
|
||||
Element.prototype.nextElementSibling;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see https://developer.mozilla.org/En/DOM/Element.childElementCount
|
||||
*/
|
||||
Element.prototype.childElementCount;
|
||||
|
|
@ -1,54 +0,0 @@
|
|||
/*
|
||||
* Copyright 2015 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's Encoding specification
|
||||
* https://encoding.spec.whatwg.org
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string=} encoding
|
||||
* @param {Object=} options
|
||||
*/
|
||||
function TextDecoder(encoding, options) {}
|
||||
|
||||
/** @type {string} **/ TextDecoder.prototype.encoding;
|
||||
/** @type {boolean} **/ TextDecoder.prototype.fatal;
|
||||
/** @type {boolean} **/ TextDecoder.prototype.ignoreBOM;
|
||||
|
||||
/**
|
||||
* @param {!Uint8Array} input
|
||||
* @param {Object=} options
|
||||
* @return {string}
|
||||
*/
|
||||
TextDecoder.prototype.decode = function decode(input, options) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string=} encoding
|
||||
* @param {Object=} options
|
||||
*/
|
||||
function TextEncoder(encoding, options) {}
|
||||
|
||||
/** @type {string} **/ TextEncoder.prototype.encoding;
|
||||
|
||||
/**
|
||||
* @param {string} input
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
TextEncoder.prototype.encode = function(input) {};
|
||||
|
|
@ -1,372 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's event specification.
|
||||
* The whole file has been fully type annotated.
|
||||
* Created from
|
||||
* http://www.w3.org/TR/DOM-Level-2-Events/ecma-script-binding.html
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
function EventTarget() {}
|
||||
|
||||
/**
|
||||
* @param {string} type
|
||||
* @param {EventListener|function(!Event):(boolean|undefined)} listener
|
||||
* @param {boolean} useCapture
|
||||
* @return {undefined}
|
||||
*/
|
||||
EventTarget.prototype.addEventListener = function(type, listener, useCapture)
|
||||
{};
|
||||
|
||||
/**
|
||||
* @param {string} type
|
||||
* @param {EventListener|function(!Event):(boolean|undefined)} listener
|
||||
* @param {boolean} useCapture
|
||||
* @return {undefined}
|
||||
*/
|
||||
EventTarget.prototype.removeEventListener = function(type, listener, useCapture)
|
||||
{};
|
||||
|
||||
/**
|
||||
* @param {!Event} evt
|
||||
* @return {boolean}
|
||||
*/
|
||||
EventTarget.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
function EventListener() {}
|
||||
|
||||
/**
|
||||
* @param {!Event} evt
|
||||
* @return {undefined}
|
||||
*/
|
||||
EventListener.prototype.handleEvent = function(evt) {};
|
||||
|
||||
// The EventInit interface and the parameters to the Event constructor are part
|
||||
// of DOM Level 3 (suggested) and the DOM "Living Standard" (mandated). They are
|
||||
// included here as externs cannot be redefined. The same applies to other
|
||||
// *EventInit interfaces and *Event constructors throughout this file. See:
|
||||
// http://www.w3.org/TR/DOM-Level-3-Events/#event-initializers
|
||||
// http://dom.spec.whatwg.org/#constructing-events
|
||||
// https://dvcs.w3.org/hg/d4e/raw-file/tip/source_respec.htm#event-constructors
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* bubbles: (boolean|undefined),
|
||||
* cancelable: (boolean|undefined)
|
||||
* }}
|
||||
*/
|
||||
var EventInit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {string} type
|
||||
* @param {EventInit=} opt_eventInitDict
|
||||
*/
|
||||
function Event(type, opt_eventInitDict) {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Events/ecma-script-binding.html
|
||||
*/
|
||||
Event.AT_TARGET;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Events/ecma-script-binding.html
|
||||
*/
|
||||
Event.BUBBLING_PHASE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Events/ecma-script-binding.html
|
||||
*/
|
||||
Event.CAPTURING_PHASE;
|
||||
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.type;
|
||||
|
||||
/** @type {EventTarget} */
|
||||
Event.prototype.target;
|
||||
|
||||
/** @type {EventTarget} */
|
||||
Event.prototype.currentTarget;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.eventPhase;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.bubbles;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.cancelable;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.timeStamp;
|
||||
|
||||
/**
|
||||
* Present for events spawned in browsers that support shadow dom.
|
||||
* @type {Array.<!Element>|undefined}
|
||||
*/
|
||||
Event.prototype.path;
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
*/
|
||||
Event.prototype.stopPropagation = function() {};
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
*/
|
||||
Event.prototype.preventDefault = function() {};
|
||||
|
||||
/**
|
||||
* @param {string} eventTypeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @return {undefined}
|
||||
*/
|
||||
Event.prototype.initEvent = function(eventTypeArg, canBubbleArg, cancelableArg) {};
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* bubbles: (boolean|undefined),
|
||||
* cancelable: (boolean|undefined),
|
||||
* detail: *
|
||||
* }}
|
||||
*/
|
||||
var CustomEventInit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @param {string} type
|
||||
* @param {CustomEventInit=} opt_eventInitDict
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-Events/#interface-CustomEvent
|
||||
*/
|
||||
function CustomEvent(type, opt_eventInitDict) {}
|
||||
|
||||
/**
|
||||
* @param {string} eventType
|
||||
* @param {boolean} bubbles
|
||||
* @param {boolean} cancelable
|
||||
* @param {*} detail
|
||||
*/
|
||||
CustomEvent.prototype.initCustomEvent = function(
|
||||
eventType, bubbles, cancelable, detail) {};
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
*/
|
||||
CustomEvent.prototype.detail;
|
||||
|
||||
/**
|
||||
* @interface
|
||||
*/
|
||||
function DocumentEvent() {}
|
||||
|
||||
/**
|
||||
* @param {string} eventType
|
||||
* @return {!Event}
|
||||
*/
|
||||
DocumentEvent.prototype.createEvent = function(eventType) {};
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* bubbles: (boolean|undefined),
|
||||
* cancelable: (boolean|undefined),
|
||||
* view: (Window|undefined),
|
||||
* detail: (number|undefined)
|
||||
* }}
|
||||
*/
|
||||
var UIEventInit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @param {string} type
|
||||
* @param {UIEventInit=} opt_eventInitDict
|
||||
*/
|
||||
function UIEvent(type, opt_eventInitDict) {}
|
||||
|
||||
/** @type {number} */
|
||||
UIEvent.prototype.detail;
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {Window} viewArg
|
||||
* @param {number} detailArg
|
||||
* @return {undefined}
|
||||
*/
|
||||
UIEvent.prototype.initUIEvent = function(typeArg, canBubbleArg, cancelableArg,
|
||||
viewArg, detailArg) {};
|
||||
|
||||
/**
|
||||
* @typedef {{
|
||||
* bubbles: (boolean|undefined),
|
||||
* cancelable: (boolean|undefined),
|
||||
* view: (Window|undefined),
|
||||
* detail: (number|undefined),
|
||||
* screenX: (number|undefined),
|
||||
* screenY: (number|undefined),
|
||||
* clientX: (number|undefined),
|
||||
* clientY: (number|undefined),
|
||||
* ctrlKey: (boolean|undefined),
|
||||
* shiftKey: (boolean|undefined),
|
||||
* altKey: (boolean|undefined),
|
||||
* metaKey: (boolean|undefined),
|
||||
* button: (number|undefined),
|
||||
* buttons: (number|undefined),
|
||||
* relatedTarget: (EventTarget|undefined)
|
||||
* }}
|
||||
*/
|
||||
var MouseEventInit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {UIEvent}
|
||||
* @param {string} type
|
||||
* @param {MouseEventInit=} opt_eventInitDict
|
||||
*/
|
||||
function MouseEvent(type, opt_eventInitDict) {}
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.screenX;
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.screenY;
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.clientX;
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.clientY;
|
||||
|
||||
/** @type {boolean} */
|
||||
MouseEvent.prototype.ctrlKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
MouseEvent.prototype.shiftKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
MouseEvent.prototype.altKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
MouseEvent.prototype.metaKey;
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.button;
|
||||
|
||||
/** @type {EventTarget} */
|
||||
MouseEvent.prototype.relatedTarget;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
*/
|
||||
function MutationEvent() {}
|
||||
|
||||
/** @type {Node} */
|
||||
MutationEvent.prototype.relatedNode;
|
||||
|
||||
/** @type {string} */
|
||||
MutationEvent.prototype.prevValue;
|
||||
|
||||
/** @type {string} */
|
||||
MutationEvent.prototype.newValue;
|
||||
|
||||
/** @type {string} */
|
||||
MutationEvent.prototype.attrName;
|
||||
|
||||
/** @type {number} */
|
||||
MutationEvent.prototype.attrChange;
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {Node} relatedNodeArg
|
||||
* @param {string} prevValueArg
|
||||
* @param {string} newValueArg
|
||||
* @param {string} attrNameArg
|
||||
* @param {number} attrChangeArg
|
||||
* @return {undefined}
|
||||
*/
|
||||
MutationEvent.prototype.initMutationEvent = function(typeArg, canBubbleArg, cancelableArg, relatedNodeArg, prevValueArg, newValueArg, attrNameArg, attrChangeArg) {};
|
||||
|
||||
|
||||
// DOM3
|
||||
/**
|
||||
* @typedef {{
|
||||
* bubbles: (boolean|undefined),
|
||||
* cancelable: (boolean|undefined),
|
||||
* view: (Window|undefined),
|
||||
* detail: (number|undefined),
|
||||
* char: (string|undefined),
|
||||
* key: (string|undefined),
|
||||
* code: (string|undefined),
|
||||
* location: (number|undefined),
|
||||
* ctrlKey: (boolean|undefined),
|
||||
* shiftKey: (boolean|undefined),
|
||||
* altKey: (boolean|undefined),
|
||||
* metaKey: (boolean|undefined),
|
||||
* repeat: (boolean|undefined),
|
||||
* locale: (string|undefined)
|
||||
* }}
|
||||
*/
|
||||
var KeyboardEventInit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {UIEvent}
|
||||
* @param {string} type
|
||||
* @param {KeyboardEventInit=} opt_eventInitDict
|
||||
*/
|
||||
function KeyboardEvent(type, opt_eventInitDict) {}
|
||||
|
||||
/** @type {string} */
|
||||
KeyboardEvent.prototype.keyIdentifier;
|
||||
|
||||
/** @type {boolean} */
|
||||
KeyboardEvent.prototype.ctrlKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
KeyboardEvent.prototype.shiftKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
KeyboardEvent.prototype.altKey;
|
||||
|
||||
/** @type {boolean} */
|
||||
KeyboardEvent.prototype.metaKey;
|
||||
|
||||
/**
|
||||
* @param {string} keyIdentifierArg
|
||||
* @return {boolean}
|
||||
*/
|
||||
KeyboardEvent.prototype.getModifierState = function(keyIdentifierArg) {};
|
||||
|
|
@ -1,63 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's event Level 3 specification.
|
||||
* This file depends on w3c_event.js.
|
||||
* The whole file has been partially type annotated.
|
||||
* Created from
|
||||
* http://www.w3.org/TR/DOM-Level-3-Events/#ecma-script-binding-ecma-binding
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {Window} viewArg
|
||||
* @param {string} keyIdentifierArg
|
||||
* @param {number} keyLocationArg
|
||||
* @param {string} modifiersList
|
||||
*/
|
||||
KeyboardEvent.prototype.initKeyboardEvent = function(typeArg, canBubbleArg, cancelableArg, viewArg, keyIdentifierArg, keyLocationArg, modifiersList) {};
|
||||
|
||||
/** @type {string} */
|
||||
KeyboardEvent.prototype.char;
|
||||
|
||||
/** @type {string} */
|
||||
KeyboardEvent.prototype.key;
|
||||
|
||||
/** @type {number} */
|
||||
KeyboardEvent.prototype.location;
|
||||
|
||||
/** @type {boolean} */
|
||||
KeyboardEvent.prototype.repeat;
|
||||
|
||||
/** @type {string} */
|
||||
KeyboardEvent.prototype.locale;
|
||||
|
||||
/** @type {number} */
|
||||
MouseEvent.prototype.buttons;
|
||||
|
||||
/** @type {boolean} */
|
||||
Event.prototype.defaultPrevented;
|
||||
|
||||
/** @type {string} */
|
||||
Event.prototype.namespaceURI;
|
||||
|
||||
/** @return {undefined} */
|
||||
Event.prototype.stopImmediatePropagation = function() {};
|
||||
|
|
@ -1,101 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's Geolocation specification
|
||||
* http://www.w3.org/TR/geolocation-API/
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/geolocation-API/#geolocation
|
||||
*/
|
||||
function Geolocation() {}
|
||||
|
||||
/**
|
||||
* @param {function(GeolocationPosition)} successCallback
|
||||
* @param {(function(GeolocationPositionError)|null)=} opt_errorCallback
|
||||
* @param {GeolocationPositionOptions=} opt_options
|
||||
*/
|
||||
Geolocation.prototype.getCurrentPosition = function(successCallback,
|
||||
opt_errorCallback,
|
||||
opt_options) {};
|
||||
|
||||
/**
|
||||
* @param {function(GeolocationPosition)} successCallback
|
||||
* @param {(function(GeolocationPositionError)|null)=} opt_errorCallback
|
||||
* @param {GeolocationPositionOptions=} opt_options
|
||||
* @return {number}
|
||||
*/
|
||||
Geolocation.prototype.watchPosition = function(successCallback,
|
||||
opt_errorCallback,
|
||||
opt_options) {};
|
||||
|
||||
/** @param {number} watchId */
|
||||
Geolocation.prototype.clearWatch = function(watchId) {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/geolocation-API/#coordinates
|
||||
*/
|
||||
function GeolocationCoordinates() {}
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.latitude;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.longitude;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.accuracy;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.altitude;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.altitudeAccuracy;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.heading;
|
||||
/** @type {number} */ GeolocationCoordinates.prototype.speed;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/geolocation-API/#position
|
||||
*/
|
||||
function GeolocationPosition() {}
|
||||
/** @type {GeolocationCoordinates} */
|
||||
GeolocationPosition.prototype.coords;
|
||||
/** @type {Date} */ GeolocationPosition.prototype.timestamp;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/geolocation-API/#position-options
|
||||
*/
|
||||
function GeolocationPositionOptions() {}
|
||||
/** @type {boolean} */
|
||||
GeolocationPositionOptions.prototype.enableHighAccuracy;
|
||||
/** @type {number} */ GeolocationPositionOptions.prototype.maximumAge;
|
||||
/** @type {number} */ GeolocationPositionOptions.prototype.timeout;
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/geolocation-API/#position-error
|
||||
*/
|
||||
function GeolocationPositionError() {}
|
||||
/** @type {number} */ GeolocationPositionError.prototype.code;
|
||||
/** @type {string} */ GeolocationPositionError.prototype.message;
|
||||
/** @type {number} */ GeolocationPositionError.prototype.UNKNOWN_ERROR;
|
||||
/** @type {number} */ GeolocationPositionError.prototype.PERMISSION_DENIED;
|
||||
/** @type {number} */
|
||||
GeolocationPositionError.prototype.POSITION_UNAVAILABLE;
|
||||
/** @type {number} */ GeolocationPositionError.prototype.TIMEOUT;
|
||||
|
||||
/** @type {Geolocation} */
|
||||
Navigator.prototype.geolocation;
|
||||
|
|
@ -1,914 +0,0 @@
|
|||
/*
|
||||
* Copyright 2011 The Closure Compiler Authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's IndexedDB API. In Chrome all the
|
||||
* IndexedDB classes are prefixed with 'webkit'. In order to access constants
|
||||
* and static methods of these classes they must be duplicated with the
|
||||
* prefix here.
|
||||
* @see http://www.w3.org/TR/IndexedDB/
|
||||
*
|
||||
* @externs
|
||||
* @author guido.tapia@picnet.com.au (Guido Tapia)
|
||||
*/
|
||||
|
||||
/** @type {IDBFactory} */
|
||||
Window.prototype.moz_indexedDB;
|
||||
|
||||
/** @type {IDBFactory} */
|
||||
Window.prototype.mozIndexedDB;
|
||||
|
||||
/** @type {IDBFactory} */
|
||||
Window.prototype.webkitIndexedDB;
|
||||
|
||||
/** @type {IDBFactory} */
|
||||
Window.prototype.msIndexedDB;
|
||||
|
||||
/** @type {IDBFactory} */
|
||||
Window.prototype.indexedDB;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBFactory
|
||||
*/
|
||||
function IDBFactory() {}
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the database to open.
|
||||
* @param {number=} opt_version The version at which to open the database.
|
||||
* @return {!IDBOpenDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBFactory.prototype.open = function(name, opt_version) {};
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the database to delete.
|
||||
* @return {!IDBOpenDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBFactory.prototype.deleteDatabase = function(name) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBDatabaseException
|
||||
*/
|
||||
function IDBDatabaseException() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBDatabaseException}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBDatabaseException
|
||||
*/
|
||||
function webkitIDBDatabaseException() {}
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.UNKNOWN_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.UNKNOWN_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.NON_TRANSIENT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.NON_TRANSIENT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.NOT_FOUND_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.NOT_FOUND_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.CONSTRAINT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.CONSTRAINT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.DATA_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.DATA_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.NOT_ALLOWED_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.NOT_ALLOWED_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.TRANSACTION_INACTIVE_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.TRANSACTION_INACTIVE_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.ABORT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.ABORT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.READ_ONLY_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.READ_ONLY_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.TIMEOUT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.TIMEOUT_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.QUOTA_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.QUOTA_ERR;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBDatabaseException.prototype.code;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBDatabaseException.prototype.code;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
IDBDatabaseException.prototype.message;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {string}
|
||||
*/
|
||||
webkitIDBDatabaseException.prototype.message;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequest
|
||||
*/
|
||||
function IDBRequest() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
IDBRequest.prototype.addEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
IDBRequest.prototype.removeEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
IDBRequest.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBRequest}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBRequest
|
||||
*/
|
||||
function webkitIDBRequest() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
IDBRequest.LOADING;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
webkitIDBRequest.LOADING;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
IDBRequest.DONE;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
webkitIDBRequest.DONE;
|
||||
|
||||
/** @type {number} */
|
||||
IDBRequest.prototype.readyState; // readonly
|
||||
|
||||
/** @type {function(!Event)} */
|
||||
IDBRequest.prototype.onsuccess = function(e) {};
|
||||
|
||||
/** @type {function(!Event)} */
|
||||
IDBRequest.prototype.onerror = function(e) {};
|
||||
|
||||
/** @type {*} */
|
||||
IDBRequest.prototype.result; // readonly
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @deprecated Use "error"
|
||||
*/
|
||||
IDBRequest.prototype.errorCode; // readonly
|
||||
|
||||
|
||||
/** @type {!DOMError} */
|
||||
IDBRequest.prototype.error; // readonly
|
||||
|
||||
/** @type {Object} */
|
||||
IDBRequest.prototype.source; // readonly
|
||||
|
||||
/** @type {IDBTransaction} */
|
||||
IDBRequest.prototype.transaction; // readonly
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBRequest}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBOpenDBRequest
|
||||
*/
|
||||
function IDBOpenDBRequest() {}
|
||||
|
||||
/**
|
||||
* @type {function(!IDBVersionChangeEvent)}
|
||||
*/
|
||||
IDBOpenDBRequest.prototype.onblocked = function(e) {};
|
||||
|
||||
/**
|
||||
* @type {function(!IDBVersionChangeEvent)}
|
||||
*/
|
||||
IDBOpenDBRequest.prototype.onupgradeneeded = function(e) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBDatabase
|
||||
*/
|
||||
function IDBDatabase() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
IDBDatabase.prototype.name;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
IDBDatabase.prototype.description;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
IDBDatabase.prototype.version;
|
||||
|
||||
/**
|
||||
* @type {DOMStringList}
|
||||
* @const
|
||||
*/
|
||||
IDBDatabase.prototype.objectStoreNames;
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the object store.
|
||||
* @param {Object=} opt_parameters Parameters to be passed
|
||||
* creating the object store.
|
||||
* @return {!IDBObjectStore} The created/open object store.
|
||||
*/
|
||||
IDBDatabase.prototype.createObjectStore =
|
||||
function(name, opt_parameters) {};
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the object store to remove.
|
||||
*/
|
||||
IDBDatabase.prototype.deleteObjectStore = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} version The new version of the database.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBDatabase.prototype.setVersion = function(version) {};
|
||||
|
||||
/**
|
||||
* @param {Array.<string>} storeNames The stores to open in this transaction.
|
||||
* @param {(number|string)=} mode The mode for opening the object stores.
|
||||
* @return {!IDBTransaction} The IDBRequest object.
|
||||
*/
|
||||
IDBDatabase.prototype.transaction = function(storeNames, mode) {};
|
||||
|
||||
/**
|
||||
* Closes the database connection.
|
||||
*/
|
||||
IDBDatabase.prototype.close = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBDatabase.prototype.onabort = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBDatabase.prototype.onerror = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBDatabase.prototype.onversionchange = function() {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
IDBDatabase.prototype.addEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
IDBDatabase.prototype.removeEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
IDBDatabase.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* Typedef for valid key types according to the w3 specification. Note that this
|
||||
* is slightly wider than what is actually allowed, as all Array elements must
|
||||
* have a valid key type.
|
||||
* @see http://www.w3.org/TR/IndexedDB/#key-construct
|
||||
* @typedef {number|string|!Date|!Array.<?>}
|
||||
*/
|
||||
var IDBKeyType;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBObjectStore
|
||||
*/
|
||||
function IDBObjectStore() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
IDBObjectStore.prototype.name;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
IDBObjectStore.prototype.keyPath;
|
||||
|
||||
/**
|
||||
* @type {DOMStringList}
|
||||
*/
|
||||
IDBObjectStore.prototype.indexNames;
|
||||
|
||||
/** @type {IDBTransaction} */
|
||||
IDBObjectStore.prototype.transaction;
|
||||
|
||||
/** @type {boolean} */
|
||||
IDBObjectStore.prototype.autoIncrement;
|
||||
|
||||
/**
|
||||
* @param {*} value The value to put into the object store.
|
||||
* @param {IDBKeyType=} key The key of this value.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.put = function(value, key) {};
|
||||
|
||||
/**
|
||||
* @param {*} value The value to add into the object store.
|
||||
* @param {IDBKeyType=} key The key of this value.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.add = function(value, key) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} key The key of this value.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.delete = function(key) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType|!IDBKeyRange} key The key of the document to retrieve.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.get = function(key) {};
|
||||
|
||||
/**
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.clear = function() {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyRange=} range The range of the cursor.
|
||||
* @param {(number|string)=} direction The direction of cursor enumeration.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBObjectStore.prototype.openCursor = function(range, direction) {};
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the index.
|
||||
* @param {string|!Array.<string>} keyPath The path to the index key.
|
||||
* @param {Object=} opt_paramters Optional parameters
|
||||
* for the created index.
|
||||
* @return {!IDBIndex} The IDBIndex object.
|
||||
*/
|
||||
IDBObjectStore.prototype.createIndex = function(name, keyPath, opt_paramters) {};
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the index to retrieve.
|
||||
* @return {!IDBIndex} The IDBIndex object.
|
||||
*/
|
||||
IDBObjectStore.prototype.index = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} indexName The name of the index to remove.
|
||||
*/
|
||||
IDBObjectStore.prototype.deleteIndex = function(indexName) {};
|
||||
|
||||
/**
|
||||
* @param {(IDBKeyType|IDBKeyRange)=} key The key of this value.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
* @see http://www.w3.org/TR/IndexedDB/#widl-IDBObjectStore-count
|
||||
*/
|
||||
IDBObjectStore.prototype.count = function(key) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBIndex
|
||||
*/
|
||||
function IDBIndex() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
IDBIndex.prototype.name;
|
||||
|
||||
/**
|
||||
* @type {!IDBObjectStore}
|
||||
* @const
|
||||
*/
|
||||
IDBIndex.prototype.objectStore;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
IDBIndex.prototype.keyPath;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @const
|
||||
*/
|
||||
IDBIndex.prototype.unique;
|
||||
|
||||
/**
|
||||
* @param {IDBKeyRange=} range The range of the cursor.
|
||||
* @param {(number|string)=} direction The direction of cursor enumeration.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBIndex.prototype.openCursor = function(range, direction) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyRange=} range The range of the cursor.
|
||||
* @param {(number|string)=} direction The direction of cursor enumeration.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBIndex.prototype.openKeyCursor = function(range, direction) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType|!IDBKeyRange} key The id of the object to retrieve.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBIndex.prototype.get = function(key) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType|!IDBKeyRange} key The id of the object to retrieve.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBIndex.prototype.getKey = function(key) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBCursor
|
||||
*/
|
||||
function IDBCursor() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBCursor}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBCursor
|
||||
*/
|
||||
function webkitIDBCursor() {}
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBCursor.NEXT;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBCursor.NEXT;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBCursor.NEXT_NO_DUPLICATE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBCursor.NEXT_NO_DUPLICATE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBCursor.PREV;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBCursor.PREV;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBCursor.PREV_NO_DUPLICATE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBCursor.PREV_NO_DUPLICATE;
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
* @const
|
||||
*/
|
||||
IDBCursor.prototype.source;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
IDBCursor.prototype.direction;
|
||||
|
||||
/**
|
||||
* @type {IDBKeyType}
|
||||
* @const
|
||||
*/
|
||||
IDBCursor.prototype.key;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
IDBCursor.prototype.primaryKey;
|
||||
|
||||
/**
|
||||
* @param {*} value The new value for the current object in the cursor.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBCursor.prototype.update = function(value) {};
|
||||
|
||||
/**
|
||||
* Note: Must be quoted to avoid parse error.
|
||||
* @param {IDBKeyType=} key Continue enumerating the cursor from the specified
|
||||
* key (or next).
|
||||
*/
|
||||
IDBCursor.prototype.continue = function(key) {};
|
||||
|
||||
/**
|
||||
* @param {number} count Number of times to iterate the cursor.
|
||||
*/
|
||||
IDBCursor.prototype.advance = function(count) {};
|
||||
|
||||
/**
|
||||
* Note: Must be quoted to avoid parse error.
|
||||
* @return {!IDBRequest} The IDBRequest object.
|
||||
*/
|
||||
IDBCursor.prototype.delete = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBCursor}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBCursorWithValue
|
||||
*/
|
||||
function IDBCursorWithValue() {}
|
||||
|
||||
/** @type {*} */
|
||||
IDBCursorWithValue.prototype.value; // readonly
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBTransaction
|
||||
*/
|
||||
function IDBTransaction() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBTransaction}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBTransaction
|
||||
*/
|
||||
function webkitIDBTransaction() {}
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBTransaction.READ_WRITE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBTransaction.READ_WRITE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBTransaction.READ_ONLY;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBTransaction.READ_ONLY;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
IDBTransaction.VERSION_CHANGE;
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {number}
|
||||
*/
|
||||
webkitIDBTransaction.VERSION_CHANGE;
|
||||
|
||||
/**
|
||||
* @type {number|string}
|
||||
* @const
|
||||
*/
|
||||
IDBTransaction.prototype.mode;
|
||||
|
||||
/**
|
||||
* @type {IDBDatabase}
|
||||
* @const
|
||||
*/
|
||||
IDBTransaction.prototype.db;
|
||||
|
||||
/**
|
||||
* @param {string} name The name of the object store to retrieve.
|
||||
* @return {!IDBObjectStore} The object store.
|
||||
*/
|
||||
IDBTransaction.prototype.objectStore = function(name) {};
|
||||
|
||||
/**
|
||||
* Aborts the transaction.
|
||||
*/
|
||||
IDBTransaction.prototype.abort = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBTransaction.prototype.onabort = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBTransaction.prototype.oncomplete = function() {};
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
*/
|
||||
IDBTransaction.prototype.onerror = function() {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBKeyRange
|
||||
*/
|
||||
function IDBKeyRange() {}
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBKeyRange}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBKeyRange
|
||||
*/
|
||||
function webkitIDBKeyRange() {}
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
* @const
|
||||
*/
|
||||
IDBKeyRange.prototype.lower;
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
* @const
|
||||
*/
|
||||
IDBKeyRange.prototype.upper;
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
* @const
|
||||
*/
|
||||
IDBKeyRange.prototype.lowerOpen;
|
||||
|
||||
/**
|
||||
* @type {*}
|
||||
* @const
|
||||
*/
|
||||
IDBKeyRange.prototype.upperOpen;
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} value The single key value of this range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
IDBKeyRange.only = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} value The single key value of this range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
webkitIDBKeyRange.only = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} bound Creates a lower bound key range.
|
||||
* @param {boolean=} open Open the key range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
IDBKeyRange.lowerBound = function(bound, open) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} bound Creates a lower bound key range.
|
||||
* @param {boolean=} open Open the key range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
webkitIDBKeyRange.lowerBound = function(bound, open) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} bound Creates an upper bound key range.
|
||||
* @param {boolean=} open Open the key range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
IDBKeyRange.upperBound = function(bound, open) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} bound Creates an upper bound key range.
|
||||
* @param {boolean=} open Open the key range.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
webkitIDBKeyRange.upperBound = function(bound, open) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} left The left bound value.
|
||||
* @param {IDBKeyType} right The right bound value.
|
||||
* @param {boolean=} openLeft Whether the left bound value should be excluded.
|
||||
* @param {boolean=} openRight Whether the right bound value should be excluded.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
IDBKeyRange.bound = function(left, right, openLeft, openRight) {};
|
||||
|
||||
/**
|
||||
* @param {IDBKeyType} left The left bound value.
|
||||
* @param {IDBKeyType} right The right bound value.
|
||||
* @param {boolean=} openLeft Whether the left bound value should be excluded.
|
||||
* @param {boolean=} openRight Whether the right bound value should be excluded.
|
||||
* @return {!IDBKeyRange} The key range.
|
||||
*/
|
||||
webkitIDBKeyRange.bound = function(left, right, openLeft, openRight) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBVersionChangeEvent
|
||||
*/
|
||||
function IDBVersionChangeEvent() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
IDBVersionChangeEvent.prototype.oldVersion;
|
||||
|
||||
/**
|
||||
* @type {?number}
|
||||
* @const
|
||||
*/
|
||||
IDBVersionChangeEvent.prototype.newVersion;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {IDBVersionChangeEvent}
|
||||
* @see http://www.w3.org/TR/IndexedDB/#idl-def-IDBVersionChangeEvent
|
||||
*/
|
||||
function webkitIDBVersionChangeEvent() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
webkitIDBVersionChangeEvent.prototype.version;
|
||||
|
|
@ -1,161 +0,0 @@
|
|||
/*
|
||||
* Copyright 2011 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's Navigation Timing specification.
|
||||
*
|
||||
* Created from
|
||||
* @see http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/NavigationTiming/Overview.html
|
||||
* @see http://w3c-test.org/webperf/specs/ResourceTiming
|
||||
* @see http://www.w3.org/TR/performance-timeline
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/** @constructor */
|
||||
function PerformanceTiming() {}
|
||||
/** @type {number} */ PerformanceTiming.prototype.navigationStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.unloadEventStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.unloadEventEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.redirectStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.redirectEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.fetchStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domainLookupStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domainLookupEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.connectStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.connectEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.secureConnectionStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.requestStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.responseStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.responseEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domLoading;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domInteractive;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domContentLoadedEventStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domContentLoadedEventEnd;
|
||||
/** @type {number} */ PerformanceTiming.prototype.domComplete;
|
||||
/** @type {number} */ PerformanceTiming.prototype.loadEventStart;
|
||||
/** @type {number} */ PerformanceTiming.prototype.loadEventEnd;
|
||||
|
||||
/** @constructor */
|
||||
function PerformanceEntry() {}
|
||||
/** @type {string} */ PerformanceEntry.prototype.name;
|
||||
/** @type {string} */ PerformanceEntry.prototype.entryType;
|
||||
/** @type {number} */ PerformanceEntry.prototype.startTime;
|
||||
/** @type {number} */ PerformanceEntry.prototype.duration;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {PerformanceEntry}
|
||||
*/
|
||||
function PerformanceResourceTiming() {}
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.redirectStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.redirectEnd;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.fetchStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.domainLookupStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.domainLookupEnd;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.connectStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.connectEnd;
|
||||
/** @type {number} */
|
||||
PerformanceResourceTiming.prototype.secureConnectionStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.requestStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.responseStart;
|
||||
/** @type {number} */ PerformanceResourceTiming.prototype.responseEnd;
|
||||
/** @type {string} */ PerformanceResourceTiming.prototype.initiatorType;
|
||||
|
||||
/** @constructor */
|
||||
function PerformanceNavigation() {}
|
||||
/** @type {number} */ PerformanceNavigation.prototype.TYPE_NAVIGATE = 0;
|
||||
/** @type {number} */ PerformanceNavigation.prototype.TYPE_RELOAD = 1;
|
||||
/** @type {number} */ PerformanceNavigation.prototype.TYPE_BACK_FORWARD = 2;
|
||||
/** @type {number} */ PerformanceNavigation.prototype.TYPE_RESERVED = 255;
|
||||
/** @type {number} */ PerformanceNavigation.prototype.type;
|
||||
/** @type {number} */ PerformanceNavigation.prototype.redirectCount;
|
||||
|
||||
// Only available in WebKit, and only with the --enable-memory-info flag.
|
||||
/** @constructor */
|
||||
function PerformanceMemory() {}
|
||||
/** @type {number} */ PerformanceMemory.prototype.jsHeapSizeLimit;
|
||||
/** @type {number} */ PerformanceMemory.prototype.totalJSHeapSize;
|
||||
/** @type {number} */ PerformanceMemory.prototype.usedJSHeapSize;
|
||||
|
||||
/** @constructor */
|
||||
function Performance() {}
|
||||
/** @type {PerformanceTiming} */ Performance.prototype.timing;
|
||||
/** @type {PerformanceNavigation} */ Performance.prototype.navigation;
|
||||
|
||||
/**
|
||||
* Clears the buffer used to store the current list of
|
||||
* PerformanceResourceTiming resources.
|
||||
* @return {undefined}
|
||||
*/
|
||||
Performance.prototype.clearResourceTimings = function() {};
|
||||
|
||||
/**
|
||||
* Clear out the buffer of performance timing events for webkit browsers.
|
||||
* @return {undefined}
|
||||
*/
|
||||
Performance.prototype.webkitClearResourceTimings = function() {};
|
||||
|
||||
/**
|
||||
* Set the maximum number of PerformanceResourceTiming resources that may be
|
||||
* stored in the buffer.
|
||||
* @param {number} maxSize
|
||||
*/
|
||||
Performance.prototype.setResourceTimingBufferSize = function(maxSize) {};
|
||||
|
||||
/**
|
||||
* @return {Array.<PerformanceEntry>} A copy of the PerformanceEntry list,
|
||||
* in chronological order with respect to startTime.
|
||||
* @nosideeffects
|
||||
*/
|
||||
Performance.prototype.getEntries = function() {};
|
||||
|
||||
/**
|
||||
* @param {string} entryType Only return {@code PerformanceEntry}s with this
|
||||
* entryType.
|
||||
* @return {Array.<PerformanceEntry>} A copy of the PerformanceEntry list,
|
||||
* in chronological order with respect to startTime.
|
||||
* @nosideeffects
|
||||
*/
|
||||
Performance.prototype.getEntriesByType = function(entryType) {};
|
||||
|
||||
/**
|
||||
* @param {string} name Only return {@code PerformanceEntry}s with this name.
|
||||
* @param {string=} opt_entryType Only return {@code PerformanceEntry}s with
|
||||
* this entryType.
|
||||
* @return {Array.<PerformanceEntry>} PerformanceEntry list in chronological
|
||||
* order with respect to startTime.
|
||||
* @nosideeffects
|
||||
*/
|
||||
Performance.prototype.getEntriesByName = function(name, opt_entryType) {};
|
||||
|
||||
// Only available in WebKit, and only with the --enable-memory-info flag.
|
||||
/** @type {PerformanceMemory} */ Performance.prototype.memory;
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Performance.prototype.now = function() {};
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
* @nosideeffects
|
||||
*/
|
||||
Performance.prototype.webkitNow = function() {};
|
||||
|
||||
/** @type {Performance} */
|
||||
Window.prototype.performance;
|
||||
|
|
@ -1,248 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's range specification.
|
||||
* This file depends on w3c_dom2.js.
|
||||
* The whole file has been fully type annotated.
|
||||
* Created from
|
||||
* http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html
|
||||
*
|
||||
* @externs
|
||||
* @author stevey@google.com (Steve Yegge)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-Interface
|
||||
*/
|
||||
function Range() {}
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-startParent
|
||||
*/
|
||||
Range.prototype.startContainer;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-startOffset
|
||||
*/
|
||||
Range.prototype.startOffset;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-endParent
|
||||
*/
|
||||
Range.prototype.endContainer;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-endOffset
|
||||
*/
|
||||
Range.prototype.endOffset;
|
||||
|
||||
/**
|
||||
* @type {boolean}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-collapsed
|
||||
*/
|
||||
Range.prototype.collapsed;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-Range-attr-commonParent
|
||||
*/
|
||||
Range.prototype.commonAncestorContainer;
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @param {number} offset
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-setStart
|
||||
*/
|
||||
Range.prototype.setStart = function(refNode, offset) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @param {number} offset
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-setEnd
|
||||
*/
|
||||
Range.prototype.setEnd = function(refNode, offset) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-setStartBefore
|
||||
*/
|
||||
Range.prototype.setStartBefore = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-setStartAfter
|
||||
*/
|
||||
Range.prototype.setStartAfter = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-setEndBefore
|
||||
*/
|
||||
Range.prototype.setEndBefore = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-setEndAfter
|
||||
*/
|
||||
Range.prototype.setEndAfter = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @param {boolean} toStart
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-collapse
|
||||
*/
|
||||
Range.prototype.collapse = function(toStart) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-selectNode
|
||||
*/
|
||||
Range.prototype.selectNode = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @param {Node} refNode
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-selectNodeContents
|
||||
*/
|
||||
Range.prototype.selectNodeContents = function(refNode) {};
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-compareHow
|
||||
*/
|
||||
Range.prototype.START_TO_START = 0;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-compareHow
|
||||
*/
|
||||
Range.prototype.START_TO_END = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-compareHow
|
||||
*/
|
||||
Range.prototype.END_TO_END = 2;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-compareHow
|
||||
*/
|
||||
Range.prototype.END_TO_START = 3;
|
||||
|
||||
/**
|
||||
* @param {number} how
|
||||
* @param {Range} sourceRange
|
||||
* @return {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-compareBoundaryPoints
|
||||
*/
|
||||
Range.prototype.compareBoundaryPoints = function(how, sourceRange) {};
|
||||
|
||||
/**
|
||||
* @return {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-deleteContents
|
||||
*/
|
||||
Range.prototype.deleteContents = function() {};
|
||||
|
||||
/**
|
||||
* @return {DocumentFragment}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-extractContents
|
||||
*/
|
||||
Range.prototype.extractContents = function() {};
|
||||
|
||||
/**
|
||||
* @return {DocumentFragment}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-cloneContents
|
||||
*/
|
||||
Range.prototype.cloneContents = function() {};
|
||||
|
||||
/**
|
||||
* @param {Node} newNode
|
||||
* @return {DocumentFragment}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-insertNode
|
||||
*/
|
||||
Range.prototype.insertNode = function(newNode) {};
|
||||
|
||||
/**
|
||||
* @param {Node} newParent
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-surroundContents
|
||||
*/
|
||||
Range.prototype.surroundContents = function(newParent) {};
|
||||
|
||||
/**
|
||||
* @return {Range}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-clone
|
||||
*/
|
||||
Range.prototype.cloneRange = function() {};
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-Range-method-detach
|
||||
*/
|
||||
Range.prototype.detach = function() {};
|
||||
|
||||
// Introduced in DOM Level 2:
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level-2-DocumentRange-idl
|
||||
*/
|
||||
function DocumentRange() {}
|
||||
|
||||
/**
|
||||
* @return {Range}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#Level2-DocumentRange-method-createRange
|
||||
*/
|
||||
DocumentRange.prototype.createRange = function() {};
|
||||
|
||||
// Introduced in DOM Level 2:
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#RangeException
|
||||
*/
|
||||
function RangeException() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#RangeExceptionCode
|
||||
*/
|
||||
RangeException.prototype.code;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#RangeExceptionCode
|
||||
*/
|
||||
RangeException.prototype.BAD_BOUNDARYPOINTS_ERR = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html#RangeExceptionCode
|
||||
*/
|
||||
RangeException.prototype.INVALID_NODE_TYPE_ERR = 2;
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,94 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's Selectors API.
|
||||
* This file depends on w3c_dom1.js.
|
||||
* @see http://www.w3.org/TR/selectors-api2/
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @param {string} selectors
|
||||
* @return {Element}
|
||||
* @override
|
||||
*/
|
||||
Document.prototype.querySelector = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @param {string} selectors
|
||||
* @return {!NodeList}
|
||||
* @override
|
||||
*/
|
||||
Document.prototype.querySelectorAll = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @param {string} selectors
|
||||
* @return {Element}
|
||||
* @override
|
||||
*/
|
||||
Element.prototype.querySelector = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @param {string} selectors
|
||||
* @return {!NodeList}
|
||||
* @override
|
||||
*/
|
||||
Element.prototype.querySelectorAll = function(selectors) {};
|
||||
|
||||
/**
|
||||
* https://dom.spec.whatwg.org/#dom-element-matches
|
||||
* https://developer.mozilla.org/en-US/docs/Web/API/Element.matches
|
||||
* @param {string} selectors
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.matches = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @param {string} selectors
|
||||
* @param {(Node|NodeList)=} refNodes
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.matchesSelector = function(selectors, refNodes) {};
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/DOM/Node.mozMatchesSelector
|
||||
* @param {string} selectors
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.mozMatchesSelector = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @see http://developer.apple.com/library/safari/documentation/WebKit/Reference/ElementClassRef/Element/Element.html
|
||||
* @param {string} selectors
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.webkitMatchesSelector = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @see http://msdn.microsoft.com/en-us/library/ff975201.aspx
|
||||
* @param {string} selectors
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.msMatchesSelector = function(selectors) {};
|
||||
|
||||
/**
|
||||
* @see http://www.opera.com/docs/changelogs/windows/1150/
|
||||
* @param {string} selectors
|
||||
* @return {boolean}
|
||||
*/
|
||||
Element.prototype.oMatchesSelector = function(selectors) {};
|
||||
|
|
@ -1,417 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's XML related specifications.
|
||||
* This file depends on w3c_dom2.js.
|
||||
* The whole file has been fully type annotated.
|
||||
*
|
||||
* Provides the XML standards from W3C.
|
||||
* Includes:
|
||||
* XPath - Fully type annotated
|
||||
* XMLHttpRequest - Fully type annotated
|
||||
*
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest2/
|
||||
*
|
||||
* @externs
|
||||
* @author stevey@google.com (Steve Yegge)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException
|
||||
*/
|
||||
function XPathException() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#INVALID_EXPRESSION_ERR
|
||||
*/
|
||||
XPathException.INVALID_EXPRESSION_ERR = 52;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#TYPE_ERR
|
||||
*/
|
||||
XPathException.TYPE_ERR = 52;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#
|
||||
*/
|
||||
XPathException.prototype.code;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator
|
||||
*/
|
||||
function XPathEvaluator() {}
|
||||
|
||||
/**
|
||||
* @param {string} expr
|
||||
* @param {?XPathNSResolver=} opt_resolver
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-createExpression
|
||||
* @throws XPathException
|
||||
* @throws DOMException
|
||||
*/
|
||||
XPathEvaluator.prototype.createExpression = function(expr, opt_resolver) {};
|
||||
|
||||
/**
|
||||
* @param {Node} nodeResolver
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-createNSResolver
|
||||
*/
|
||||
XPathEvaluator.prototype.createNSResolver = function(nodeResolver) {};
|
||||
|
||||
/**
|
||||
* @param {string} expr
|
||||
* @param {Node} contextNode
|
||||
* @param {?XPathNSResolver=} opt_resolver
|
||||
* @param {?number=} opt_type
|
||||
* @param {*=} opt_result
|
||||
* @return {XPathResult}
|
||||
* @throws XPathException
|
||||
* @throws DOMException
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator-evaluate
|
||||
*/
|
||||
XPathEvaluator.prototype.evaluate = function(expr, contextNode, opt_resolver,
|
||||
opt_type, opt_result) {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression
|
||||
*/
|
||||
function XPathExpression() {}
|
||||
|
||||
/**
|
||||
* @param {Node} contextNode
|
||||
* @param {number=} opt_type
|
||||
* @param {*=} opt_result
|
||||
* @return {*}
|
||||
* @throws XPathException
|
||||
* @throws DOMException
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression-evaluate
|
||||
*/
|
||||
XPathExpression.prototype.evaluate = function(contextNode, opt_type,
|
||||
opt_result) {};
|
||||
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver
|
||||
*/
|
||||
function XPathNSResolver() {}
|
||||
|
||||
/**
|
||||
* @param {string} prefix
|
||||
* @return {?string}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver-lookupNamespaceURI
|
||||
*/
|
||||
XPathNSResolver.prototype.lookupNamespaceURI = function(prefix) {};
|
||||
|
||||
/**
|
||||
* From http://www.w3.org/TR/xpath
|
||||
*
|
||||
* XPath is a language for addressing parts of an XML document, designed to be
|
||||
* used by both XSLT and XPointer.
|
||||
*
|
||||
* @noalias
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult
|
||||
*/
|
||||
function XPathResult() {}
|
||||
|
||||
/**
|
||||
* @type {boolean} {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-booleanValue
|
||||
*/
|
||||
XPathResult.prototype.booleanValue;
|
||||
|
||||
/**
|
||||
* @type {boolean} {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-invalid-iterator-state
|
||||
*/
|
||||
XPathResult.prototype.invalidInteratorState;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-numberValue
|
||||
*/
|
||||
XPathResult.prototype.numberValue;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-resultType
|
||||
*/
|
||||
XPathResult.prototype.resultType;
|
||||
|
||||
/**
|
||||
* @type {Node}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-singleNodeValue
|
||||
*/
|
||||
XPathResult.prototype.singleNodeValue;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-snapshot-length
|
||||
*/
|
||||
XPathResult.prototype.snapshotLength;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-stringValue
|
||||
*/
|
||||
XPathResult.prototype.stringValue;
|
||||
|
||||
/**
|
||||
* @return {Node}
|
||||
* @throws XPathException {@see XPathException.TYPE_ERR}
|
||||
* @throws DOMException {@see DOMException.INVALID_STATE_ERR}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-iterateNext
|
||||
*/
|
||||
XPathResult.prototype.iterateNext = function() {};
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {Node}
|
||||
* @throws XPathException
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-snapshotItem
|
||||
*/
|
||||
XPathResult.prototype.snapshotItem = function(index) {};
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ANY-TYPE
|
||||
*/
|
||||
XPathResult.ANY_TYPE = 0;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-NUMBER-TYPE
|
||||
*/
|
||||
XPathResult.NUMBER_TYPE = 1;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-STRING-TYPE
|
||||
*/
|
||||
XPathResult.STRING_TYPE = 2;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-BOOLEAN-TYPE
|
||||
*/
|
||||
XPathResult.BOOLEAN_TYPE = 3;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-UNORDERED-NODE-ITERATOR-TYPE
|
||||
*/
|
||||
XPathResult.UNORDERED_NODE_ITERATOR_TYPE = 4;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ORDERED-NODE-ITERATOR-TYPE
|
||||
*/
|
||||
XPathResult.ORDERED_NODE_ITERATOR_TYPE = 5;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-UNORDERED-NODE-SNAPSHOT-TYPE
|
||||
*/
|
||||
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE = 6;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ORDERED-NODE-SNAPSHOT-TYPE
|
||||
*/
|
||||
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE = 7;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-ANY-UNORDERED-NODE-TYPE
|
||||
*/
|
||||
XPathResult.ANY_UNORDERED_NODE_TYPE = 8;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult-FIRST-ORDERED-NODE-TYPE
|
||||
*/
|
||||
XPathResult.FIRST_ORDERED_NODE_TYPE = 9;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Node}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNamespace
|
||||
*/
|
||||
function XPathNamespace() {}
|
||||
|
||||
/**
|
||||
* @type {Element}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNamespace-ownerElement
|
||||
*/
|
||||
XPathNamespace.prototype.ownerElement;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPATH_NAMESPACE_NODE
|
||||
*/
|
||||
XPathNamespace.XPATH_NAMESPACE_NODE = 13;
|
||||
|
||||
/**
|
||||
* From http://www.w3.org/TR/XMLHttpRequest/
|
||||
*
|
||||
* (Draft)
|
||||
*
|
||||
* The XMLHttpRequest Object specification defines an API that provides
|
||||
* scripted client functionality for transferring data between a client and a
|
||||
* server.
|
||||
*
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#xmlhttprequest-object
|
||||
*/
|
||||
function XMLHttpRequest() {}
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
XMLHttpRequest.prototype.addEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
XMLHttpRequest.prototype.removeEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
XMLHttpRequest.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* @param {string} method
|
||||
* @param {string} url
|
||||
* @param {?boolean=} opt_async
|
||||
* @param {?string=} opt_user
|
||||
* @param {?string=} opt_password
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-open()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.open = function(method, url, opt_async, opt_user,
|
||||
opt_password) {};
|
||||
|
||||
/**
|
||||
* @param {string} header
|
||||
* @param {string} value
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.setRequestHeader = function(header, value) {};
|
||||
|
||||
/**
|
||||
* @param {ArrayBuffer|ArrayBufferView|Blob|Document|FormData|string=} opt_data
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-send()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.send = function(opt_data) {};
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-abort()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.abort = function() {};
|
||||
|
||||
/**
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-getallresponseheaders()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.getAllResponseHeaders = function() {};
|
||||
|
||||
/**
|
||||
* @param {string} header
|
||||
* @return {string}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-getresponseheader()-method
|
||||
*/
|
||||
XMLHttpRequest.prototype.getResponseHeader = function(header) {};
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-responsetext-attribute
|
||||
*/
|
||||
XMLHttpRequest.prototype.responseText;
|
||||
|
||||
/**
|
||||
* @type {Document}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-responsexml-attribute
|
||||
*/
|
||||
XMLHttpRequest.prototype.responseXML;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-readystate-attribute
|
||||
*/
|
||||
XMLHttpRequest.prototype.readyState;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-status-attribute
|
||||
*/
|
||||
XMLHttpRequest.prototype.status;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#the-statustext-attribute
|
||||
*/
|
||||
XMLHttpRequest.prototype.statusText;
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#handler-xhr-onreadystatechange
|
||||
*/
|
||||
XMLHttpRequest.prototype.onreadystatechange;
|
||||
|
||||
/**
|
||||
* @type {Function}
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest/#handler-xhr-onerror
|
||||
*/
|
||||
XMLHttpRequest.prototype.onerror;
|
||||
|
||||
/**
|
||||
* The FormData object represents an ordered collection of entries. Each entry
|
||||
* has a name and value.
|
||||
*
|
||||
* @param {?Element=} opt_form An optional form to use for constructing the form
|
||||
* data set.
|
||||
* @constructor
|
||||
* @see http://www.w3.org/TR/XMLHttpRequest2/#the-formdata-interface
|
||||
*/
|
||||
function FormData(opt_form) {}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {Blob|string} value
|
||||
*/
|
||||
FormData.prototype.append = function(name, value) {};
|
||||
|
|
@ -1,281 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for all the extensions over W3C's DOM
|
||||
* specification by WebKit. This file depends on w3c_dom2.js.
|
||||
* All the provided definitions has been type annotated
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_center
|
||||
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=403510
|
||||
*/
|
||||
Element.prototype.scrollIntoViewIfNeeded = function(opt_center) {};
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/MemoryInfo.idl
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/MemoryInfo.cpp
|
||||
*/
|
||||
function MemoryInfo() {};
|
||||
|
||||
/** @type {number} */
|
||||
MemoryInfo.prototype.totalJSHeapSize;
|
||||
|
||||
/** @type {number} */
|
||||
MemoryInfo.prototype.usedJSHeapSize;
|
||||
|
||||
/** @type {number} */
|
||||
MemoryInfo.prototype.jsHeapSizeLimit;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/ScriptProfileNode.idl
|
||||
*/
|
||||
function ScriptProfileNode() {};
|
||||
|
||||
/** @type {string} */
|
||||
ScriptProfileNode.prototype.functionName;
|
||||
|
||||
/** @type {string} */
|
||||
ScriptProfileNode.prototype.url;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfileNode.prototype.lineNumber;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfileNode.prototype.totalTime;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfileNode.prototype.selfTime;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfileNode.prototype.numberOfCalls;
|
||||
|
||||
/** @type {Array.<ScriptProfileNode>} */
|
||||
ScriptProfileNode.prototype.children;
|
||||
|
||||
/** @type {boolean} */
|
||||
ScriptProfileNode.prototype.visible;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfileNode.prototype.callUID;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/inspector/ScriptProfile.idl
|
||||
*/
|
||||
function ScriptProfile() {};
|
||||
|
||||
/** @type {string} */
|
||||
ScriptProfile.prototype.title;
|
||||
|
||||
/** @type {number} */
|
||||
ScriptProfile.prototype.uid;
|
||||
|
||||
/** @type {ScriptProfileNode} */
|
||||
ScriptProfile.prototype.head;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/Console.idl
|
||||
* @see http://trac.webkit.org/browser/trunk/Source/WebCore/page/Console.cpp
|
||||
*/
|
||||
function Console() {};
|
||||
|
||||
/**
|
||||
* @param {*} condition
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.assert = function(condition, var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.error = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.info = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.log = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.warn = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.debug = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {*} value
|
||||
*/
|
||||
Console.prototype.dir = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.dirxml = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {!Object} data
|
||||
* @param {*=} opt_columns
|
||||
*/
|
||||
Console.prototype.table = function(data, opt_columns) {};
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
*/
|
||||
Console.prototype.trace = function() {};
|
||||
|
||||
/**
|
||||
* @param {*} value
|
||||
*/
|
||||
Console.prototype.count = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {*} value
|
||||
*/
|
||||
Console.prototype.markTimeline = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {string=} opt_title
|
||||
*/
|
||||
Console.prototype.profile = function(opt_title) {};
|
||||
|
||||
/** @type {Array.<ScriptProfile>} */
|
||||
Console.prototype.profiles;
|
||||
|
||||
/**
|
||||
* @param {string=} opt_title
|
||||
*/
|
||||
Console.prototype.profileEnd = function(opt_title) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
*/
|
||||
Console.prototype.time = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
*/
|
||||
Console.prototype.timeEnd = function(name) {};
|
||||
|
||||
/**
|
||||
* @param {*} value
|
||||
*/
|
||||
Console.prototype.timeStamp = function(value) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.group = function(var_args) {};
|
||||
|
||||
/**
|
||||
* @param {...*} var_args
|
||||
*/
|
||||
Console.prototype.groupCollapsed = function(var_args) {};
|
||||
|
||||
Console.prototype.groupEnd = function() {};
|
||||
|
||||
Console.prototype.clear = function() {};
|
||||
|
||||
/** @type {MemoryInfo} */
|
||||
Console.prototype.memory;
|
||||
|
||||
/** @type {!Console} */
|
||||
Window.prototype.console;
|
||||
|
||||
/**
|
||||
* @type {!Console}
|
||||
* @suppress {duplicate}
|
||||
*/
|
||||
var console;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @see http://developer.android.com/reference/android/webkit/WebView.html
|
||||
*/
|
||||
Window.prototype.devicePixelRatio;
|
||||
|
||||
/** @type {Node} */
|
||||
Selection.prototype.baseNode;
|
||||
|
||||
/** @type {number} */
|
||||
Selection.prototype.baseOffset;
|
||||
|
||||
/** @type {Node} */
|
||||
Selection.prototype.extentNode;
|
||||
|
||||
/** @type {number} */
|
||||
Selection.prototype.extentOffset;
|
||||
|
||||
/** @type {string} */
|
||||
Selection.prototype.type;
|
||||
|
||||
/**
|
||||
* @return {undefined}
|
||||
*/
|
||||
Selection.prototype.empty = function() {};
|
||||
|
||||
/**
|
||||
* @param {Node} baseNode
|
||||
* @param {number} baseOffset
|
||||
* @param {Node} extentNode
|
||||
* @param {number} extentOffset
|
||||
* @return {undefined}
|
||||
*/
|
||||
Selection.prototype.setBaseAndExtent =
|
||||
function(baseNode, baseOffset, extentNode, extentOffset) {};
|
||||
|
||||
/**
|
||||
* @param {string} alter
|
||||
* @param {string} direction
|
||||
* @param {string} granularity
|
||||
* @return {undefined}
|
||||
*/
|
||||
Selection.prototype.modify = function(alter, direction, granularity) {};
|
||||
|
||||
/**
|
||||
* @param {Element} element
|
||||
* @param {string} pseudoElement
|
||||
* @param {boolean=} opt_authorOnly
|
||||
* @return {CSSRuleList}
|
||||
* @nosideeffects
|
||||
*/
|
||||
ViewCSS.prototype.getMatchedCSSRules =
|
||||
function(element, pseudoElement, opt_authorOnly) {};
|
||||
|
||||
/**
|
||||
* @param {string} contextId
|
||||
* @param {string} name
|
||||
* @param {number} width
|
||||
* @param {number} height
|
||||
* @nosideeffects
|
||||
*/
|
||||
Document.prototype.getCSSCanvasContext =
|
||||
function(contextId, name, width, height) {};
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview Definitions for all the extensions over W3C's
|
||||
* event specification by WebKit. This file depends on w3c_event.js.
|
||||
* All the provided definitions have been type annotated
|
||||
*
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.wheelDeltaX;
|
||||
|
||||
/** @type {number} */
|
||||
Event.prototype.wheelDeltaY;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @extends {Event}
|
||||
* @see http://developer.apple.com/library/safari/documentation/AudioVideo/Reference/WebKitAnimationEventClassReference/WebKitAnimationEvent/WebKitAnimationEvent.html
|
||||
*/
|
||||
function WebKitAnimationEvent() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
* @const
|
||||
*/
|
||||
WebKitAnimationEvent.prototype.animationName;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
WebKitAnimationEvent.prototype.elapsedTime;
|
||||
|
|
@ -1,201 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's Notifications specification.
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @typedef {{dir: (string|undefined), lang: (string|undefined),
|
||||
* body: (string|undefined), tag: (string|undefined),
|
||||
* icon: (string|undefined)}}
|
||||
* @see http://notifications.spec.whatwg.org/#notificationoptions
|
||||
*/
|
||||
var NotificationOptions;
|
||||
|
||||
/** @interface */
|
||||
var NotificationOptionsInterface_;
|
||||
/** @type {string} */ NotificationOptionsInterface_.prototype.dir;
|
||||
/** @type {string} */ NotificationOptionsInterface_.prototype.lang;
|
||||
/** @type {string} */ NotificationOptionsInterface_.prototype.body;
|
||||
/** @type {string} */ NotificationOptionsInterface_.prototype.tag;
|
||||
/** @type {string} */ NotificationOptionsInterface_.prototype.icon;
|
||||
|
||||
/**
|
||||
* @param {string} title
|
||||
* @param {NotificationOptions=} opt_options
|
||||
* @constructor
|
||||
* @implements {EventTarget}
|
||||
* @see http://notifications.spec.whatwg.org/#notification
|
||||
*/
|
||||
function Notification(title, opt_options) {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
Notification.permission;
|
||||
|
||||
/**
|
||||
* @param {NotificationPermissionCallback=} opt_callback
|
||||
*/
|
||||
Notification.requestPermission = function(opt_callback) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Notification.prototype.addEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/**
|
||||
* @param {boolean=} opt_useCapture
|
||||
* @override
|
||||
*/
|
||||
Notification.prototype.removeEventListener =
|
||||
function(type, listener, opt_useCapture) {};
|
||||
|
||||
/** @override */
|
||||
Notification.prototype.dispatchEvent = function(evt) {};
|
||||
|
||||
/**
|
||||
* The ID used by clients to uniquely identify notifications to eliminate
|
||||
* duplicate notifications.
|
||||
* @type {string}
|
||||
* @deprecated Use NotificationOptions.tag instead.
|
||||
*/
|
||||
Notification.prototype.replaceId;
|
||||
|
||||
/**
|
||||
* The string used by clients to specify the directionality (rtl/ltr) of the
|
||||
* notification.
|
||||
* @type {string}
|
||||
* @deprecated Use NotificationOptions.titleDir and bodyDir instead.
|
||||
*/
|
||||
Notification.prototype.dir;
|
||||
|
||||
/**
|
||||
* Displays the notification.
|
||||
*/
|
||||
Notification.prototype.show = function() {};
|
||||
|
||||
/**
|
||||
* Prevents the notification from being displayed, or closes it if it is already
|
||||
* displayed.
|
||||
*/
|
||||
Notification.prototype.cancel = function() {};
|
||||
|
||||
/**
|
||||
* Prevents the notification from being displayed, or closes it if it is already
|
||||
* displayed.
|
||||
*/
|
||||
Notification.prototype.close = function() {};
|
||||
|
||||
/**
|
||||
* An event handler called when notification is closed.
|
||||
* @type {?function(Event)}
|
||||
*/
|
||||
Notification.prototype.onclose;
|
||||
|
||||
/**
|
||||
* An event handler called if the notification could not be displayed due to
|
||||
* an error (i.e. resource could not be loaded).
|
||||
* @type {?function(Event)}
|
||||
*/
|
||||
Notification.prototype.onerror;
|
||||
|
||||
/**
|
||||
* An event handler called when the notification has become visible.
|
||||
* @type {?function(Event)}
|
||||
* @deprecated Use onshow instead.
|
||||
*/
|
||||
Notification.prototype.ondisplay;
|
||||
|
||||
/**
|
||||
* An event handler called when the notification has become visible.
|
||||
* @type {?function(Event)}
|
||||
*/
|
||||
Notification.prototype.onshow;
|
||||
|
||||
/**
|
||||
* An event handler called when the notification has been clicked on.
|
||||
* @type {?function(Event)}
|
||||
*/
|
||||
Notification.prototype.onclick;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
*/
|
||||
window.Notification = Notification;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
window.Notification.permission;
|
||||
|
||||
/**
|
||||
* @param {NotificationPermissionCallback=} opt_callback
|
||||
*/
|
||||
window.Notification.requestPermission = function(opt_callback) {};
|
||||
|
||||
/**
|
||||
* @typedef {function(string)}
|
||||
* @see http://notifications.spec.whatwg.org/#notificationpermissioncallback
|
||||
*/
|
||||
var NotificationPermissionCallback;
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @see http://dev.w3.org/2006/webapi/WebNotifications/publish/#dialog-if
|
||||
* @deprecated Use Notification instead.
|
||||
*/
|
||||
function NotificationCenter() {}
|
||||
|
||||
/**
|
||||
* Creates a text+icon notification and displays it to the user.
|
||||
* @param {string} iconUrl
|
||||
* @param {string} title
|
||||
* @param {string} body
|
||||
* @return {Notification}
|
||||
*/
|
||||
NotificationCenter.prototype.createNotification =
|
||||
function(iconUrl, title, body) {};
|
||||
|
||||
/**
|
||||
* Creates an HTML notification and displays it to the user.
|
||||
* @param {string} url
|
||||
* @return {Notification}
|
||||
*/
|
||||
NotificationCenter.prototype.createHTMLNotification = function(url) {};
|
||||
|
||||
/**
|
||||
* Checks if the user has permission to display notifications.
|
||||
* @return {number}
|
||||
*/
|
||||
NotificationCenter.prototype.checkPermission = function() {};
|
||||
|
||||
/**
|
||||
* Requests permission from the user to display notifications.
|
||||
* @param {Function=} opt_callback
|
||||
* @return {void}
|
||||
*/
|
||||
NotificationCenter.prototype.requestPermission = function(opt_callback) {};
|
||||
|
||||
/**
|
||||
* WebKit browsers expose the NotificationCenter API through
|
||||
* window.webkitNotifications.
|
||||
* @type {NotificationCenter}
|
||||
*/
|
||||
Window.prototype.webkitNotifications;
|
||||
|
|
@ -1,148 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/**
|
||||
* @fileoverview Definitions for W3C's WebStorage specification.
|
||||
* This file depends on html5.js.
|
||||
* @externs
|
||||
*/
|
||||
|
||||
/**
|
||||
* @interface
|
||||
* @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-storage-interface
|
||||
*/
|
||||
function Storage() {}
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
* @const
|
||||
*/
|
||||
Storage.prototype.length;
|
||||
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {?string}
|
||||
*/
|
||||
Storage.prototype.key = function(index) {};
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @return {?string}
|
||||
*/
|
||||
Storage.prototype.getItem = function(key) {};
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @param {string} data
|
||||
* @return {void}
|
||||
*/
|
||||
Storage.prototype.setItem = function(key, data) {};
|
||||
|
||||
/**
|
||||
* @param {string} key
|
||||
* @return {void}
|
||||
*/
|
||||
Storage.prototype.removeItem = function(key) {};
|
||||
|
||||
/**
|
||||
* @return {void}
|
||||
*/
|
||||
Storage.prototype.clear = function() {};
|
||||
|
||||
/**
|
||||
* @interface
|
||||
* @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-sessionstorage-attribute
|
||||
*/
|
||||
function WindowSessionStorage() {}
|
||||
|
||||
/**
|
||||
* @type {Storage}
|
||||
*/
|
||||
WindowSessionStorage.prototype.sessionStorage;
|
||||
|
||||
/**
|
||||
* Window implements WindowSessionStorage
|
||||
*
|
||||
* @type {Storage}
|
||||
*/
|
||||
Window.prototype.sessionStorage;
|
||||
|
||||
/**
|
||||
* @interface
|
||||
* @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-localstorage-attribute
|
||||
*/
|
||||
function WindowLocalStorage() {}
|
||||
|
||||
/**
|
||||
* @type {Storage}
|
||||
*/
|
||||
WindowLocalStorage.prototype.localStorage;
|
||||
|
||||
/**
|
||||
* Window implements WindowLocalStorage
|
||||
*
|
||||
* @type {Storage}
|
||||
*/
|
||||
Window.prototype.localStorage;
|
||||
|
||||
/**
|
||||
* This is the storage event interface.
|
||||
* @see http://www.w3.org/TR/2011/CR-webstorage-20111208/#the-storage-event
|
||||
* @extends {Event}
|
||||
* @constructor
|
||||
*/
|
||||
function StorageEvent() {}
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
StorageEvent.prototype.key;
|
||||
|
||||
/**
|
||||
* @type {?string}
|
||||
*/
|
||||
StorageEvent.prototype.oldValue;
|
||||
|
||||
/**
|
||||
* @type {?string}
|
||||
*/
|
||||
StorageEvent.prototype.newValue;
|
||||
|
||||
/**
|
||||
* @type {string}
|
||||
*/
|
||||
StorageEvent.prototype.url;
|
||||
|
||||
/**
|
||||
* @type {?Storage}
|
||||
*/
|
||||
StorageEvent.prototype.storageArea;
|
||||
|
||||
/**
|
||||
* @param {string} typeArg
|
||||
* @param {boolean} canBubbleArg
|
||||
* @param {boolean} cancelableArg
|
||||
* @param {string} keyArg
|
||||
* @param {?string} oldValueArg
|
||||
* @param {?string} newValueArg
|
||||
* @param {string} urlArg
|
||||
* @param {?Storage} storageAreaArg
|
||||
* @return {void}
|
||||
*/
|
||||
StorageEvent.prototype.initStorageEvent = function(typeArg, canBubbleArg,
|
||||
cancelableArg, keyArg,
|
||||
oldValueArg, newValueArg,
|
||||
urlArg, storageAreaArg) {};
|
||||
|
||||
|
|
@ -1,191 +0,0 @@
|
|||
/*
|
||||
* Copyright 2008 The Closure Compiler Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @fileoverview JavaScript Built-Ins for windows properties.
|
||||
*
|
||||
* @externs
|
||||
* @author stevey@google.com (Steve Yegge)
|
||||
*/
|
||||
|
||||
// Window properties
|
||||
// Only common properties are here. Others such as open()
|
||||
// should be used with an explicit Window object.
|
||||
|
||||
/**
|
||||
* @type {!Window}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.top
|
||||
* @const
|
||||
*/
|
||||
var top;
|
||||
|
||||
/**
|
||||
* @type {Navigator}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.navigator
|
||||
* @const
|
||||
*/
|
||||
var navigator;
|
||||
|
||||
/**
|
||||
* @type {!HTMLDocument}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.document
|
||||
* @const
|
||||
*/
|
||||
var document;
|
||||
|
||||
/**
|
||||
* @type {Location}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.location
|
||||
* @const
|
||||
* @suppress {duplicate}
|
||||
* @implicitCast
|
||||
*/
|
||||
var location;
|
||||
|
||||
/**
|
||||
* @type {!Screen}
|
||||
* @see https://developer.mozilla.org/En/DOM/window.screen
|
||||
* @const
|
||||
*/
|
||||
var screen;
|
||||
|
||||
/**
|
||||
* @type {!Window}
|
||||
* @see https://developer.mozilla.org/En/DOM/Window.self
|
||||
* @const
|
||||
*/
|
||||
var self;
|
||||
|
||||
// Magic functions for Firefox's LiveConnect.
|
||||
// We'll probably never use these in practice. But redefining them
|
||||
// will fire up the JVM, so we want to reserve the symbol names.
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaArray
|
||||
*/
|
||||
var JavaArray;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaClass
|
||||
*/
|
||||
var JavaClass;
|
||||
|
||||
// We just ripped this from the FF source; it doesn't appear to be
|
||||
// publicly documented.
|
||||
var JavaMember;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaObject
|
||||
*/
|
||||
var JavaObject;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaPackage
|
||||
*/
|
||||
var JavaPackage;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Packages
|
||||
*/
|
||||
var Packages;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/java
|
||||
*/
|
||||
var java;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/netscape
|
||||
*/
|
||||
var netscape;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/sun
|
||||
*/
|
||||
var sun;
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/DOM/window.alert
|
||||
*/
|
||||
function alert(x) {}
|
||||
|
||||
/**
|
||||
* @param {number|undefined|null} immediateID
|
||||
* @see https://developer.mozilla.org/en-US/docs/DOM/window.clearImmediate
|
||||
* @see http://msdn.microsoft.com/en-us/library/ie/hh924825(v=vs.85).aspx
|
||||
*/
|
||||
function clearImmediate(immediateID) {}
|
||||
|
||||
/**
|
||||
* @param {number|undefined?} intervalID
|
||||
* @see https://developer.mozilla.org/en/DOM/window.clearInterval
|
||||
* @suppress {duplicate}
|
||||
*/
|
||||
function clearInterval(intervalID) {}
|
||||
|
||||
/**
|
||||
* @param {number|undefined?} timeoutID
|
||||
* @see https://developer.mozilla.org/en/DOM/window.clearTimeout
|
||||
* @suppress {duplicate}
|
||||
*/
|
||||
function clearTimeout(timeoutID) {}
|
||||
|
||||
/**
|
||||
* @param {*} message
|
||||
* @return {boolean}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.confirm
|
||||
*/
|
||||
function confirm(message) {}
|
||||
|
||||
/**
|
||||
* @see https://developer.mozilla.org/en/DOM/window.dump
|
||||
*/
|
||||
function dump(x) {}
|
||||
|
||||
/**
|
||||
* @param {string} message
|
||||
* @param {string=} opt_value
|
||||
* @return {?string}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.prompt
|
||||
*/
|
||||
function prompt(message, opt_value) {}
|
||||
|
||||
/**
|
||||
* @param {function()} callback
|
||||
* @return {number}
|
||||
* @see https://developer.mozilla.org/en-US/docs/DOM/window.setImmediate
|
||||
* @see http://msdn.microsoft.com/en-us/library/ie/hh773176(v=vs.85).aspx
|
||||
*/
|
||||
function setImmediate(callback) {}
|
||||
|
||||
/**
|
||||
* @param {Function|string} callback
|
||||
* @param {number=} opt_delay
|
||||
* @return {number}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.setInterval
|
||||
* @see https://html.spec.whatwg.org/multipage/webappapis.html#timers
|
||||
*/
|
||||
function setInterval(callback, opt_delay) {}
|
||||
|
||||
/**
|
||||
* @param {Function|string} callback
|
||||
* @param {number=} opt_delay
|
||||
* @param {...*} var_args
|
||||
* @return {number}
|
||||
* @see https://developer.mozilla.org/en/DOM/window.setTimeout
|
||||
* @see https://html.spec.whatwg.org/multipage/webappapis.html#timers
|
||||
*/
|
||||
function setTimeout(callback, opt_delay, var_args) {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue