* Added bindings for Gecko 11, but they are not used by default due to gecko-bug 720682

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2364 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
loesje_
2012-03-20 09:50:09 +00:00
parent 3b25f366e0
commit 1d62d1e9f3
24 changed files with 1057 additions and 6 deletions

View File

@ -393,7 +393,7 @@ type
// nsIWebProgressListener
procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); virtual; safecall; abstract;
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); virtual; safecall; abstract;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); virtual; safecall; abstract;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI{$ifdef gecko11}; aFlags: idlulong{$endif gecko11}); virtual; safecall; abstract;
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); virtual; safecall; abstract;
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); virtual; safecall; abstract;
// nsIDOMEventListener
@ -593,7 +593,7 @@ type
// nsIWebProgressListener
procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); override;
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); override;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); override;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI{$ifdef gecko11}; aFlags: idlulong{$endif gecko11}); override;
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); override;
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); override;
// nsISHistoryListener
@ -1748,7 +1748,8 @@ end;
procedure TGeckoBrowserListener.OnLocationChange(
aWebProgress: nsIWebProgress;
aRequest: nsIRequest;
location: nsIURI);
location: nsIURI
{$ifdef gecko11}; aFlags: idlulong{$endif gecko11});
var
str: IInterfacedCString;
begin

View File

@ -107,7 +107,7 @@ type
// nsIWebProgressListener
procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); safecall;
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); safecall;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); safecall;
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; Location: nsIURI{$ifdef gecko11}; aFlags: idlulong{$endif gecko11}); safecall;
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); safecall;
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); safecall;
// nsIInterfaceRequestor
@ -438,7 +438,7 @@ begin
UseParameter(aMaxTotalProgress);
end;
procedure TGeckoChromeForm.OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI);
procedure TGeckoChromeForm.OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; Location: nsIURI{$ifdef gecko11}; aFlags: idlulong{$endif gecko11});
begin
UseParameter(aWebProgress);
UseParameter(aRequest);

View File

@ -7,6 +7,10 @@ program fpmake;
{$ENDIF}
{$ENDIF}
// By default build for Gecko9, because embedding Gecko 10 and 11 is impossible
// on linux due to bug https://bugzilla.mozilla.org/show_bug.cgi?id=720682
{$define gecko9}
uses fpmkunit, sysutils, lazmkunit;
Var
@ -29,7 +33,14 @@ begin
P.Options.add('-Sm');
P.Options.add('-Sd');
{$ifdef gecko11}
P.Options.add('-dgecko11');
P.IncludePath.Add('gecko11');
{$endif gecko11}
{$ifdef gecko9}
P.IncludePath.Add('gecko9');
{$endif gecko9}
P.IncludePath.Add('gecko10');
P.Dependencies.Add('lazmkunit');
@ -188,6 +199,12 @@ begin
Dependencies.AddInclude('nsidomstorage.inc');
Dependencies.AddInclude('nsicontextmenulistener2.inc');
Dependencies.AddInclude('nsidomtext.inc');
{$ifdef gecko11}
Dependencies.AddInclude('nsidomdomtokenlist.inc');
Dependencies.AddInclude('nsidomdomclientrect.inc');
Dependencies.AddInclude('nsidomclientrectlist.inc');
Dependencies.AddInclude('nsiframerequestcallback.inc');
{$endif gecko11}
end;
with P.Targets.AddUnit('nsInit.pas') do

View File

@ -0,0 +1,91 @@
type
imgIContainer = interface;
imgIDecoderObserver = interface;
imgIRequest = interface;
nsIAuthInformation = interface;
nsIAuthPrompt = interface;
nsIAuthPromptCallback = interface;
nsICancelable = interface;
nsIChannel = interface;
nsICommandParams = interface;
nsIComponentManager = interface;
nsIContent = interface;
nsIContentSecurityPolicy = interface;
nsIContentViewer = interface;
nsIContextMenuInfo = interface;
nsIController = interface;
nsIControllers = interface;
nsIDocShell = interface;
nsIDocShellLoadInfo = interface;
nsIDocShellTreeItem = interface;
nsIDocShellTreeOwner = interface;
nsIDocumentCharsetInfo = interface;
nsIDOMBlob = interface;
nsIDOMDocument = interface;
nsIDOMDOMStringList = interface;
nsIDOMElement = interface;
nsIDOMEvent = interface;
nsIDOMEventListener = interface;
nsIDOMEventTarget = interface;
nsIDOMFileError = interface;
nsIDOMLocation = interface;
nsIDOMMediaQueryList = interface;
nsIDOMMediaQueryListListener = interface;
nsIDOMNode = interface;
nsIDOMNodeFilter = interface;
nsIDOMNodeIterator = interface;
nsIDOMOfflineResourceList = interface;
nsIDOMPerformance = interface;
nsIDOMPerformanceNavigation = interface;
nsIDOMPerformanceTiming = interface;
nsIDOMRange = interface;
nsIDOMStorage = interface;
nsIDOMStorageItem = interface;
nsIDOMStorageList = interface;
nsIDOMStorageObsolete = interface;
nsIDOMTreeWalker = interface;
nsIDOMUserDataHandler = interface;
nsIDOMWindow = interface;
nsIDOMXULCommandDispatcher = interface;
nsIFactory = interface;
nsIFile = interface;
nsIFrameRequestCallback = interface;
nsIHistoryEntry = interface;
nsIHttpChannel = interface;
nsIHttpHeaderVisitor = interface;
nsIInputStream = interface;
nsIInterfaceRequestor = interface;
nsILayoutHistoryState = interface;
nsILoadGroup = interface;
nsILocalFile = interface;
nsIObjectInputStream = interface;
nsIObjectOutputStream = interface;
nsIObserver = interface;
nsIOutputStream = interface;
nsIPrincipal = interface;
nsIPrintSession = interface;
nsIPrintSettings = interface;
nsIPrompt = interface;
nsIProtocolHandler = interface;
nsIRequest = interface;
nsIRequestObserver = interface;
nsIScriptContext = interface;
nsISecureBrowserUI = interface;
nsISelection = interface;
nsISHEntry = interface;
nsISHistory = interface;
nsISHistoryListener = interface;
nsISimpleEnumerator = interface;
nsIStreamListener = interface;
nsIURI = interface;
nsIURIContentListener = interface;
nsIVariant = interface;
nsIWeakReference = interface;
nsIWebBrowser = interface;
nsIWebBrowserChrome = interface;
nsIWebBrowserPrint = interface;
nsIWebNavigation = interface;
nsIWebProgress = interface;
nsIWebProgressListener = interface;
nsIWindowCreator = interface;
nsPIDOMWindow = interface;

View File

@ -0,0 +1,16 @@
wstring=PWideChar
string=PAnsiChar
boolean=longbool
FILE=PFILE
nsQIResult,out=
nsCIDRef,in=TGuid,constref
nsIIDRef,in=TGuid,constref
long=idllong
short=idlshort
float=idlfloat
long,unsigned=idlulong
short,unsigned=idlushort
float,unsigned=idlufloat
AUTF8String,f=AUTF8String,
ACString,f=ACString,
DOMString,f=DOMString,

View File

