Skip to content
Permalink
Browse files
Added some initial htmlAssets. More work to come
git-svn-id: https://svn.apache.org/repos/asf/flex/whiteboard@1440190 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Michael Labriola committed Jan 29, 2013
1 parent a7a3e49 commit 3e91b674640cc1aad37576be2b1458278caf9b61
Show file tree
Hide file tree
Showing 17 changed files with 465 additions and 0 deletions.
@@ -0,0 +1,25 @@
package
{
public class Console
{
public var memory:MemoryInfo;

public function assert(condition:Boolean, ... scriptArgs):void {};
public function count(... scriptArgs):void {};
public function debug(... scriptArgs):void {};
public function dir(... scriptArgs):void {};
public function dirxml(... scriptArgs):void {};
public function error(... scriptArgs):void {};
public function group(... scriptArgs):void {};
public function groupCollapsed(... scriptArgs):void {};
public function groupEnd():void {};
public function info(... scriptArgs):void {};
public function log(... scriptArgs):void {};
public function markTimeline(... scriptArgs):void {};
public function time(title:String):void {};
public function timeEnd(title:String, ... scriptArgs):void {};
public function timeStamp(... scriptArgs):void {};
public function trace(... scriptArgs):void {};
public function warn(... scriptArgs):void {};
}
}
@@ -0,0 +1,130 @@
package
{
public class CssStyleDeclaration
{
public static var azimuth:Function;
public static var background:Function;
public static var backgroundAttachment:Function;
public static var backgroundColor:Function;
public static var backgroundImage:Function;
public static var backgroundPosition:Function;
public static var backgroundRepeat:Function;
public static var backgroundSize:Function;
public static var border:Function;
public static var borderCollapse:Function;
public static var borderColor:Function;
public static var borderSpacing:Function;
public static var borderStyle:Function;
public static var borderTop:Function;
public static var borderRight:Function;
public static var borderBottom:Function;
public static var borderLeft:Function;
public static var borderTopColor:Function;
public static var borderRightColor:Function;
public static var borderBottomColor:Function;
public static var borderLeftColor:Function;
public static var borderTopStyle:Function;
public static var borderRightStyle:Function;
public static var borderBottomStyle:Function;
public static var borderLeftStyle:Function;
public static var borderTopWidth:Function;
public static var borderRightWidth:Function;
public static var borderBottomWidth:Function;
public static var borderLeftWidth:Function;
public static var borderWidth:Function;
public static var bottom:Function;
public static var captionSide:Function;
public static var clear:Function;
public static var clip:Function;
public static var color:Function;
public static var content:Function;
public static var counterIncrement:Function;
public static var counterReset:Function;
public static var cue:Function;
public static var cueAfter:Function;
public static var cueBefore:Function;
public static var cursor:Function;
public static var direction:Function;
public static var display:Function;
public static var elevation:Function;
public static var emptyCells:Function;
public static var cssFloat:Function;
public static var font:Function;
public static var fontFamily:Function;
public static var fontSize:Function;
public static var fontSizeAdjust:Function;
public static var fontStretch:Function;
public static var fontStyle:Function;
public static var fontVariant:Function;
public static var fontWeight:Function;
public static var height:Function;
public static var left:Function;
public static var letterSpacing:Function;
public static var lineHeight:Function;
public static var listStyle:Function;
public static var listStyleImage:Function;
public static var listStylePosition:Function;
public static var listStyleType:Function;
public static var margin:Function;
public static var marginTop:Function;
public static var marginRight:Function;
public static var marginBottom:Function;
public static var marginLeft:Function;
public static var markerOffset:Function;
public static var marks:Function;
public static var maxHeight:Function;
public static var maxWidth:Function;
public static var minHeight:Function;
public static var minWidth:Function;
public static var opacity:Function;
public static var orphans:Function;
public static var outline:Function;
public static var outlineColor:Function;
public static var outlineStyle:Function;
public static var outlineWidth:Function;
public static var overflow:Function;
public static var padding:Function;
public static var paddingTop:Function;
public static var paddingRight:Function;
public static var paddingBottom:Function;
public static var paddingLeft:Function;
public static var page:Function;
public static var pageBreakAfter:Function;
public static var pageBreakBefore:Function;
public static var pageBreakInside:Function;
public static var pause:Function;
public static var pauseAfter:Function;
public static var pauseBefore:Function;
public static var pitch:Function;
public static var pitchRange:Function;
public static var playDuring:Function;
public static var position:Function;
public static var quotes:Function;
public static var richness:Function;
public static var right:Function;
public static var size:Function;
public static var speak:Function;
public static var speakHeader:Function;
public static var speakNumeral:Function;
public static var speakPunctuation:Function;
public static var speechRate:Function;
public static var stress:Function;
public static var tableLayout:Function;
public static var textAlign:Function;
public static var textDecoration:Function;
public static var textIndent:Function;
public static var textShadow:Function;
public static var textTransform:Function;
public static var top:Function;
public static var unicodeBidi:Function;
public static var verticalAlign:Function;
public static var visibility:Function;
public static var voiceFamily:Function;
public static var volume:Function;
public static var whiteSpace:Function;
public static var widows:Function;
public static var width:Function;
public static var wordSpacing:Function;
public static var zIndex:Function;
}
}
@@ -0,0 +1,9 @@
package
{
public class Element
{
public function Element()
{
}
}
}
@@ -0,0 +1,152 @@
package
{
import flash.display.Sprite;

public class HTML {
public static var console:Console;
public static var window:Window;
public static var self:Window;
public static var name:String;
public static var location:Location;
public static var history:History;
public static var selection:Selection;

public static var locationbar:Object;
public static var menubar:Object;
public static var personalbar:Object;
public static var scrollbars:Object;
public static var statusbar:Object;
public static var toolbar:Object;

public static function close():void { }
public static function stop():void { }
public static function focus():void { }
public static function blur():void { }

public static var frames:Object
public static var length:Object;
public static var top:Window;
public static var opener:Object;
public static var parent:Window;
public static var frameElement:Element;

public static function open(url:String, target:String=null, features:String=null, replace:String=null):Window { return null; }
public static function getElement(indexOrName:*):Object { return null; }
public static function setElement(name:String, value:Object):void { }

public static var navigator:Navigator;

public static function alert(message:String):void { }
public static function confirm(message:String):Boolean { return false; }
public static function prompt(message:String, _default:String = null ):Boolean { return false; }

public static function print():void { }

public static function showModalDialog(url:String, argument:Object):Object { return null; }
public static function postMessage(message:Object, targetOrigin:String, ports:Array ):void { }

public static var onabort:Function;
public static var onafterprint:Function;
public static var onbeforeprint:Function;
public static var onbeforeunload:Function;
public static var onblur:Function;
public static var oncanplay:Function;
public static var oncanplaythrough:Function;
public static var onchange:Function;
public static var onclick:Function;
public static var oncontextmenu:Function;
public static var ondblclick:Function;
public static var ondrag:Function;
public static var ondragend:Function;
public static var ondragenter:Function;
public static var ondragleave:Function;
public static var ondragover:Function;
public static var ondragstart:Function;
public static var ondrop:Function;
public static var ondurationchange:Function;
public static var onemptied:Function;
public static var onended:Function;
public static var onerror:Function;
public static var onfocus:Function;
public static var onformchange:Function;
public static var onforminput:Function;
public static var onhashchange:Function;
public static var oninput:Function;
public static var oninvalid:Function;
public static var onkeydown:Function;
public static var onkeypress:Function;
public static var onkeyup:Function;
public static var onload:Function;
public static var onloadeddata:Function;
public static var onloadedmetadata:Function;
public static var onloadstart:Function;
public static var onmessage:Function;
public static var onmousedown:Function;
public static var onmousemove:Function;
public static var onmouseout:Function;
public static var onmouseover:Function;
public static var onmouseup:Function;
public static var onmousewheel:Function;
public static var onoffline:Function;
public static var ononline:Function;
public static var onpause:Function;
public static var onplay:Function;
public static var onplaying:Function;
public static var onpagehide:Function;
public static var onpageshow:Function;
public static var onpopstate:Function;
public static var onprogress:Function;
public static var onratechange:Function;
public static var onreadystatechange:Function;
public static var onredo:Function;
public static var onresize:Function;
public static var onscroll:Function;
public static var onseeked:Function;
public static var onseeking:Function;
public static var onselect:Function;
public static var onshow:Function;
public static var onstalled:Function;
public static var onstorage:Function;
public static var onsubmit:Function;
public static var onsuspend:Function;
public static var ontimeupdate:Function;
public static var onundo:Function;
public static var onunload:Function;
public static var onvolumechange:Function;
public static var onwaiting:Function;

public static function getComputedStyle(elt:Element, pseudoElt:String):CssStyleDeclaration { return null; }

public static var document:HtmlDocument;
public static var styleMedia:StyleMedia;
public static var screen:Screen;

public static var innerWidth:int;
public static var innerHeight:int;

public static var pageXOffset:int;
public static var pageYOffset:int;

public static function scroll(x:int, y:int):void { }
public static function scrollTo(x:int, y:int):void { }
public static function scrollBy(x:int, y:int):void { }

public static var screenX:int;
public static var screenY:int;
public static var outerWidth:int;
public static var outerHeight:int;

public static function setTimeout(handler:Function):int { return 0; }
public static function clearTimeout(handle:int):void { }
public static function setInterval(handler:Function, timeout:Object=null):int { return 0; }
public static function clearInterval(handle:int):void { }

public static function escape(s:String):String { return null; }
public static function decodeURIComponent(encodedURIString:String):String { return null; }
public static function encodeURIComponent(encodedURIString:String):String { return null; }
public static function encodeURI(URIString:String):String { return null; }
public static function decodeURI(URIString:String):String { return null; }
public static function unescape(charString:String):String { return null; }

}
}
@@ -0,0 +1,9 @@
package
{
public class History
{
public function History()
{
}
}
}
@@ -0,0 +1,13 @@
package
{
public class HtmlAllCollection extends Object
{
public var length:int;

public function tags( name:String ):NodeList { return null };

public function HtmlAllCollection()
{
}
}
}
@@ -0,0 +1,11 @@
package
{
public class HtmlCollection extends Object
{
public var length:int;

public function HtmlCollection()
{
}
}
}
@@ -0,0 +1,30 @@
package
{
public class HtmlDocument
{
public var activeElement:Element;
public var alinkColor:String;
public var all:HtmlAllCollection;
public var bgColor:String;
public var compatMode:String;
public var designMode:String;
public var dir:String;
public var embeds:HtmlCollection;
public var fgColor:String;
public var height:int;
public var linkColor:String;
public var plugins:HtmlCollection;
public var scripts:HtmlCollection;
public var vlinkColor:String;
public var width:int;

public function captureEvents():void { return void; };
public function clear():void { return void; };
public function close():void { return void; };
public function hasFocus():Boolean { return false; };
public function open():void { return void; };
public function releaseEvents():void { return void; };
public function write(text:String):void { return void; };
public function writeln(text:String):void { return void; };
}
}

0 comments on commit 3e91b67

Please sign in to comment.