UNPKG

royale-swf

Version:

Apache Royale (formerly FlexJS) with SWF support

243 lines (194 loc) 4.04 kB
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You 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. * */ // webkit_notifications /** * @constructor */ function ExtendableEvent() {} // chrome.js /** * @constructor */ function HTMLEmbedElement() {}; /** * @type {!Window} * @const */ var window; /** * @type {!HTMLDocument} */ Window.prototype.document; /** * resolveLocalFileSystemURI has been deprecated; this is the replacement. * @see http://www.w3.org/TR/file-system-api/#widl-LocalFileSystem-resolveLocalFileSystemURL * @param {string} url * @param {function(!Entry)} successCallback * @param {function(!FileError)=} errorCallback */ Window.prototype.resolveLocalFileSystemURL = function(url, successCallback, errorCallback) {} /** * @constructor */ function dialogPolyfill() {}; /** * @param {!Element} element to upgrade, if necessary */ dialogPolyfill.registerDialog = function(element) {}; /** * @constructor */ function Navigator() {} /** * @constructor */ function Screen() {} /** * @constructor */ function uint() {} /** * @param {number=} opt_radix Optional radix. * @return {string} The result. */ uint.prototype.toString = function(opt_radix) {} /** * @constructor */ function int() {} /** * @param {number=} opt_radix Optional radix. * @return {string} The result. */ int.prototype.toString = function(opt_radix) {} /** * @type {Object} */ Object.prototype; /** * @type {Object} */ Object.prototype.prototype; /** * @constructor * @extends {Function} */ function Class() {} /** * @constructor */ function JSON() {} /** * @param {string} s The input. * @param {function=} opt_reviver Optional reviver. * @return {Object} The result. */ JSON.parse = function(s, opt_reviver) {} /** * @param {Object} obj The input. * @param {function=} opt_replacer Optional reviver. * @param {string|number=} opt_space Optional space. * @return {string} The result. */ JSON.stringify = function(obj, opt_replacer, opt_space) {} // gecko /** * @constructor */ function History() {} /** * @constructor */ function Location() {} /** * @type {number} */ XMLHttpRequest.prototype.timeout; /** * @export * This gets mapped to org.apache.royale.utils.Language.trace() by the compiler * @param {...} rest */ function trace(rest) {} /** * @type {!Console} * @const */ var console; /** * @type {number} * @const */ Array.CASEINSENSITIVE; /** * @type {number} * @const */ Array.DESCENDING; /** * @type {number} * @const */ Array.UNIQUESORT; /** * @type {number} * @const */ Array.RETURNINDEXEDARRAY; /** * @type {number} * @const */ Array.NUMERIC; /** * @param {number} index The index. * @param {Object} element The Object. */ Array.prototype.insertAt = function(index, element) {}; /** * @param {number} index The index. */ Array.prototype.removeAt = function(index) {}; /** * @param {Object} fieldName The field name or array of field names. * @param {Object=} opt_options The bitmask of options. * @return {Array} The sorted Array. */ Array.prototype.sortOn = function(fieldName, opt_options) {}; /** * @type {number} * @const */ int.MAX_VALUE; /** * @type {number} * @const */ int.MIN_VALUE; /** * @type {number} * @const */ uint.MAX_VALUE; /** * @type {number} * @const */ uint.MIN_VALUE;