@ -0,0 +1,46 @@
type
imgIContainer = interface(nsISupports)
['{8c82b89f-f90c-4a31-a544-6e1f759673d4}']
function Getwidth(): PRInt32; safecall;
property width : PRInt32 read Getwidth;
function Getheight(): PRInt32; safecall;
property height : PRInt32 read Getheight;
function Gettype(): idlushort; safecall;
property atype : idlushort read Gettype;
{ function GetType() : PRUint16; safecall;
function Getanimated(): longbool; safecall;
property animated : longbool read Getanimated;
function GetcurrentFrameIsOpaque(): longbool; safecall;
property currentFrameIsOpaque : longbool read GetcurrentFrameIsOpaque;
function getFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxASurface; safecall;
function getImageContainer(aManager: LayerManager) : ImageContainer; safecall;
function copyFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxImageSurface; safecall;
function extractFrame(aWhichFrame: PRUint32; aRect: nsIntRect; aFlags: PRUint32) : imgIContainer; safecall;
procedure draw(aContext: gfxContext; aFilter: gfxGraphicsFilter; aUserSpaceToImageSpace: gfxMatrix; aFill: gfxRect; aSubimage: nsIntRect; aViewportSize: nsIntSize; aFlags: PRUint32); safecall;
function GetRootLayoutFrame() : nsIFrame; safecall;
procedure requestDecode(); safecall;
procedure lockImage(); safecall;
procedure unlockImage(); safecall;
procedure requestRefresh(aTime: TimeStamp); safecall;
function GetanimationMode(): idlushort; safecall;
procedure SetanimationMode(aanimationMode: idlushort); safecall;
property animationMode : idlushort read GetanimationMode write SetanimationMode;
procedure resetAnimation(); safecall;
}
end;
const
imgIContainer_TYPE_RASTER=0;
imgIContainer_TYPE_VECTOR=1;
imgIContainer_FLAG_NONE=$0;
imgIContainer_FLAG_SYNC_DECODE=$1;
imgIContainer_FLAG_DECODE_NO_PREMULTIPLY_ALPHA=$2;
imgIContainer_FLAG_DECODE_NO_COLORSPACE_CONVERSION=$4;
imgIContainer_FRAME_FIRST=0;
imgIContainer_FRAME_CURRENT=1;
imgIContainer_FRAME_MAX_VALUE=1;
imgIContainer_kNormalAnimMode=0;
imgIContainer_kDontAnimMode=1;
imgIContainer_kLoopOnceAnimMode=2;

View File

@ -0,0 +1,18 @@
type
imgIDecoderObserver = interface(imgIContainerObserver)
['{2e5fa0c4-57f8-4d16-bda3-1daeba9caa34}']
procedure onStartRequest(aRequest: imgIRequest); safecall;
procedure onStartDecode(aRequest: imgIRequest); safecall;
procedure onStartContainer(aRequest: imgIRequest; aContainer: imgIContainer); safecall;
procedure onStartFrame(aRequest: imgIRequest; aFrame: idlulong); safecall;
procedure onDataAvailable(aRequest: imgIRequest; aCurrentFrame: longbool; aRect: nsIntRect); safecall;
procedure onStopFrame(aRequest: imgIRequest; aFrame: idlulong); safecall;
procedure onStopContainer(aRequest: imgIRequest; aContainer: imgIContainer); safecall;
procedure onImageIsAnimated(aRequest: imgIRequest); safecall;
procedure onStopDecode(aRequest: imgIRequest; status: nsresult; statusArg: PWideChar); safecall;
procedure onStopRequest(aRequest: imgIRequest; aIsLastPart: longbool); safecall;
procedure onDiscard(aRequest: imgIRequest); safecall;
end;

View File

@ -0,0 +1,19 @@
type
nsIDOMClientRect = interface(nsISupports)
['{B2F824C4-D9D3-499B-8D3B-45C8245497C6}']
function Getleft(): idlfloat; safecall;
property left : idlfloat read Getleft;
function Gettop(): idlfloat; safecall;
property top : idlfloat read Gettop;
function Getright(): idlfloat; safecall;
property right : idlfloat read Getright;
function Getbottom(): idlfloat; safecall;
property bottom : idlfloat read Getbottom;
function Getwidth(): idlfloat; safecall;
property width : idlfloat read Getwidth;
function Getheight(): idlfloat; safecall;
property height : idlfloat read Getheight;
end;

View File

@ -0,0 +1,10 @@
type
nsIDOMClientRectList = interface(nsISupports)
['{917da19d-62f5-441d-b47e-9e35f05639c9}']
function Getlength(): idlulong; safecall;
property length : idlulong read Getlength;
function item(index: idlulong) : nsIDOMClientRect; safecall;
end;

View File

@ -0,0 +1,15 @@
type
nsIDOMDOMTokenList = interface(nsISupports)
['{c6f1e160-eeeb-404a-98b0-6f1246520b6e}']
function Getlength(): idlulong; safecall;
property length : idlulong read Getlength;
procedure item(index: idlulong; result_: DOMString); safecall;
function contains(token: DOMString) : longbool; safecall;
procedure add(token: DOMString); safecall;
procedure remove(token: DOMString); safecall;
function toggle(token: DOMString) : longbool; safecall;
procedure toString( result_: DOMString); safecall;
end;

View File

@ -0,0 +1,67 @@
type
nsIDOMElement = interface(nsIDOMNode)
['{f561753a-1d4f-40c1-b147-ea955fc6fd94}']
procedure GettagName( result_: DOMString); safecall;
function GetclassList(): nsIDOMDOMTokenList; safecall;
property classList : nsIDOMDOMTokenList read GetclassList;
procedure getAttribute(aname: DOMString; result_: DOMString); safecall;
procedure getAttributeNS(anamespaceURI: DOMString; alocalName: DOMString; result_: DOMString); safecall;
procedure setAttribute(aname: DOMString; avalue: DOMString); safecall;
procedure setAttributeNS(anamespaceURI: DOMString; aqualifiedName: DOMString; avalue: DOMString); safecall;
procedure removeAttribute(aname: DOMString); safecall;
procedure removeAttributeNS(anamespaceURI: DOMString; alocalName: DOMString); safecall;
function hasAttribute(aname: DOMString) : longbool; safecall;
function hasAttributeNS(anamespaceURI: DOMString; alocalName: DOMString) : longbool; safecall;
function getAttributeNode(aname: DOMString) : nsIDOMAttr; safecall;
function setAttributeNode(anewAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
function removeAttributeNode(anoldAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
function getAttributeNodeNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMAttr; safecall;
function setAttributeNodeNS(anewAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
function getElementsByTagName(aname: DOMString) : nsIDOMNodeList; safecall;
function getElementsByTagNameNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMNodeList; safecall;
function getElementsByClassName(aclasses: DOMString) : nsIDOMNodeList; safecall;
function Getchildren(): nsIDOMNodeList; safecall;
property children : nsIDOMNodeList read Getchildren;
function GetfirstElementChild(): nsIDOMElement; safecall;
property firstElementChild : nsIDOMElement read GetfirstElementChild;
function GetlastElementChild(): nsIDOMElement; safecall;
property lastElementChild : nsIDOMElement read GetlastElementChild;
function GetpreviousElementSibling(): nsIDOMElement; safecall;
property previousElementSibling : nsIDOMElement read GetpreviousElementSibling;
function GetnextElementSibling(): nsIDOMElement; safecall;
property nextElementSibling : nsIDOMElement read GetnextElementSibling;
function GetchildElementCount(): idlulong; safecall;
property childElementCount : idlulong read GetchildElementCount;
function Getonmouseenter(): jsval; safecall;
procedure Setonmouseenter(aonmouseenter: jsval); safecall;
property onmouseenter : jsval read Getonmouseenter write Setonmouseenter;
function Getonmouseleave(): jsval; safecall;
procedure Setonmouseleave(aonmouseleave: jsval); safecall;
property onmouseleave : jsval read Getonmouseleave write Setonmouseleave;
function getClientRects() : nsIDOMClientRectList; safecall;
function getBoundingClientRect() : nsIDOMClientRect; safecall;
function GetscrollTop(): idllong; safecall;
procedure SetscrollTop(ascrollTop: idllong); safecall;
property scrollTop : idllong read GetscrollTop write SetscrollTop;
function GetscrollLeft(): idllong; safecall;
procedure SetscrollLeft(ascrollLeft: idllong); safecall;
property scrollLeft : idllong read GetscrollLeft write SetscrollLeft;
function GetscrollWidth(): idllong; safecall;
property scrollWidth : idllong read GetscrollWidth;
function GetscrollHeight(): idllong; safecall;
property scrollHeight : idllong read GetscrollHeight;
function GetclientTop(): idllong; safecall;
property clientTop : idllong read GetclientTop;
function GetclientLeft(): idllong; safecall;
property clientLeft : idllong read GetclientLeft;
function GetclientWidth(): idllong; safecall;
property clientWidth : idllong read GetclientWidth;
function GetclientHeight(): idllong; safecall;
property clientHeight : idllong read GetclientHeight;
function mozMatchesSelector(aselector: DOMString) : longbool; safecall;
procedure setCapture(aretargetToElement: longbool); safecall;
procedure releaseCapture(); safecall;
end;

View File

@ -0,0 +1,43 @@
type
nsIDOMEvent = interface(nsISupports)
['{e85cff74-951f-45c1-be0c-89442ea2f500}']
procedure Gettype( result_: DOMString); safecall;
function Gettarget(): nsIDOMEventTarget; safecall;
property target : nsIDOMEventTarget read Gettarget;
function GetcurrentTarget(): nsIDOMEventTarget; safecall;
property currentTarget : nsIDOMEventTarget read GetcurrentTarget;
function GeteventPhase(): idlushort; safecall;
property eventPhase : idlushort read GeteventPhase;
function Getbubbles(): longbool; safecall;
property bubbles : longbool read Getbubbles;
function Getcancelable(): longbool; safecall;
property cancelable : longbool read Getcancelable;
function GettimeStamp(): DOMTimeStamp; safecall;
property timeStamp : DOMTimeStamp read GettimeStamp;
procedure stopPropagation(); safecall;
procedure preventDefault(); safecall;
procedure initEvent(eventTypeArg: DOMString; canBubbleArg: longbool; cancelableArg: longbool); safecall;
function GetdefaultPrevented(): longbool; safecall;
property defaultPrevented : longbool read GetdefaultPrevented;
procedure stopImmediatePropagation(); safecall;
end;
const
nsIDOMEvent_CAPTURING_PHASE=1;
nsIDOMEvent_AT_TARGET=2;
nsIDOMEvent_BUBBLING_PHASE=3;
type
nsIEventInit = interface(nsISupports)
['{fe864f0f-45df-404a-bb27-83c5d08be8d1}']
function Getbubbles(): longbool; safecall;
procedure Setbubbles(abubbles: longbool); safecall;
property bubbles : longbool read Getbubbles write Setbubbles;
function Getcancelable(): longbool; safecall;
procedure Setcancelable(acancelable: longbool); safecall;
property cancelable : longbool read Getcancelable write Setcancelable;
end;

View File

@ -0,0 +1,21 @@
type
nsIDOMEventTarget = interface(nsISupports)
['{8e375931-298d-4d0a-9cb4-5668f0cdc5a8}']
procedure addEventListener(atype: DOMString; listener: nsIDOMEventListener; useCapture: longbool; wantsUntrusted: longbool); safecall;
procedure addSystemEventListener(atype: DOMString; listener: nsIDOMEventListener; aUseCapture: longbool; aWantsUntrusted: longbool); safecall;
procedure removeEventListener(atype: DOMString; listener: nsIDOMEventListener; useCapture: longbool); safecall;
procedure removeSystemEventListener(atype: DOMString; listener: nsIDOMEventListener; aUseCapture: longbool); safecall;
function dispatchEvent(evt: nsIDOMEvent) : longbool; safecall;
function GetTargetForDOMEvent() : nsIDOMEventTarget; safecall;
function GetTargetForEventTargetChain() : nsIDOMEventTarget; safecall;
{ procedure PreHandleEvent(aVisitor: nsEventChainPreVisitorRef); safecall;
procedure WillHandleEvent(aVisitor: nsEventChainPostVisitorRef); safecall;
procedure PostHandleEvent(aVisitor: nsEventChainPostVisitorRef); safecall;
procedure DispatchDOMEvent(aEvent: nsEventPtr; aDOMEvent: nsIDOMEvent; aPresContext: nsPresContextPtr; aEventStatus: nsEventStatusPtr); safecall;
function GetListenerManager(aMayCreate: longbool) : nsEventListenerManagerPtr; safecall;
function GetContextForEventHandlers(out aRv: nsresult) : nsIScriptContext; safecall;
function GetJSContextForEventHandlers() : JSContextPtr; safecall;
}
end;

View File

@ -0,0 +1,35 @@
type
nsIDOMBlob = interface(nsISupports)
['{f62c6887-e3bc-495a-802c-287e12e969a0}']
function Getsize(): idlulong; safecall;
property size : idlulong read Getsize;
procedure Gettype( result_: DOMString); safecall;
function GetinternalStream(): nsIInputStream; safecall;
property internalStream : nsIInputStream read GetinternalStream;
procedure getInternalUrl(principal: nsIPrincipal; result_: DOMString); safecall;
function mozSlice(start: idllong; anend: idllong; contentType: DOMString) : nsIDOMBlob; safecall;
function getFileId() : idllong; safecall;
{ procedure addFileInfo(aFileInfo: FileInfo); safecall;
function getFileInfo(aFileManager: FileManager) : FileInfo; safecall;
}
end;
nsIDOMFile = interface(nsIDOMBlob)
['{b096ef67-7b77-47f8-8e70-5d8ee36416bf}']
procedure Getname( result_: DOMString); safecall;
procedure GetmozFullPath( result_: DOMString); safecall;
procedure GetmozFullPathInternal( result_: DOMString); safecall;
end;
nsIDOMMozBlobBuilder = interface(nsISupports)
['{006d2cde-ec18-41d4-acc3-43682dd418e2}']
function getBlob(contentType: DOMString) : nsIDOMBlob; safecall;
function getFile(name: DOMString; contentType: DOMString) : nsIDOMFile; safecall;
procedure append(data: jsval); safecall;
end;

View File

@ -0,0 +1,31 @@
type
nsIDOMNavigator = interface(nsISupports)
['{d6d01084-4a7d-469b-9654-76cf220cb124}']
procedure GetappCodeName( result_: DOMString); safecall;
procedure GetappName( result_: DOMString); safecall;
procedure GetappVersion( result_: DOMString); safecall;
procedure Getlanguage( result_: DOMString); safecall;
function GetmimeTypes(): nsIDOMMimeTypeArray; safecall;
property mimeTypes : nsIDOMMimeTypeArray read GetmimeTypes;
procedure Getplatform( result_: DOMString); safecall;
procedure Getoscpu( result_: DOMString); safecall;
procedure Getvendor( result_: DOMString); safecall;
procedure GetvendorSub( result_: DOMString); safecall;
procedure Getproduct( result_: DOMString); safecall;
procedure GetproductSub( result_: DOMString); safecall;
function Getplugins(): nsIDOMPluginArray; safecall;
property plugins : nsIDOMPluginArray read Getplugins;
procedure GetuserAgent( result_: DOMString); safecall;
function GetcookieEnabled(): longbool; safecall;
property cookieEnabled : longbool read GetcookieEnabled;
function GetonLine(): longbool; safecall;
property onLine : longbool read GetonLine;
procedure GetbuildID( result_: DOMString); safecall;
procedure GetdoNotTrack( result_: DOMString); safecall;
function javaEnabled() : longbool; safecall;
function taintEnabled() : longbool; safecall;
procedure mozVibrate(aPattern: jsval); safecall;
end;

View File

@ -0,0 +1,33 @@
type
nsIDOMScreen = interface(nsISupports)
['{4507e43f-097c-452a-bfc4-dbb99748f6fd}']
function Gettop(): idllong; safecall;
property top : idllong read Gettop;
function Getleft(): idllong; safecall;
property left : idllong read Getleft;
function Getwidth(): idllong; safecall;
property width : idllong read Getwidth;
function Getheight(): idllong; safecall;
property height : idllong read Getheight;
function GetpixelDepth(): idllong; safecall;
property pixelDepth : idllong read GetpixelDepth;
function GetcolorDepth(): idllong; safecall;
property colorDepth : idllong read GetcolorDepth;
function GetavailWidth(): idllong; safecall;
property availWidth : idllong read GetavailWidth;
function GetavailHeight(): idllong; safecall;
property availHeight : idllong read GetavailHeight;
function GetavailLeft(): idllong; safecall;
property availLeft : idllong read GetavailLeft;
function GetavailTop(): idllong; safecall;
property availTop : idllong read GetavailTop;
function GetmozEnabled(): longbool; safecall;
procedure SetmozEnabled(amozEnabled: longbool); safecall;
property mozEnabled : longbool read GetmozEnabled write SetmozEnabled;
function GetmozBrightness(): double; safecall;
procedure SetmozBrightness(amozBrightness: double); safecall;
property mozBrightness : double read GetmozBrightness write SetmozBrightness;
end;

View File

@ -0,0 +1,225 @@
type
nsIDOMMozURLProperty = interface(nsISupports)
['{8fc58f56-f769-4368-a098-edd08550cf1a}']
procedure createObjectURL(blob: nsIDOMBlob; result_: DOMString); safecall;
procedure revokeObjectURL(URL: DOMString); safecall;
end;
nsIDOMWindow = interface(nsISupports)
['{f6e3b10d-d5f4-4fcd-aa4c-5f98626d428a}']
function Getwindow(): nsIDOMWindow; safecall;
property window : nsIDOMWindow read Getwindow;
function Getself(): nsIDOMWindow; safecall;
property self : nsIDOMWindow read Getself;
function Getdocument(): nsIDOMDocument; safecall;
property document : nsIDOMDocument read Getdocument;
procedure Getname( result_: DOMString); safecall;
procedure Setname(aname: DOMString); safecall;
function Getlocation(): nsIDOMLocation; safecall;
property location : nsIDOMLocation read Getlocation;
function Gethistory(): nsIDOMHistory; safecall;
property history : nsIDOMHistory read Gethistory;
function Getlocationbar(): nsIDOMBarProp; safecall;
property locationbar : nsIDOMBarProp read Getlocationbar;
function Getmenubar(): nsIDOMBarProp; safecall;
property menubar : nsIDOMBarProp read Getmenubar;
function Getpersonalbar(): nsIDOMBarProp; safecall;
property personalbar : nsIDOMBarProp read Getpersonalbar;
function Getscrollbars(): nsIDOMBarProp; safecall;
property scrollbars : nsIDOMBarProp read Getscrollbars;
function Getstatusbar(): nsIDOMBarProp; safecall;
property statusbar : nsIDOMBarProp read Getstatusbar;
function Gettoolbar(): nsIDOMBarProp; safecall;
property toolbar : nsIDOMBarProp read Gettoolbar;
procedure Getstatus( result_: DOMString); safecall;
procedure Setstatus(astatus: DOMString); safecall;
procedure close(); safecall;
procedure stop(); safecall;
procedure focus(); safecall;
procedure blur(); safecall;
function Getlength(): idlulong; safecall;
property length : idlulong read Getlength;
function Gettop(): nsIDOMWindow; safecall;
property top : nsIDOMWindow read Gettop;
function Getopener(): nsIDOMWindow; safecall;
procedure Setopener(aopener: nsIDOMWindow); safecall;
property opener : nsIDOMWindow read Getopener write Setopener;
function Getparent(): nsIDOMWindow; safecall;
property parent : nsIDOMWindow read Getparent;
function GetframeElement(): nsIDOMElement; safecall;
property frameElement : nsIDOMElement read GetframeElement;
function Getnavigator(): nsIDOMNavigator; safecall;
property navigator : nsIDOMNavigator read Getnavigator;
function GetapplicationCache(): nsIDOMOfflineResourceList; safecall;
property applicationCache : nsIDOMOfflineResourceList read GetapplicationCache;
procedure alert(text: DOMString); safecall;
function confirm(text: DOMString) : longbool; safecall;
procedure prompt(aMessage: DOMString; aInitial: DOMString; result_: DOMString); safecall;
procedure print(); safecall;
function showModalDialog(aURI: DOMString; aArgs: nsIVariant; aOptions: DOMString) : nsIVariant; safecall;
procedure postMessage(message: jsval; targetOrigin: DOMString); safecall;
procedure atob(aAsciiString: DOMString; result_: DOMString); safecall;
procedure btoa(aBase64Data: DOMString; result_: DOMString); safecall;
function GetsessionStorage(): nsIDOMStorage; safecall;
property sessionStorage : nsIDOMStorage read GetsessionStorage;
function GetlocalStorage(): nsIDOMStorage; safecall;
property localStorage : nsIDOMStorage read GetlocalStorage;
function getSelection() : nsISelection; safecall;
function matchMedia(media_query_list: DOMString) : nsIDOMMediaQueryList; safecall;
function Getscreen(): nsIDOMScreen; safecall;
property screen : nsIDOMScreen read Getscreen;
function GetinnerWidth(): idllong; safecall;
procedure SetinnerWidth(ainnerWidth: idllong); safecall;
property innerWidth : idllong read GetinnerWidth write SetinnerWidth;
function GetinnerHeight(): idllong; safecall;
procedure SetinnerHeight(ainnerHeight: idllong); safecall;
property innerHeight : idllong read GetinnerHeight write SetinnerHeight;
function GetscrollX(): idllong; safecall;
property scrollX : idllong read GetscrollX;
function GetpageXOffset(): idllong; safecall;
property pageXOffset : idllong read GetpageXOffset;
function GetscrollY(): idllong; safecall;
property scrollY : idllong read GetscrollY;
function GetpageYOffset(): idllong; safecall;
property pageYOffset : idllong read GetpageYOffset;
procedure scroll(xScroll: idllong; yScroll: idllong); safecall;
procedure scrollTo(xScroll: idllong; yScroll: idllong); safecall;
procedure scrollBy(xScrollDif: idllong; yScrollDif: idllong); safecall;
function GetscreenX(): idllong; safecall;
procedure SetscreenX(ascreenX: idllong); safecall;
property screenX : idllong read GetscreenX write SetscreenX;
function GetscreenY(): idllong; safecall;
procedure SetscreenY(ascreenY: idllong); safecall;
property screenY : idllong read GetscreenY write SetscreenY;
function GetouterWidth(): idllong; safecall;
procedure SetouterWidth(aouterWidth: idllong); safecall;
property outerWidth : idllong read GetouterWidth write SetouterWidth;
function GetouterHeight(): idllong; safecall;
procedure SetouterHeight(aouterHeight: idllong); safecall;
property outerHeight : idllong read GetouterHeight write SetouterHeight;
function getComputedStyle(elt: nsIDOMElement; pseudoElt: DOMString) : nsIDOMCSSStyleDeclaration; safecall;
function GetwindowRoot(): nsIDOMEventTarget; safecall;
property windowRoot : nsIDOMEventTarget read GetwindowRoot;
function Getframes(): nsIDOMWindowCollection; safecall;
property frames : nsIDOMWindowCollection read Getframes;
function GettextZoom(): idlfloat; safecall;
procedure SettextZoom(atextZoom: idlfloat); safecall;
property textZoom : idlfloat read GettextZoom write SettextZoom;
procedure scrollByLines(numLines: idllong); safecall;
procedure scrollByPages(numPages: idllong); safecall;
procedure sizeToContent(); safecall;
function Getcontent(): nsIDOMWindow; safecall;
property content : nsIDOMWindow read Getcontent;
function Getprompter(): nsIPrompt; safecall;
property prompter : nsIPrompt read Getprompter;
function Getclosed(): longbool; safecall;
property closed : longbool read Getclosed;
function Getcrypto(): nsIDOMCrypto; safecall;
property crypto : nsIDOMCrypto read Getcrypto;
function Getpkcs11(): nsIDOMPkcs11; safecall;
property pkcs11 : nsIDOMPkcs11 read Getpkcs11;
function Getcontrollers(): nsIControllers; safecall;
property controllers : nsIControllers read Getcontrollers;
procedure GetdefaultStatus( result_: DOMString); safecall;
procedure SetdefaultStatus(adefaultStatus: DOMString); safecall;
function GetmozInnerScreenX(): idlfloat; safecall;
property mozInnerScreenX : idlfloat read GetmozInnerScreenX;
function GetmozInnerScreenY(): idlfloat; safecall;
property mozInnerScreenY : idlfloat read GetmozInnerScreenY;
function GetscrollMaxX(): idllong; safecall;
property scrollMaxX : idllong read GetscrollMaxX;
function GetscrollMaxY(): idllong; safecall;
property scrollMaxY : idllong read GetscrollMaxY;
function GetfullScreen(): longbool; safecall;
procedure SetfullScreen(afullScreen: longbool); safecall;
property fullScreen : longbool read GetfullScreen write SetfullScreen;
procedure back(); safecall;
procedure forward(); safecall;
procedure home(); safecall;
procedure moveTo(xPos: idllong; yPos: idllong); safecall;
procedure moveBy(xDif: idllong; yDif: idllong); safecall;
procedure resizeTo(width: idllong; height: idllong); safecall;
procedure resizeBy(widthDif: idllong; heightDif: idllong); safecall;
function open(anurl: DOMString; aname: DOMString; options: DOMString) : nsIDOMWindow; safecall;
function openDialog(anurl: DOMString; aname: DOMString; options: DOMString; aExtraArgument: nsISupports) : nsIDOMWindow; safecall;
procedure updateCommands(action: DOMString); safecall;
function find(str: DOMString; caseSensitive: longbool; backwards: longbool; wrapAround: longbool; wholeWord: longbool; searchInFrames: longbool; showDialog: longbool) : longbool; safecall;
function GetmozPaintCount(): idlulong; safecall;
property mozPaintCount : idlulong read GetmozPaintCount;
function mozRequestAnimationFrame(aCallback: nsIFrameRequestCallback) : idllong; safecall;
procedure mozCancelAnimationFrame(aHandle: idllong); safecall;
procedure mozCancelRequestAnimationFrame(aHandle: idllong); safecall;
function GetmozAnimationStartTime(): idllong; safecall;
property mozAnimationStartTime : idllong read GetmozAnimationStartTime;
function GetURL(): nsIDOMMozURLProperty; safecall;
property URL : nsIDOMMozURLProperty read GetURL;
function GetglobalStorage(): nsIDOMStorageList; safecall;
property globalStorage : nsIDOMStorageList read GetglobalStorage;
function Getonafterprint(): jsval; safecall;
procedure Setonafterprint(aonafterprint: jsval); safecall;
property onafterprint : jsval read Getonafterprint write Setonafterprint;
function Getonbeforeprint(): jsval; safecall;
procedure Setonbeforeprint(aonbeforeprint: jsval); safecall;
property onbeforeprint : jsval read Getonbeforeprint write Setonbeforeprint;
function Getonbeforeunload(): jsval; safecall;
procedure Setonbeforeunload(aonbeforeunload: jsval); safecall;
property onbeforeunload : jsval read Getonbeforeunload write Setonbeforeunload;
function Getonhashchange(): jsval; safecall;
procedure Setonhashchange(aonhashchange: jsval); safecall;
property onhashchange : jsval read Getonhashchange write Setonhashchange;
function Getonmessage(): jsval; safecall;
procedure Setonmessage(aonmessage: jsval); safecall;
property onmessage : jsval read Getonmessage write Setonmessage;
function Getonoffline(): jsval; safecall;
procedure Setonoffline(aonoffline: jsval); safecall;
property onoffline : jsval read Getonoffline write Setonoffline;
function Getononline(): jsval; safecall;
procedure Setononline(aononline: jsval); safecall;
property ononline : jsval read Getononline write Setononline;
function Getonpopstate(): jsval; safecall;
procedure Setonpopstate(aonpopstate: jsval); safecall;
property onpopstate : jsval read Getonpopstate write Setonpopstate;
function Getonpagehide(): jsval; safecall;
procedure Setonpagehide(aonpagehide: jsval); safecall;
property onpagehide : jsval read Getonpagehide write Setonpagehide;
function Getonpageshow(): jsval; safecall;
procedure Setonpageshow(aonpageshow: jsval); safecall;
property onpageshow : jsval read Getonpageshow write Setonpageshow;
function Getonresize(): jsval; safecall;
procedure Setonresize(aonresize: jsval); safecall;
property onresize : jsval read Getonresize write Setonresize;
function Getonunload(): jsval; safecall;
procedure Setonunload(aonunload: jsval); safecall;
property onunload : jsval read Getonunload write Setonunload;
function Getondevicemotion(): jsval; safecall;
procedure Setondevicemotion(aondevicemotion: jsval); safecall;
property ondevicemotion : jsval read Getondevicemotion write Setondevicemotion;
function Getondeviceorientation(): jsval; safecall;
procedure Setondeviceorientation(aondeviceorientation: jsval); safecall;
property ondeviceorientation : jsval read Getondeviceorientation write Setondeviceorientation;
function Getonmouseenter(): jsval; safecall;
procedure Setonmouseenter(aonmouseenter: jsval); safecall;
property onmouseenter : jsval read Getonmouseenter write Setonmouseenter;
function Getonmouseleave(): jsval; safecall;
procedure Setonmouseleave(aonmouseleave: jsval); safecall;
property onmouseleave : jsval read Getonmouseleave write Setonmouseleave;
end;
nsIDOMWindowPerformance = interface(nsISupports)
['{2146c906-57f7-486c-a1b4-8cdb57ef577f}']
function Getperformance(): nsIDOMPerformance; safecall;
property performance : nsIDOMPerformance read Getperformance;
end;
nsIDOMWindowInternal = interface(nsIDOMWindow)
['{8da641ab-906a-456e-97f2-b77df4ca2d95}']
end;

View File

@ -0,0 +1,28 @@
type
nsIEventSource = interface(nsISupports)
['{a3d3181e-47c1-4f2e-b2c7-94775a86f5c5}']
procedure Geturl( result_: DOMString); safecall;
function GetreadyState(): idllong; safecall;
property readyState : idllong read GetreadyState;
function GetwithCredentials(): longbool; safecall;
property withCredentials : longbool read GetwithCredentials;
function Getonopen(): nsIDOMEventListener; safecall;
procedure Setonopen(aonopen: nsIDOMEventListener); safecall;
property onopen : nsIDOMEventListener read Getonopen write Setonopen;
function Getonmessage(): nsIDOMEventListener; safecall;
procedure Setonmessage(aonmessage: nsIDOMEventListener); safecall;
property onmessage : nsIDOMEventListener read Getonmessage write Setonmessage;
function Getonerror(): nsIDOMEventListener; safecall;
procedure Setonerror(aonerror: nsIDOMEventListener); safecall;
property onerror : nsIDOMEventListener read Getonerror write Setonerror;
procedure close(); safecall;
procedure init(principal: nsIPrincipal; scriptContext: nsIScriptContext; ownerWindow: nsPIDOMWindow; anurl: DOMString; awithCredentials: longbool); safecall;
end;
const
nsIEventSource_CONNECTING=0;
nsIEventSource_OPEN=1;
nsIEventSource_CLOSED=2;

View File

@ -0,0 +1,8 @@
type
nsIFrameRequestCallback = interface(nsISupports)
['{e8d887f0-2ed7-406f-9f1d-edeb2c54c0a2}']
procedure sample(timeStamp: DOMTimeStamp); safecall;
end;

View File

@ -0,0 +1,249 @@
type
nsIPrintSettings = interface(nsISupports)
['{4404c94b-0506-4255-9e3c-4582dba6cfbb}']
procedure SetPrintOptions(aType: PRInt32; aTurnOnOff: longbool); safecall;
function GetPrintOptions(aType: PRInt32) : longbool; safecall;
function GetPrintOptionsBits() : PRInt32; safecall;
procedure GetEffectivePageSize(out aWidth: double; out aHeight: double); safecall;
function clone() : nsIPrintSettings; safecall;
procedure assign(aPS: nsIPrintSettings); safecall;
function GetprintSession(): nsIPrintSession; safecall;
procedure SetprintSession(aprintSession: nsIPrintSession); safecall;
property printSession : nsIPrintSession read GetprintSession write SetprintSession;
function GetstartPageRange(): idllong; safecall;
procedure SetstartPageRange(astartPageRange: idllong); safecall;
property startPageRange : idllong read GetstartPageRange write SetstartPageRange;
function GetendPageRange(): idllong; safecall;
procedure SetendPageRange(aendPageRange: idllong); safecall;
property endPageRange : idllong read GetendPageRange write SetendPageRange;
function GetedgeTop(): double; safecall;
procedure SetedgeTop(aedgeTop: double); safecall;
property edgeTop : double read GetedgeTop write SetedgeTop;
function GetedgeLeft(): double; safecall;
procedure SetedgeLeft(aedgeLeft: double); safecall;
property edgeLeft : double read GetedgeLeft write SetedgeLeft;
function GetedgeBottom(): double; safecall;
procedure SetedgeBottom(aedgeBottom: double); safecall;
property edgeBottom : double read GetedgeBottom write SetedgeBottom;
function GetedgeRight(): double; safecall;
procedure SetedgeRight(aedgeRight: double); safecall;
property edgeRight : double read GetedgeRight write SetedgeRight;
function GetmarginTop(): double; safecall;
procedure SetmarginTop(amarginTop: double); safecall;
property marginTop : double read GetmarginTop write SetmarginTop;
function GetmarginLeft(): double; safecall;
procedure SetmarginLeft(amarginLeft: double); safecall;
property marginLeft : double read GetmarginLeft write SetmarginLeft;
function GetmarginBottom(): double; safecall;
procedure SetmarginBottom(amarginBottom: double); safecall;
property marginBottom : double read GetmarginBottom write SetmarginBottom;
function GetmarginRight(): double; safecall;
procedure SetmarginRight(amarginRight: double); safecall;
property marginRight : double read GetmarginRight write SetmarginRight;
function GetunwriteableMarginTop(): double; safecall;
procedure SetunwriteableMarginTop(aunwriteableMarginTop: double); safecall;
property unwriteableMarginTop : double read GetunwriteableMarginTop write SetunwriteableMarginTop;
function GetunwriteableMarginLeft(): double; safecall;
procedure SetunwriteableMarginLeft(aunwriteableMarginLeft: double); safecall;
property unwriteableMarginLeft : double read GetunwriteableMarginLeft write SetunwriteableMarginLeft;
function GetunwriteableMarginBottom(): double; safecall;
procedure SetunwriteableMarginBottom(aunwriteableMarginBottom: double); safecall;
property unwriteableMarginBottom : double read GetunwriteableMarginBottom write SetunwriteableMarginBottom;
function GetunwriteableMarginRight(): double; safecall;
procedure SetunwriteableMarginRight(aunwriteableMarginRight: double); safecall;
property unwriteableMarginRight : double read GetunwriteableMarginRight write SetunwriteableMarginRight;
function Getscaling(): double; safecall;
procedure Setscaling(ascaling: double); safecall;
property scaling : double read Getscaling write Setscaling;
function GetprintBGColors(): longbool; safecall;
procedure SetprintBGColors(aprintBGColors: longbool); safecall;
property printBGColors : longbool read GetprintBGColors write SetprintBGColors;
function GetprintBGImages(): longbool; safecall;
procedure SetprintBGImages(aprintBGImages: longbool); safecall;
property printBGImages : longbool read GetprintBGImages write SetprintBGImages;
function GetprintRange(): idlshort; safecall;
procedure SetprintRange(aprintRange: idlshort); safecall;
property printRange : idlshort read GetprintRange write SetprintRange;
function Gettitle(): PWideChar; safecall;
procedure Settitle(atitle: PWideChar); safecall;
property title : PWideChar read Gettitle write Settitle;
function GetdocURL(): PWideChar; safecall;
procedure SetdocURL(adocURL: PWideChar); safecall;
property docURL : PWideChar read GetdocURL write SetdocURL;
function GetheaderStrLeft(): PWideChar; safecall;
procedure SetheaderStrLeft(aheaderStrLeft: PWideChar); safecall;
property headerStrLeft : PWideChar read GetheaderStrLeft write SetheaderStrLeft;
function GetheaderStrCenter(): PWideChar; safecall;
procedure SetheaderStrCenter(aheaderStrCenter: PWideChar); safecall;
property headerStrCenter : PWideChar read GetheaderStrCenter write SetheaderStrCenter;
function GetheaderStrRight(): PWideChar; safecall;
procedure SetheaderStrRight(aheaderStrRight: PWideChar); safecall;
property headerStrRight : PWideChar read GetheaderStrRight write SetheaderStrRight;
function GetfooterStrLeft(): PWideChar; safecall;
procedure SetfooterStrLeft(afooterStrLeft: PWideChar); safecall;
property footerStrLeft : PWideChar read GetfooterStrLeft write SetfooterStrLeft;
function GetfooterStrCenter(): PWideChar; safecall;
procedure SetfooterStrCenter(afooterStrCenter: PWideChar); safecall;
property footerStrCenter : PWideChar read GetfooterStrCenter write SetfooterStrCenter;
function GetfooterStrRight(): PWideChar; safecall;
procedure SetfooterStrRight(afooterStrRight: PWideChar); safecall;
property footerStrRight : PWideChar read GetfooterStrRight write SetfooterStrRight;
function GethowToEnableFrameUI(): idlshort; safecall;
procedure SethowToEnableFrameUI(ahowToEnableFrameUI: idlshort); safecall;
property howToEnableFrameUI : idlshort read GethowToEnableFrameUI write SethowToEnableFrameUI;
function GetisCancelled(): longbool; safecall;
procedure SetisCancelled(aisCancelled: longbool); safecall;
property isCancelled : longbool read GetisCancelled write SetisCancelled;
function GetprintFrameTypeUsage(): idlshort; safecall;
procedure SetprintFrameTypeUsage(aprintFrameTypeUsage: idlshort); safecall;
property printFrameTypeUsage : idlshort read GetprintFrameTypeUsage write SetprintFrameTypeUsage;
function GetprintFrameType(): idlshort; safecall;
procedure SetprintFrameType(aprintFrameType: idlshort); safecall;
property printFrameType : idlshort read GetprintFrameType write SetprintFrameType;
function GetprintSilent(): longbool; safecall;
procedure SetprintSilent(aprintSilent: longbool); safecall;
property printSilent : longbool read GetprintSilent write SetprintSilent;
function GetshrinkToFit(): longbool; safecall;
procedure SetshrinkToFit(ashrinkToFit: longbool); safecall;
property shrinkToFit : longbool read GetshrinkToFit write SetshrinkToFit;
function GetshowPrintProgress(): longbool; safecall;
procedure SetshowPrintProgress(ashowPrintProgress: longbool); safecall;
property showPrintProgress : longbool read GetshowPrintProgress write SetshowPrintProgress;
function GetpaperName(): PWideChar; safecall;
procedure SetpaperName(apaperName: PWideChar); safecall;
property paperName : PWideChar read GetpaperName write SetpaperName;
function GetpaperSizeType(): idlshort; safecall;
procedure SetpaperSizeType(apaperSizeType: idlshort); safecall;
property paperSizeType : idlshort read GetpaperSizeType write SetpaperSizeType;
function GetpaperData(): idlshort; safecall;
procedure SetpaperData(apaperData: idlshort); safecall;
property paperData : idlshort read GetpaperData write SetpaperData;
function GetpaperWidth(): double; safecall;
procedure SetpaperWidth(apaperWidth: double); safecall;
property paperWidth : double read GetpaperWidth write SetpaperWidth;
function GetpaperHeight(): double; safecall;
procedure SetpaperHeight(apaperHeight: double); safecall;
property paperHeight : double read GetpaperHeight write SetpaperHeight;
function GetpaperSizeUnit(): idlshort; safecall;
procedure SetpaperSizeUnit(apaperSizeUnit: idlshort); safecall;
property paperSizeUnit : idlshort read GetpaperSizeUnit write SetpaperSizeUnit;
function GetplexName(): PWideChar; safecall;
procedure SetplexName(aplexName: PWideChar); safecall;
property plexName : PWideChar read GetplexName write SetplexName;
function Getcolorspace(): PWideChar; safecall;
procedure Setcolorspace(acolorspace: PWideChar); safecall;
property colorspace : PWideChar read Getcolorspace write Setcolorspace;
function GetresolutionName(): PWideChar; safecall;
procedure SetresolutionName(aresolutionName: PWideChar); safecall;
property resolutionName : PWideChar read GetresolutionName write SetresolutionName;
function GetdownloadFonts(): longbool; safecall;
procedure SetdownloadFonts(adownloadFonts: longbool); safecall;
property downloadFonts : longbool read GetdownloadFonts write SetdownloadFonts;
function GetprintReversed(): longbool; safecall;
procedure SetprintReversed(aprintReversed: longbool); safecall;
property printReversed : longbool read GetprintReversed write SetprintReversed;
function GetprintInColor(): longbool; safecall;
procedure SetprintInColor(aprintInColor: longbool); safecall;
property printInColor : longbool read GetprintInColor write SetprintInColor;
function Getorientation(): idllong; safecall;
procedure Setorientation(aorientation: idllong); safecall;
property orientation : idllong read Getorientation write Setorientation;
function GetprintCommand(): PWideChar; safecall;
procedure SetprintCommand(aprintCommand: PWideChar); safecall;
property printCommand : PWideChar read GetprintCommand write SetprintCommand;
function GetnumCopies(): idllong; safecall;
procedure SetnumCopies(anumCopies: idllong); safecall;
property numCopies : idllong read GetnumCopies write SetnumCopies;
function GetprinterName(): PWideChar; safecall;
procedure SetprinterName(aprinterName: PWideChar); safecall;
property printerName : PWideChar read GetprinterName write SetprinterName;
function GetprintToFile(): longbool; safecall;
procedure SetprintToFile(aprintToFile: longbool); safecall;
property printToFile : longbool read GetprintToFile write SetprintToFile;
function GettoFileName(): PWideChar; safecall;
procedure SettoFileName(atoFileName: PWideChar); safecall;
property toFileName : PWideChar read GettoFileName write SettoFileName;
function GetoutputFormat(): idlshort; safecall;
procedure SetoutputFormat(aoutputFormat: idlshort); safecall;
property outputFormat : idlshort read GetoutputFormat write SetoutputFormat;
function GetprintPageDelay(): idllong; safecall;
procedure SetprintPageDelay(aprintPageDelay: idllong); safecall;
property printPageDelay : idllong read GetprintPageDelay write SetprintPageDelay;
function GetisInitializedFromPrinter(): longbool; safecall;
procedure SetisInitializedFromPrinter(aisInitializedFromPrinter: longbool); safecall;
property isInitializedFromPrinter : longbool read GetisInitializedFromPrinter write SetisInitializedFromPrinter;
function GetisInitializedFromPrefs(): longbool; safecall;
procedure SetisInitializedFromPrefs(aisInitializedFromPrefs: longbool); safecall;
property isInitializedFromPrefs : longbool read GetisInitializedFromPrefs write SetisInitializedFromPrefs;
{ procedure SetMarginInTwips(aMargin: nsNativeIntMarginRef); safecall;
procedure SetEdgeInTwips(aEdge: nsNativeIntMarginRef); safecall;
procedure GetMarginInTwips(aMargin: nsNativeIntMarginRef); safecall;
procedure GetEdgeInTwips(aEdge: nsNativeIntMarginRef); safecall;
procedure SetupSilentPrinting(); safecall;
procedure SetUnwriteableMarginInTwips(aEdge: nsNativeIntMarginRef); safecall;
procedure GetUnwriteableMarginInTwips(aEdge: nsNativeIntMarginRef); safecall;
procedure GetPageRanges(aPages: IntegerArray); safecall;
}
end;
const
nsIPrintSettings_kInitSaveOddEvenPages=$00000001;
nsIPrintSettings_kInitSaveHeaderLeft=$00000002;
nsIPrintSettings_kInitSaveHeaderCenter=$00000004;
nsIPrintSettings_kInitSaveHeaderRight=$00000008;
nsIPrintSettings_kInitSaveFooterLeft=$00000010;
nsIPrintSettings_kInitSaveFooterCenter=$00000020;
nsIPrintSettings_kInitSaveFooterRight=$00000040;
nsIPrintSettings_kInitSaveBGColors=$00000080;
nsIPrintSettings_kInitSaveBGImages=$00000100;
nsIPrintSettings_kInitSavePaperSize=$00000200;
nsIPrintSettings_kInitSavePaperData=$00002000;
nsIPrintSettings_kInitSaveUnwriteableMargins=$00004000;
nsIPrintSettings_kInitSaveEdges=$00008000;
nsIPrintSettings_kInitSaveReversed=$00010000;
nsIPrintSettings_kInitSaveInColor=$00020000;
nsIPrintSettings_kInitSaveOrientation=$00040000;
nsIPrintSettings_kInitSavePrintCommand=$00080000;
nsIPrintSettings_kInitSavePrinterName=$00100000;
nsIPrintSettings_kInitSavePrintToFile=$00200000;
nsIPrintSettings_kInitSaveToFileName=$00400000;
nsIPrintSettings_kInitSavePageDelay=$00800000;
nsIPrintSettings_kInitSaveMargins=$01000000;
nsIPrintSettings_kInitSaveNativeData=$02000000;
nsIPrintSettings_kInitSavePlexName=$04000000;
nsIPrintSettings_kInitSaveShrinkToFit=$08000000;
nsIPrintSettings_kInitSaveScaling=$10000000;
nsIPrintSettings_kInitSaveColorspace=$20000000;
nsIPrintSettings_kInitSaveResolutionName=$40000000;
nsIPrintSettings_kInitSaveDownloadFonts=$80000000;
nsIPrintSettings_kInitSaveAll=$FFFFFFFF;
nsIPrintSettings_kPrintOddPages=$00000001;
nsIPrintSettings_kPrintEvenPages=$00000002;
nsIPrintSettings_kEnableSelectionRB=$00000004;
nsIPrintSettings_kRangeAllPages=0;
nsIPrintSettings_kRangeSpecifiedPageRange=1;
nsIPrintSettings_kRangeSelection=2;
nsIPrintSettings_kRangeFocusFrame=3;
nsIPrintSettings_kJustLeft=0;
nsIPrintSettings_kJustCenter=1;
nsIPrintSettings_kJustRight=2;
nsIPrintSettings_kUseInternalDefault=0;
nsIPrintSettings_kUseSettingWhenPossible=1;
nsIPrintSettings_kPaperSizeNativeData=0;
nsIPrintSettings_kPaperSizeDefined=1;
nsIPrintSettings_kPaperSizeInches=0;
nsIPrintSettings_kPaperSizeMillimeters=1;
nsIPrintSettings_kPortraitOrientation=0;
nsIPrintSettings_kLandscapeOrientation=1;
nsIPrintSettings_kNoFrames=0;
nsIPrintSettings_kFramesAsIs=1;
nsIPrintSettings_kSelectedFrame=2;
nsIPrintSettings_kEachFrameSep=3;
nsIPrintSettings_kFrameEnableNone=0;
nsIPrintSettings_kFrameEnableAll=1;
nsIPrintSettings_kFrameEnableAsIsAndEach=2;
nsIPrintSettings_kOutputFormatNative=0;
nsIPrintSettings_kOutputFormatPS=1;
nsIPrintSettings_kOutputFormatPDF=2;

View File

@ -0,0 +1,34 @@
type
nsIProtocolHandler = interface(nsISupports)
['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}']
procedure Getscheme( result_: ACString); safecall;
function GetdefaultPort(): idllong; safecall;
property defaultPort : idllong read GetdefaultPort;
function GetprotocolFlags(): idlulong; safecall;
property protocolFlags : idlulong read GetprotocolFlags;
function newURI(aSpec: AUTF8String; aOriginCharset: PAnsiChar; aBaseURI: nsIURI) : nsIURI; safecall;
function newChannel(aURI: nsIURI) : nsIChannel; safecall;
function allowPort(port: idllong; ascheme: PAnsiChar) : longbool; safecall;
end;
const
nsIProtocolHandler_URI_STD=0;
nsIProtocolHandler_URI_NORELATIVE=(1<<0);
nsIProtocolHandler_URI_NOAUTH=(1<<1);
nsIProtocolHandler_URI_INHERITS_SECURITY_CONTEXT=(1<<4);
nsIProtocolHandler_URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT=(1<<5);
nsIProtocolHandler_URI_LOADABLE_BY_ANYONE=(1<<6);
nsIProtocolHandler_URI_DANGEROUS_TO_LOAD=(1<<7);
nsIProtocolHandler_URI_IS_UI_RESOURCE=(1<<8);
nsIProtocolHandler_URI_IS_LOCAL_FILE=(1<<9);
nsIProtocolHandler_URI_LOADABLE_BY_SUBSUMERS=(1<<14);
nsIProtocolHandler_URI_NON_PERSISTABLE=(1<<10);
nsIProtocolHandler_URI_DOES_NOT_RETURN_DATA=(1<<11);
nsIProtocolHandler_URI_IS_LOCAL_RESOURCE=(1<<12);
nsIProtocolHandler_URI_OPENING_EXECUTES_SCRIPT=(1<<13);
nsIProtocolHandler_ALLOWS_PROXY=(1<<2);
nsIProtocolHandler_ALLOWS_PROXY_HTTP=(1<<3);
nsIProtocolHandler_URI_FORBIDS_COOKIE_ACCESS=(1<<15);

View File

@ -0,0 +1,32 @@
type
nsIWebProgressListener = interface(nsISupports)
['{a0cda7e4-c6ca-11e0-b6a5-001320257da5}']
procedure onStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); safecall;
procedure onProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); safecall;
procedure onLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aLocation: nsIURI; aFlags: idlulong); safecall;
procedure onStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); safecall;
procedure onSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aState: idlulong); safecall;
end;
const
nsIWebProgressListener_STATE_START=$00000001;
nsIWebProgressListener_STATE_REDIRECTING=$00000002;
nsIWebProgressListener_STATE_TRANSFERRING=$00000004;
nsIWebProgressListener_STATE_NEGOTIATING=$00000008;
nsIWebProgressListener_STATE_STOP=$00000010;
nsIWebProgressListener_STATE_IS_REQUEST=$00010000;
nsIWebProgressListener_STATE_IS_DOCUMENT=$00020000;
nsIWebProgressListener_STATE_IS_NETWORK=$00040000;
nsIWebProgressListener_STATE_IS_WINDOW=$00080000;
nsIWebProgressListener_STATE_RESTORING=$01000000;
nsIWebProgressListener_STATE_IS_INSECURE=$00000004;
nsIWebProgressListener_STATE_IS_BROKEN=$00000001;
nsIWebProgressListener_STATE_IS_SECURE=$00000002;
nsIWebProgressListener_STATE_SECURE_HIGH=$00040000;
nsIWebProgressListener_STATE_SECURE_MED=$00010000;
nsIWebProgressListener_STATE_SECURE_LOW=$00020000;
nsIWebProgressListener_STATE_IDENTITY_EV_TOPLEVEL=$00100000;
nsIWebProgressListener_LOCATION_CHANGE_SAME_DOCUMENT=$00000001;

View File

@ -112,7 +112,8 @@ idltopas $1/nsIWebProgressListener.idl \
$1/nsISHistoryListener.idl \
$1/nsIMemory.idl \
$1/nsIWebBrowserChrome.idl \
$1/nsIAnimationFrameListener.idl \
# This idl was removed from Gecko 11
# $1/nsIAnimationFrameListener.idl \
$1/nsIDOMUserDataHandler.idl \
$1/nsIVariant.idl \
$1/nsIWebBrowserFocus.idl \
@ -151,4 +152,9 @@ idltopas $1/nsIWebProgressListener.idl \
$1/nsIDOMStorage.idl \
$1/nsIContextMenuListener2.idl \
$1/nsIDOMText.idl \
# These idl's were added in Gecko 11.
$1/nsIDOMDOMTokenList.idl \
$1/nsIDOMClientRectList.idl \
$1/nsIDOMClientRect.idl \
$1/nsIFrameRequestCallback.idl \
-m idltypemap.cfg -f forwarddecl.inc -o

View File

@ -54,6 +54,12 @@ type
{$i domstubs.inc}
{$ifdef gecko11}
{$i nsidomdomtokenlist.inc}
{$i nsidomclientrect.inc}
{$i nsidomclientrectlist.inc}
{$i nsiframerequestcallback.inc}
{$endif gecko11}
{$i nsiwebbrowser.inc}
{$i nsiwebbrowserchrome.inc}
{$i nsiinterfacerequestor.inc}