diff --git a/components/geckoport/version2/Components/BrowserSupports.pas b/components/geckoport/version2/Components/BrowserSupports.pas new file mode 100644 index 000000000..f4b39b0dd --- /dev/null +++ b/components/geckoport/version2/Components/BrowserSupports.pas @@ -0,0 +1,291 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit BrowserSupports; + +interface + +uses + nsGeckoStrings, nsTypes, nsXPCOM; + +const + GFXIFORMATS_IID: TGUID = '{96d086e6-1dd1-11b2-b6b2-b77b59390247}'; + GFXIFORMATS_RGB = 0; + GFXIFORMATS_BGR = 1; + GFXIFORMATS_RGB_A1 = 2; + GFXIFORMATS_BGR_A1 = 3; + GFXIFORMATS_RGB_A8 = 4; + GFXIFORMATS_BGR_A8 = 5; + GFXIFORMATS_RGBA = 6; + GFXIFORMATS_BGRA = 7; + + GFXIIMAGEFRAME_IID: TGUID = '{51cc27a8-1dd2-11b2-a1aa-dad33ab193b4}'; + + IMGICONTAINER_IID: TGUID = '{5e8405a4-1dd2-11b2-8385-bc8e3446cad3}'; + IMGICONTAINER_kNormalAnimMode = 0; + IMGICONTAINER_kDontAnimMode = 1; + IMGICONTAINER_kLoopOnceAnimMode = 2; + + IMGICONTAINEROBSERVER_IID: TGUID = '{153f1518-1dd2-11b2-b9cd-b16eb63e0471}'; + + NS_IBASEWINDOW_IID: TGUID = '{046bc8a0-8015-11d3-af70-00a024ffc08c}'; + + NS_ICONTEXTMENULISTENER2_IID: TGUID = '{7fb719b3-d804-4964-9596-77cf924ee314}'; + NS_ICONTEXTMENULISTENER2_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER2_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER2_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER2_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER2_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER2_CONTEXT_INPUT = 16; + NS_ICONTEXTMENULISTENER2_CONTEXT_BACKGROUND_IMAGE = 32; + + NS_ICONTEXTMENUINFO_IID: TGUID = '{2f977d56-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBNAVIGATION_IID: TGUID = '{f5d9e7b0-d930-11d3-b057-00a024ffc08c}'; + NS_IWEBNAVIGATION_LOAD_FLAGS_MASK = 65535; + NS_IWEBNAVIGATION_LOAD_FLAGS_NONE = 0; + NS_IWEBNAVIGATION_LOAD_FLAGS_IS_REFRESH = 16; + NS_IWEBNAVIGATION_LOAD_FLAGS_IS_LINK = 32; + NS_IWEBNAVIGATION_LOAD_FLAGS_BYPASS_HISTORY = 64; + NS_IWEBNAVIGATION_LOAD_FLAGS_REPLACE_HISTORY = 128; + NS_IWEBNAVIGATION_LOAD_FLAGS_BYPASS_CACHE = 256; + NS_IWEBNAVIGATION_LOAD_FLAGS_BYPASS_PROXY = 512; + NS_IWEBNAVIGATION_LOAD_FLAGS_CHARSET_CHANGE = 1024; + NS_IWEBNAVIGATION_STOP_NETWORK = 1; + NS_IWEBNAVIGATION_STOP_CONTENT = 2; + NS_IWEBNAVIGATION_STOP_ALL = 3; + +type + gfxIFormats = interface; + gfxIImageFrame = interface; + imgIContainer = interface; + imgIContainerObserver = interface; + nsIBaseWindow = interface; + nsIContextMenuListener2 = interface; + nsIContextMenuInfo = interface; + nsIWebNavigation = interface; +(*** + * A color is a 32 bit unsigned integer with + * four components: R, G, B and A. + * + * @var typedef PRUint32 gfx_color + *) + gfx_color = PRUint32; +(*** + * typedef that should be used for bit depths + * @var typedef unsigned short gfx_depth + *) + gfx_depth = PRUint16; +(*** + * typedef that should be used for image formats + * @var typedef long gfx_format + * @see gfxIFormats + *) + gfx_format = PRInt32; + nscoord = PRInt32; + //In all currently supported platforms the native window handle is a pointer + //size handle. In Linux64 THANDLE can not be used because by default it is 32 + //bits due file descriptors which are 32 bits even in 64 bit platform. + //Win32 WindowHandle 32 bits THANDLE 32 bits + //Win64 WindowHandle 64 bits THANDLE 64 bits + //Linux32 WindowHandle 32 bits THANDLE 32 bits + //Linux64 WindowHandle 64 bits THANDLE 32 bits + nativeWindow = PtrUInt; + gfxIFormats = interface + ['{96d086e6-1dd1-11b2-b6b2-b77b59390247}'] + end; + + gfxIImageFrame = interface(nsISupports) + ['{51cc27a8-1dd2-11b2-a1aa-dad33ab193b4}'] + procedure Init(aX: nscoord; aY: nscoord; aWidth: nscoord; aHeight: nscoord; aFormat: gfx_format; aDepth: gfx_depth); safecall; + function GetMutable(): PRBool; safecall; + procedure SetMutable(aMutable: PRBool); safecall; + property Mutable: PRBool read GetMutable write SetMutable; + function GetX(): nscoord; safecall; + property X: nscoord read GetX; + function GetY(): nscoord; safecall; + property Y: nscoord read GetY; + function GetWidth(): nscoord; safecall; + property Width: nscoord read GetWidth; + function GetHeight(): nscoord; safecall; + property Height: nscoord read GetHeight; + procedure GetRect(rect: nsRect); safecall; + function GetFormat(): gfx_format; safecall; + property Format: gfx_format read GetFormat; + function GetImageBytesPerRow(): PRUint32; safecall; + property ImageBytesPerRow: PRUint32 read GetImageBytesPerRow; + function GetImageDataLength(): PRUint32; safecall; + property ImageDataLength: PRUint32 read GetImageDataLength; + procedure GetImageData(out bits: PRUint8Array; out length: PRUint32); safecall; + procedure SetImageData(data: PRUint8Array; length: PRUint32; offset: PRInt32); safecall; + procedure LockImageData(); safecall; + procedure UnlockImageData(); safecall; + function GetAlphaBytesPerRow(): PRUint32; safecall; + property AlphaBytesPerRow: PRUint32 read GetAlphaBytesPerRow; + function GetAlphaDataLength(): PRUint32; safecall; + property AlphaDataLength: PRUint32 read GetAlphaDataLength; + procedure GetAlphaData(out bits: PRUint8Array; out length: PRUint32); safecall; + procedure SetAlphaData(data: PRUint8Array; length: PRUint32; offset: PRInt32); safecall; + procedure LockAlphaData(); safecall; + procedure UnlockAlphaData(); safecall; + procedure DrawTo(aDst: gfxIImageFrame; aDX: nscoord; aDY: nscoord; aDWidth: nscoord; aDHeight: nscoord); safecall; + function GetTimeout(): PRInt32; safecall; + procedure SetTimeout(aTimeout: PRInt32); safecall; + property Timeout: PRInt32 read GetTimeout write SetTimeout; + function GetFrameDisposalMethod(): PRInt32; safecall; + procedure SetFrameDisposalMethod(aFrameDisposalMethod: PRInt32); safecall; + property FrameDisposalMethod: PRInt32 read GetFrameDisposalMethod write SetFrameDisposalMethod; + function GetBackgroundColor(): gfx_color; safecall; + procedure SetBackgroundColor(aBackgroundColor: gfx_color); safecall; + property BackgroundColor: gfx_color read GetBackgroundColor write SetBackgroundColor; + end; + + imgIContainer = interface(nsISupports) + ['{5e8405a4-1dd2-11b2-8385-bc8e3446cad3}'] + procedure Init(aWidth: nscoord; aHeight: nscoord; aObserver: imgIContainerObserver); safecall; + function GetPreferredAlphaChannelFormat(): gfx_format; safecall; + property PreferredAlphaChannelFormat: gfx_format read GetPreferredAlphaChannelFormat; + function GetWidth(): nscoord; safecall; + property Width: nscoord read GetWidth; + function GetHeight(): nscoord; safecall; + property Height: nscoord read GetHeight; + function GetCurrentFrame(): gfxIImageFrame; safecall; + property CurrentFrame: gfxIImageFrame read GetCurrentFrame; + function GetNumFrames(): PRUint32; safecall; + property NumFrames: PRUint32 read GetNumFrames; + function GetAnimationMode(): PRUint16; safecall; + procedure SetAnimationMode(aAnimationMode: PRUint16); safecall; + property AnimationMode: PRUint16 read GetAnimationMode write SetAnimationMode; + function GetFrameAt(index: PRUint32): gfxIImageFrame; safecall; + procedure AppendFrame(item: gfxIImageFrame); safecall; + procedure RemoveFrame(item: gfxIImageFrame); safecall; + procedure EndFrameDecode(framenumber: PRUint32; timeout: PRUint32); safecall; + procedure DecodingComplete(); safecall; + procedure Clear(); safecall; + procedure StartAnimation(); safecall; + procedure StopAnimation(); safecall; + procedure ResetAnimation(); safecall; + function GetLoopCount(): PRInt32; safecall; + procedure SetLoopCount(aLoopCount: PRInt32); safecall; + property LoopCount: PRInt32 read GetLoopCount write SetLoopCount; + end; + + imgIContainerObserver = interface(nsISupports) + ['{153f1518-1dd2-11b2-b9cd-b16eb63e0471}'] + procedure FrameChanged(aContainer: imgIContainer; aFrame: gfxIImageFrame; const aDirtyRect: nsRect); safecall; + end; + + nsIBaseWindow = interface(nsISupports) + ['{046bc8a0-8015-11d3-af70-00a024ffc08c}'] + procedure InitWindow(parentNativeWindow: nativeWindow; parentWidget: nsIWidget; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); safecall; + procedure Create(); safecall; + procedure Destroy(); safecall; + procedure SetPosition(x: PRInt32; y: PRInt32); safecall; + procedure GetPosition(out x: PRInt32; out y: PRInt32); safecall; + procedure SetSize(cx: PRInt32; cy: PRInt32; fRepaint: PRBool); safecall; + procedure GetSize(out cx: PRInt32; out cy: PRInt32); safecall; + procedure SetPositionAndSize(x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32; fRepaint: PRBool); safecall; + procedure GetPositionAndSize(out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); safecall; + procedure Repaint(force: PRBool); safecall; + function GetParentWidget(): nsIWidget; safecall; + procedure SetParentWidget(aParentWidget: nsIWidget); safecall; + property ParentWidget: nsIWidget read GetParentWidget write SetParentWidget; + function GetParentNativeWindow(): nativeWindow; safecall; + procedure SetParentNativeWindow(aParentNativeWindow: nativeWindow); safecall; + property ParentNativeWindow: nativeWindow read GetParentNativeWindow write SetParentNativeWindow; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(aVisibility: PRBool); safecall; + property Visibility: PRBool read GetVisibility write SetVisibility; + function GetEnabled(): PRBool; safecall; + procedure SetEnabled(aEnabled: PRBool); safecall; + property Enabled: PRBool read GetEnabled write SetEnabled; + function GetBlurSuppression(): PRBool; safecall; + procedure SetBlurSuppression(aBlurSuppression: PRBool); safecall; + property BlurSuppression: PRBool read GetBlurSuppression write SetBlurSuppression; + function GetMainWidget(): nsIWidget; safecall; + property MainWidget: nsIWidget read GetMainWidget; + procedure SetFocus(); safecall; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + end; + + nsIContextMenuListener2 = interface(nsISupports) + ['{7fb719b3-d804-4964-9596-77cf924ee314}'] + procedure OnShowContextMenu(aContextFlags: PRUint32; aUtils: nsIContextMenuInfo); safecall; + end; + + nsIContextMenuInfo = interface(nsISupports) + ['{2f977d56-5485-11d4-87e2-0010a4e75ef2}'] + function GetMouseEvent(): nsIDOMEvent; safecall; + property MouseEvent: nsIDOMEvent read GetMouseEvent; + function GetTargetNode(): nsIDOMNode; safecall; + property TargetNode: nsIDOMNode read GetTargetNode; + procedure GetAssociatedLink(aAssociatedLink: nsAString); safecall; + function GetImageContainer(): imgIContainer; safecall; + property ImageContainer: imgIContainer read GetImageContainer; + function GetImageSrc(): nsIURI; safecall; + property ImageSrc: nsIURI read GetImageSrc; + function GetBackgroundImageContainer(): imgIContainer; safecall; + property BackgroundImageContainer: imgIContainer read GetBackgroundImageContainer; + function GetBackgroundImageSrc(): nsIURI; safecall; + property BackgroundImageSrc: nsIURI read GetBackgroundImageSrc; + end; + + nsIWebNavigation = interface(nsISupports) + ['{f5d9e7b0-d930-11d3-b057-00a024ffc08c}'] + function GetCanGoBack(): PRBool; safecall; + property CanGoBack: PRBool read GetCanGoBack; + function GetCanGoForward(): PRBool; safecall; + property CanGoForward: PRBool read GetCanGoForward; + procedure GoBack(); safecall; + procedure GoForward(); safecall; + procedure GotoIndex(index: PRInt32); safecall; + procedure LoadURI(const uri: PWideChar; loadFlags: PRUint32; referrer: nsIURI; postData: nsIInputStream; headers: nsIInputStream); safecall; + procedure Reload(reloadFlags: PRUint32); safecall; + procedure Stop(stopFlags: PRUint32); safecall; + function GetDocument(): nsIDOMDocument; safecall; + property Document: nsIDOMDocument read GetDocument; + function GetCurrentURI(): nsIURI; safecall; + property CurrentURI: nsIURI read GetCurrentURI; + function GetReferringURI(): nsIURI; safecall; + property ReferringURI: nsIURI read GetReferringURI; + function GetSessionHistory(): nsISHistory; safecall; + procedure SetSessionHistory(aSessionHistory: nsISHistory); safecall; + property SessionHistory: nsISHistory read GetSessionHistory write SetSessionHistory; + end; + +implementation + +end. diff --git a/components/geckoport/version2/Components/CallbackInterfaces.pas b/components/geckoport/version2/Components/CallbackInterfaces.pas new file mode 100644 index 000000000..a6862519b --- /dev/null +++ b/components/geckoport/version2/Components/CallbackInterfaces.pas @@ -0,0 +1,164 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit CallbackInterfaces; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsXPCOM, nsTypes; + +type + IGeckoCreateWindowTarget = interface + ['{934D4785-B78A-43D0-ABAD-1CC71AC06E24}'] + function GetWebBrowserChrome: nsIWebBrowserChrome; + function DoCreateChromeWindow(chromeFlags: Longword): nsIWebBrowserChrome; + end; + + IGeckoBrowserChrome = interface + ['{8852637D-BB99-4ADA-82C8-8B94AFEC23C6}'] + function GetCreateWindowTarget: IGeckoCreateWindowTarget; + end; + +function InitWindowCreator: Boolean; + +implementation + +uses + Classes, SysUtils, nsError, nsXPCOMGlue, GeckoChromeWindow; + +type + TWindowCreator = class(TInterfacedObject, + nsIWindowCreator) + function CreateChromeWindow(parent: nsIWebBrowserChrome; + chromeFlags: PRUint32): + nsIWebBrowserChrome; safecall; + function SafeCallException(Obj: TObject; Addr: Pointer): HResult; override; + end; + +{$PUSH} +{$HINTS OFF} +procedure UseParameter(var X); +begin +end; +{$POP} + +function FindTarget(chrome: nsIWebBrowserChrome): IGeckoCreateWindowTarget; +var + chrome2: IGeckoBrowserChrome; +begin + if Supports(chrome, IGeckoBrowserChrome, chrome2) then + begin + Result := chrome2.GetCreateWindowTarget; + end; +end; + +var + sWindowCreatorInitialized: Boolean = False; + sWindowCreator: TWindowCreator = nil; + +function InitWindowCreator: Boolean; +const + NS_WINDOWWATCHER_CONTRACTID = '@mozilla.org/embedcomp/window-watcher;1'; +var + creator: TWindowCreator; + wwatch: nsIWindowWatcher; +begin + try + Result := False; + if not sWindowCreatorInitialized then + begin + sWindowCreatorInitialized := True; + creator := TWindowCreator.Create; + sWindowCreator := creator; + end; + if not Assigned(sWindowCreator) then Exit; + + NS_GetService(NS_WINDOWWATCHER_CONTRACTID, nsIWindowWatcher, wwatch); + + wwatch.SetWindowCreator(sWindowCreator); + + Result := True; + except + Result := False; + end; +end; + +function TWindowCreator.CreateChromeWindow(parent: nsIWebBrowserChrome; + chromeFlags: PRUint32): + nsIWebBrowserChrome; +var + target: IGeckoCreateWindowTarget; + chrome: TGeckoChromeForm; +begin + if (chromeFlags and CHROME_OPENAS_CHROME)<>0 then + begin + chrome := TGeckoChromeForm.CreateWithChromeFlags(nil, chromeFlags); + try + target := IGeckoCreateWindowTarget(chrome); + Result := target.GetWebBrowserChrome; + except + chrome.Close; + raise; + end; + end else + begin + target := FindTarget(parent); + if Assigned(target) then + Result := target.DoCreateChromeWindow(chromeFlags); + if not Assigned(Result) then + raise EGeckoHint.CreateFmt('Attempt to create a new Chrome window but handler does not create a new one. Chrome flags: %8X',[chromeFlags]); + end; +end; + +function TWindowCreator.SafeCallException(Obj: TObject; Addr: Pointer): HResult; +begin + UseParameter(Obj); + UseParameter(Addr); + Result := HRESULT(NS_ERROR_FAILURE); +end; + +end. diff --git a/components/geckoport/version2/Components/GeckoBrowser.dcr b/components/geckoport/version2/Components/GeckoBrowser.dcr new file mode 100644 index 000000000..d3fbb0ee0 Binary files /dev/null and b/components/geckoport/version2/Components/GeckoBrowser.dcr differ diff --git a/components/geckoport/version2/Components/GeckoBrowser.lrs b/components/geckoport/version2/Components/GeckoBrowser.lrs new file mode 100755 index 000000000..5d5eedae2 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoBrowser.lrs @@ -0,0 +1,135 @@ +LazarusResources.Add('TGeckoBrowser','BMP',[ + 'BM'#246#6#0#0#0#0#0#0'6'#0#0#0'('#0#0#0#24#0#0#0#24#0#0#0#1#0#24#0#0#0#0#0 + +#192#6#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#128#128#0#128#128#0#128#128 + +#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0 + +#128#0#0#0#128#128#128#0#0#0#0#0#128#0#0#255#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#0#0#0#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#128#128 + +#128#0#0#0#0#0#255#0#0#255#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#0#0#0#0#0#0#0#0#128#0#0#128#0#0#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 + +#0#0#0#0#0#0#0#128#128#128#128#128#128#0#0#0#0#0#0#0#0#128#128#0#128#0#0#0#0 + +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#255#0#0#255#0#0#128#0#0#128 + +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#128#0#0#255#0#0#255#0#0#128#0#0 + +#0#128#0#128#0#0#0#128#128#128#128#128#128#128#128#128#0#0#0#0#0#0#0#0#0#0#0 + +#0#0#0#0#0#0#128#0#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0 + +#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#128#0#0#0#0#0#0#0#0#0#0#0#0#128#128 + +#128#128#128#128#0#0#0#0#128#128#128#128#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128 + +#0#0#255#0#0#255#0#0#128#0#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0 + +#255#0#0#0#0#0#0#0#0#128#0#0#128#0#0#128#0#0#128#0#0#0#0#0#0#128#128#128#128 + +#128#128#128#128#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#0#0#0#128#0 + +#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#0#0#0#128#0#0#255#0#0#255#0#0#255 + +#0#0#255#0#0#255#0#0#128#0#0#128#0#0#0#0#0#0#128#128#128#0#0#0#0#0#0#0#0#0#0 + +#0#0#0#0#128#0#0#0#0#0#0#0#0#0#0#0#255#0#0#255#0#0#255#0#0#255#0#0#0#0#0#255 + +#0#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#128#0#0#128#0#0 + +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#255#0#0#255#0 + +#0#255#0#0#0#0#0#128#0#0#0#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0 + +#0#255#0#0#255#0#0#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0 + +#128#0#0#255#0#0#255#0#0#255#0#0#0#0#0#0#0#0#0#0#0#128#0#0#255#0#0#255#0#0 + +#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#128#0#0#0#0#0#0#0#0 + +#0#0#0#0#0#0#128#0#0#128#0#0#128#0#0#255#0#0#255#0#0#255#0#0#0#0#0#0#0#0#128 + +#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0 + +#255#0#0#255#0#0#128#0#0#0#0#0#0#0#0#0#0#0#128#0#0#255#0#0#128#0#0#255#0#0 + +#255#0#0#255#0#0#0#0#0#0#0#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0 + +#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#128#0#0#0#0#0#0#0#0 + +#128#0#0#255#0#0#128#0#0#255#0#0#255#0#0#255#128#0#128#0#0#0#0#0#0#0#0#128#0 + +#0#128#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0 + +#255#0#0#255#0#0#255#0#0#255#0#0#128#0#0#0#0#0#128#0#0#255#0#0#255#0#0#255#0 + +#0#255#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#0#0#128#0#0#255#0#0 + +#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255#0#0#255 + +#0#0#128#0#0#0#0#0#255#0#0#255#0#0#0#0#0#0#128#0#128#128#0#128#128#0#128#128 + +#0#128#128#0#128#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#255#0#0#255#0#0#255#0 + +#0#255#0#0#128#0#0#128#0#0#0#0#0#128#0#0#255#0#0#255#0#0#128#0#0#255#0#0#128 + +#0#0#0#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#0#0#0#0#0#0#128#0#0#128#0#0#128 + +#0#0#255#0#0#128#0#0#255#0#0#128#0#0#0#0#0#0#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0 + +#0#0#0#128#0#0#128#128#128#128#0#0#0#0#0#0#0#0#128#0#0#128#0#0#0#0#0#128#0#0 + +#128#0#0#0#0#0#0#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#128#128 + +#128#0#0#0#128#128#128#0#0#0#0#0#255#0#0#0#0#0#0#0#0#255#0#0#128#0#0#128#128 + +#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#0#0#0#128#128#128 + +#0#0#128#0#0#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#128#0#128#128#0#128#128#0 + +#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#0#0#0#0#0#0#0 + +#0#0#128#0#0#128#0#0#255#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0 + +#128#0#0#0#0#0#128#0#0#128#0#0#128#0#0#128#0#0#128#0#0#255#0#0#255#0#0#128#0 + +#0#128#0#0#255#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#0#0#0 + +#0#0#128#0#0#255#0#0#255#0#0#128#0#0#128#0#0#128#0#0#0#0#0#0#0#0#128#0#0#128 + +#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0 + +#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#128#0#128#0#0#128#0#0 + +#0#0#0#0#0#0#0#0#0#0#0#0#128#0#0#128#0#0#0#0#0#0#0#0#0 +]); +LazarusResources.Add('TGeckoPrompt','BMP',[ + 'BMv'#6#0#0#0#0#0#0'6'#4#0#0'('#0#0#0#24#0#0#0#24#0#0#0#1#0#8#0#0#0#0#0#0#0#0 + +#0#196#14#0#0#196#14#0#0#0#1#0#0#0#1#0#0'@@@'#255'{bP'#255'}bR'#255'|dR'#255 + +#127'gY'#255'~nb'#255#206'J.'#255#219'G)'#255#220'I,'#255#213'U:'#255#221'\=' + +#255#226'R3'#255#226'S5'#255#234'V3'#255#228'Y;'#255#243'^9'#255#131'kZ'#255 + +#133'n^'#255#156'n_'#255#142'q['#255#145't_'#255#160'm_'#255#133'tf'#255#138 + +'ve'#255#143'ud'#255#140'wf'#255#141'vh'#255#142'xj'#255#147'{j'#255#146'~o' + +#255#150#127'o'#255#141#127'{'#255#145#127's'#255#168'wi'#255#229'fE'#255#237 + +'aA'#255#237'cC'#255#245'fB'#255#246'hE'#255#254'iA'#255#252'mG'#255#252'pJ' + +#255#254'qI'#255#253'tN'#255#234'sQ'#255#236'tR'#255#235'{['#255#236'zY'#255 + +#254'xR'#255#254'|X'#255#143#129'u'#255#144#129'u'#255#145#129'u'#255#146#130 + +'v'#255#152#130'u'#255#153#133'v'#255#154#133'w'#255#147#132'x'#255#148#132 + +'y'#255#149#133'z'#255#148#134'z'#255#149#134'z'#255#150#135'{'#255#149#135 + +'|'#255#153#134'{'#255#151#136'}'#255#153#136'y'#255#155#139'~'#255#156#139 + +#127#255#157#139'~'#255#180#135'{'#255#254#128'\'#255#236#129'b'#255#236#136 + +'j'#255#254#136'f'#255#236#142's'#255#254#143'p'#255#255#143'p'#255#236#149 + +'|'#255#254#150'z'#255'~v'#138#255'kr'#181#255'hp'#186#255#131'y'#139#255#129 + +'y'#140#255#220#0#255#255'q'#178#218#255#128#128#128#255#134#134#134#255#135 + +#134#134#255#133#128#140#255#153#139#129#255#157#140#128#255#158#142#130#255 + +#156#144#129#255#157#144#134#255#149#148#147#255#148#148#148#255#149#149#149 + +#255#160#145#133#255#161#146#134#255#162#146#135#255#163#147#136#255#165#145 + +#136#255#164#148#137#255#165#150#138#255#166#150#139#255#161#148#140#255#162 + +#149#140#255#168#151#138#255#167#153#142#255#171#152#139#255#169#153#142#255 + +#181#149#135#255#189#157#143#255#162#146#145#255#162#151#147#255#173#160#149 + +#255#177#165#156#255#136#139#180#255#185#169#160#255#186#175#174#255#236#156 + +#132#255#254#158#132#255#255#159#133#255#196#166#154#255#236#163#141#255#254 + +#166#141#255#236#170#150#255#254#173#151#255#254#174#152#255#255#175#153#255 + +#236#177#159#255#210#179#168#255#208#180#170#255#236#182#167#255#232#187#173 + +#255#254#182#162#255#255#183#163#255#255#189#170#255#254#190#172#255#255#190 + +#173#255#225#185#176#255#254#195#179#255#254#197#182#255#254#198#183#255#244 + +#203#191#255#254#205#191#255#239#225#189#255#167#187#206#255#170#191#208#255 + +#176#197#208#255#201#200#199#255#201#193#203#255#198#200#200#255#199#200#201 + +#255#200#201#202#255#204#203#203#255#206#204#203#255#205#203#204#255#204#204 + +#205#255#207#205#204#255#213#197#194#255#218#198#195#255#208#207#207#255#220 + +#202#206#255#214#201#208#255#212#202#210#255#212#203#212#255#213#205#215#255 + +#213#207#217#255#211#210#209#255#212#212#211#255#218#216#215#255#212#208#219 + +#255#212#210#221#255#214#212#223#255#236#202#192#255#226#204#204#255#233#207 + +#203#255#237#206#200#255#242#204#194#255#238#208#201#255#239#208#200#255#253 + +#208#196#255#237#224#194#255#237#227#205#255#246#233#200#255#225#224#223#255 + +#218#216#224#255#225#221#227#255#228#228#228#255#229#229#229#255#231#231#231 + +#255#233#226#228#255#239#230#229#255#231#232#231#255#237#235#231#255#232#231 + +#232#255#233#232#232#255#235#234#234#255#236#235#235#255#238#237#235#255#238 + +#237#237#255#238#238#238#255#239#239#239#255#243#233#231#255#244#234#230#255 + +#240#240#239#255#240#240#240#255#242#241#241#255#253#253#253#255#255#255#255 + +#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0 + +#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0 + +#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0 + +#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0 + +#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0 + +#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255#0#0#0#255'U'#0'UU'#0'U'#0'U' + +#0'UU'#0'UUU'#0'U'#0'UUU'#0'UUU'#0#0'U'#0#0'U'#0'U'#0'U'#0'U'#0'U'#0'U'#0#0 + +'UU'#0'UUU'#0'U'#0#0'U'#0#0'U'#0'U'#0#0'U'#0#0'U'#0'U'#0'U'#0'UUU'#0#0'U'#0#0 + +'UU'#0'UU'#0'UUU'#0'U'#0#0'U'#0#0#0'UUUUUUUUUUUUUUUUUUUUUUUUU'#22':5549>:454' + +'33<==5244444'#5'j'#209#209#209#209#209#209#209#209#209'YWWWY'#185#186'XWWWX' + +#193'5i'#209#209#209#209#209#209#209#209#209'W'#212#212#212'W'#187#148'W'#212 + +#212#212'W'#191'9h'#209#209#209#209#209#209#209#209#209'bWWW`'#197#202'aWWWa' + +#204':f'#209#209#209#209#209#209#209#209#209#209#209#209#209#209#209#209#209 + +#209#209#209#209#209':e'#209'YWWWWWWWWWWWWWWWWWWY'#209';d'#157'W'#212#212#212 + +#212#212#212#212#212#212#212#212#212#212#212#212#212#212#212'W'#209'=e'#205 + +'bWWWWWWWWWWWWWWWWWWb'#208'>f'#159#158#155#152#200#209#209#210's'#199#172#156 + +#171#154#161#160#164#188#211#192#196#201'An'#209'YWWWWWWWWWWWWWWWWWWY'#203'[' + +'u'#173'W'#212#212#212#212#212#212#212#212#212#212#212#212#212#212#212#212 + +#212#212'W'#209'_v'#198'aWWWWWWWWWWWWWWWWWWb'#209'kx'#207#207#206#195#194#190 + +#189#176#175#174#170#169#168#167#166#165#178#179#182#183#180#180'g'#134#147 + +#181#177#163#143#139#137#129#127'{OLJG0*''('#15#13#14#8'F}'#184#162#150#149 + ,#145#141#138#131#127'|OMJG011)&#'#11#7'!r'#146#151'V'#153#144#140#137#130#127 + +'{OMJG0G+)%$'#12#7#21'q'#136#133'y'#142#135#132#128'~zNKIH/-.-,"'#10#9#6#18 + +'E^D\oDB'#27#26#16#1#2#3#3#4#24#19#20#30'6STP'#31'?]cpfmC@ '#29#23#17#17#25 + +'87'#28#28'ltQwRZ' +]); diff --git a/components/geckoport/version2/Components/GeckoBrowser.pas b/components/geckoport/version2/Components/GeckoBrowser.pas new file mode 100755 index 000000000..1c5a76097 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoBrowser.pas @@ -0,0 +1,2349 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit GeckoBrowser; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +{$IFDEF LCLCocoa} + {$MODESWITCH ObjectiveC1} +{$ENDIF} + +interface + +uses + LclIntf, LMessages, LclType, LResources, Graphics, + SysUtils, Classes, Controls, nsXPCOM, + nsGeckoStrings, nsTypes, CallbackInterfaces, nsXPCOMGlue, BrowserSupports, + nsXPCOM_std19, GeckoPromptService + {$IFDEF LCLCarbon}, CarbonPrivate {$ENDIF} + {$IFDEF LCLCocoa}, CocoaPrivate, CocoaAll, CocoaUtils {$ENDIF} + {$IFDEF LCLGtk2}, gtk2, + ExtCtrls {This is temporal for TTimer needed for event pooling forced} + {$ENDIF} + ; + +resourcestring + SGeckoBrowserInitError = 'Failed to initialize TGeckoBrowser.'; + SGeckoBrowserCannotGoBack = 'Failed to go back history.'; + SGeckoBrowserCannotGoForward = 'Failed to go forward history.'; + SGeckoBrowserLoadURIError = 'Failed to load URI ''%s.'' '; + SGeckoBrowserCannotReload = 'Failed to reload page.'; + +const + LOAD_FLAGS_NONE = 0; + LOAD_FLAGS_IS_REFRESH = 16; + LOAD_FLAGS_IS_LINK = 32; + LOAD_FLAGS_BYPASS_HISTORY = 64; + LOAD_FLAGS_REPLACE_HISTORY = 128; + LOAD_FLAGS_BYPASS_CACHE = 256; + LOAD_FLAGS_BYPASS_PROXY = 512; + LOAD_FLAGS_CHARSET_CHANGE = 1024; + +{$IFDEF LCL} +const + WM_GETDLGCODE = LM_GETDLGCODE; + WM_NEXTDLGCTL = $0028; + WM_ERASEBKGND = LM_ERASEBKGND; + WM_SHOWWINDOW = LM_SHOWWINDOW; + E_FAIL = HRESULT($80004005); +type + TMessage = TLMessage; + TWMGetDlgCode = TLMNoParams; +{$ENDIF} + +type + //TCtxMenuInfo = BrowserSupports.TCtxMenuInfo; + //TCtxMenuFlags = BrowserSupports.TCtxMenuFlags; + TGeckoDOMEventType = ( + etNone, + etEvent, + etCustomEvent, + etUIEvent, + etMouseEvent, + etStorageEvent + ); + + TGeckoDOMEvent = record + Name: String; + EventType: TGeckoDOMEventType; + event: nsIDOMEvent; + end; + + TGeckoDOMEventRegister = record + Name: String; + eventType: TGeckoDOMEventType; + propertyName: String; + end; + TGeckoDOMEventRegisterArray = array [0..99] of TGeckoDOMEventRegister; + PGeckoDOMEventRegisterArray = ^TGeckoDOMEventRegisterArray; + + TCustomGeckoBrowser = class; + TCustomGeckoBrowserChrome = class; + TCustomGeckoBrowserListener = class; + TGeckoBrowser = class; + TGeckoBrowserChrome = class; + TGeckoBrowserListener = class; + + TCtxMenuInfo = class; + + EGeckoBrowserError = class(EGeckoError) + end; + EGeckoBrowserNavigationError = class(EGeckoBrowserError) + end; + + {$PUSH}{$HINTS OFF} //Redefinition to expose the interface + IDirectoryServiceProvider=nsXPCOMGlue.IDirectoryServiceProvider; + {$POP} + + TGeckoBrowserContextMenu = procedure (Sender: TObject; aInfo: TCtxMenuInfo) of object; + TGeckoBrowserStatusChange = procedure (Sender: TObject; aMessage: WideString) of object; + TGeckoBrowserNewWindow = procedure (Sender: TObject; aChromeFlags: Longword; var newWindow: TCustomGeckoBrowser) of object; + TGeckoBrowserProgressChange = procedure (Sender: TObject; Progress: Integer; ProgressMax: Integer) of object; + TGeckoBrowserTitleChange = procedure (Sender: TObject; const Text: WideString) of object; + TGeckoBrowserVisibleChange = procedure (Sender: TObject; Vislble: Bool) of object; + TGeckoBrowserLocationChange = procedure (Sender: TObject; const uri: AnsiString) of object; + TGeckoBrowserDOMEventHandler = procedure (Sender: TObject; aEvent:TGeckoDOMEvent) of object; + TGeckoBrowserHistoryMove = procedure (Sender: TObject; aURI: nsIURI; out aContinue: LongBool; var Handled: Boolean) of object; + TGeckoBrowserHistoryGoTo = procedure (Sender: TObject; aIndex: Longint; aURI: nsIURI; out aContinue: LongBool; var Handled: Boolean) of object; + TGeckoBrowserDirectoryService = procedure (Sender: TObject; const aDirectoryService: IDirectoryServiceProvider) of object; + + TGeckoBrowserHisoty = record + URI: AnsiString; + Title: WideString; + IsSubFrame: Boolean; + end; + + //TODO 2 -cTCustomGeckoBrowser: DocShell プャpティを追加 + + { TCustomGeckoBrowser } + + TCustomGeckoBrowser = class(TCustomControl, + IGeckoCreateWindowTarget) + private + FWebBrowser: nsIWebBrowser; + FListeners: TCustomGeckoBrowserListener; + FChrome: TCustomGeckoBrowserChrome; + + // イベント + // nsIWebProgressListener + FOnStatusChange: TGeckoBrowserStatusChange; + FOnProgressChange: TGeckoBrowserProgressChange; + FOnLocationChange: TGeckoBrowserLocationChange; + FOnDocumentBegin: TNotifyEvent; + FOnDocumentComplete: TNotifyEvent; + //FOnSecurityChange: TGeckoBrowserSecurityChange; + // nsIEmbeddingSiteWindow + FOnTitleChange: TGeckoBrowserTitleChange; + FOnVisibleChange: TGeckoBrowserVisibleChange; + // nsIContextMenuListener + FOnContextMenu: TGeckoBrowserContextMenu; + // nsISHistoryListener + FOnGoBack: TGeckoBrowserHistoryMove; + FOnGoForward: TGeckoBrowserHistoryMove; + FOnGoToIndex: TGeckoBrowserHistoryGoTo; + + FOnNewWindow: TGeckoBrowserNewWindow; + + FOnSetupProperties: TNotifyEvent; + FOnDirectoryService: TGeckoBrowserDirectoryService; + + FGeckoComponentsStartupSucceeded: boolean; + + //Linked event components + FPromptService: TGeckoPrompt; + + //misc settings + FDisableJavaScript: Boolean; + FInitializationStarted: Boolean; + FInitialized: Boolean; + + //Designtime graphic + FDesignTimeLogo: TPortableNetworkGraphic; + + function GetDisableJavaScript: Boolean; + procedure SetDisableJavascript(const AValue: Boolean); + procedure ShutdownWebBrowser; + procedure InnerLoadURI(uri: WideString; Flags: PRUint32; + referer: nsIURI; postData, headers: TStream); + + procedure SetChrome(aChrome: TCustomGeckoBrowserChrome); + procedure SetListener(aListener: TCustomGeckoBrowserListener); + + procedure WMGetDlgCode(var Msg: TWMGetDlgCode); message WM_GETDLGCODE; + procedure WMEraseBkGnd(var Msg: TMessage); message WM_ERASEBKGND; + function GetContentDocument: nsIDOMDocument; + function GetContentWindow: nsIDOMWindow; + function GetCanGoBack: Boolean; + function GetCanGoForward: Boolean; + function GetWebBrowserChrome: nsIWebBrowserChrome; + function GetWebBrowserFind: nsIWebBrowserFind; + function GetWebBrowserPrint: nsIWebBrowserPrint; + function GetWebNavigation: nsIWebNavigation; + function GetNativeWindow : nativeWindow; + //function GetMarkupDocumentViewer: nsIMarkupDocumentViewer; + //function GetDocShell: nsIDocShell; + //function GetDocumentCharsetInfo: nsIDocumentCharsetInfo; + procedure DoInitializationIfNeeded; + protected + procedure Paint; override; + public + constructor Create(AOwner: TComponent); override; + destructor Destroy; override; + procedure InitWebBrowser; //FPC port: moved from private to public + procedure LoadURI(const uri: WideString); overload; + procedure LoadURI(const uri: WideString; const referer: UTF8String); + overload; + procedure LoadURI(const uri: WideString; const referer: WideString); + overload; + procedure LoadURI(const uri: WideString; referer: nsIURI); overload; + procedure LoadURIWithFlags(const uri: WideString; Flags: PRUint32); + overload; + procedure LoadURIWithFlags(const uri: WideString; Flags: PRUint32; + const referer: UTF8String); overload; + procedure LoadURIWithFlags(const uri: WideString; Flags: PRUint32; + const referer: WideString); overload; + procedure LoadURIWithFlags(Const uri: WideString; Flags: PRUint32; + referer: nsIURI); overload; + procedure GoBack; + procedure GoForward; + procedure Reload; + procedure ReloadWithFlags(AFlags: PRUint32); + protected + function DoCreateChromeWindow(chromeFlags: Longword): nsIWebBrowserChrome; virtual; abstract; + procedure DoGeckoComponentsStartup; + + // TControl + procedure Resize; override; + + procedure Loaded; override; + + //TWinControl + procedure CreateWnd; override; + procedure DestroyWnd; override; + protected + property Chrome: TCustomGeckoBrowserChrome + read FChrome write SetChrome; + property Listener: TCustomGeckoBrowserListener + read FListeners write SetListener; + + property WebBrowser: nsIWebBrowser //begin plus7 + read FWebBrowser; + property WebBrowserFind: nsIWebBrowserFind + read GetWebBrowserFind; + property WebBrowserPrint: nsIWebBrowserPrint + read GetWebBrowserPrint; + property WebNavigation: nsIWebNavigation + read GetWebNavigation; + //property MarkupDocumentViewer: nsIMarkupDocumentViewer + // read GetMarkupDocumentViewer; + //property DocShell: nsIDocShell + // read GetDocShell; + //property DocumentCharsetInfo: nsIDocumentCharsetInfo + // read GetDocumentCharsetInfo; //end plus7 + + property ContentWindow: nsIDOMWindow + read GetContentWindow; + property ContentDocument: nsIDOMDocument + read GetContentDocument; + property CanGoBack: Boolean + read GetCanGoBack; + property CanGoForward: Boolean + read GetCanGoForward; + // イベント + // nsIWebBrowserChrome + property OnStatusChange: TGeckoBrowserStatusChange + read FOnStatusChange write FOnStatusChange; + property OnProgressChange: TGeckoBrowserProgressChange + read FOnProgressChange write FOnProgressChange; + property OnLocationChange: TGeckoBrowserLocationChange + read FOnLocationChange write FOnLocationChange; + property OnDocumentBegin: TNotifyEvent + read FOnDocumentBegin write FOnDocumentBegin; + property OnDocumentComplete: TNotifyEvent + read FOnDocumentComplete write FOnDocumentComplete; + // nsIEmbeddingSiteWindow + property OnTitleChange: TGeckoBrowserTitleChange + read FOnTitleChange write FOnTitleChange; + property OnVisibleChange: TGeckoBrowserVisibleChange + read FOnVisibleChange write FOnVisibleChange; + // nsIContextMenuListener + property OnContextMenu: TGeckoBrowserContextMenu + read FOnContextMenu write FOnContextMenu; + // nsISHistoryListener + property OnGoBack:TGeckoBrowserHistoryMove + read FOnGoBack write FOnGoBack; + property OnGoForward:TGeckoBrowserHistoryMove + read FOnGoForward write FOnGoForward; + property OnGoToIndex:TGeckoBrowserHistoryGoTo + read FOnGoToIndex write FOnGoToIndex; + + property OnNewWindow: TGeckoBrowserNewWindow + read FOnNewWindow write FOnNewWindow; + + property OnSetupProperties: TNotifyEvent + read FOnSetupProperties write FOnSetupProperties; + property OnDirectoryService: TGeckoBrowserDirectoryService + read FOnDirectoryService write FOnDirectoryService; + // misc base settings + property DisableJavaScript: Boolean + read GetDisableJavaScript write SetDisableJavascript; + property Initialized: Boolean read FInitialized; + + // Linked components set + property Prompt: TGeckoPrompt + read FPromptService write FPromptService; + end; + + TCustomGeckoBrowserChrome = class(TInterfacedObject, + nsIWebBrowserChrome, + nsIWebBrowserChromeFocus, + nsIEmbeddingSiteWindow, + IGeckoBrowserChrome) + public + //constructor Create; + //destructor Destroy; + protected + // nsIWebBrowser + procedure SetStatus(statusType: PRUint32; const status: PWideChar); virtual; safecall; abstract; + function GetWebBrowser(): nsIWebBrowser; virtual; safecall; abstract; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser); virtual; safecall; abstract; + function GetChromeFlags(): PRUint32; virtual; safecall; abstract; + procedure SetChromeFlags(aChromeFlags: PRUint32); virtual; safecall; abstract; + procedure DestroyBrowserWindow(); virtual; safecall; abstract; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); virtual; safecall; abstract; + procedure ShowAsModal(); virtual; safecall; abstract; + function IsWindowModal(): PRBool; virtual; safecall; abstract; + procedure ExitModalEventLoop(aStatus: nsresult); virtual; safecall; abstract; + // nsIWebBrowserChromeFocus + procedure FocusNextElement(); virtual; safecall; abstract; + procedure FocusPrevElement(); virtual; safecall; abstract; + // nsIEmbeddingSiteWindow + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); virtual; safecall; abstract; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); virtual; safecall; abstract; + procedure SetFocus(); virtual; safecall; abstract; + function GetVisibility(): PRBool; virtual; safecall; abstract; + procedure SetVisibility(aVisibility: PRBool); virtual; safecall; abstract; + function GetTitle(): PWideChar; virtual; safecall; abstract; + procedure SetTitle(const aTitle: PWideChar); virtual; safecall; abstract; + function GetSiteWindow(): Pointer; virtual; safecall; abstract; + + // IGeckoBrowserChrome; + function GetCreateWindowTarget: IGeckoCreateWindowTarget; virtual; abstract; + public + function SafeCallException(obj: TObject; addr: Pointer): HRESULT; override; + end; + + TCustomGeckoBrowserListener = class(TSupportsWeakReference, + nsIWebProgressListener, + nsIDOMEventListener) + private + FBrowser: TCustomGeckoBrowser; + FDOMEvents: PGeckoDOMEventRegisterArray; + public + constructor Create(ABrowser: TCustomGeckoBrowser); + //destructor Destroy; + protected + procedure InitListener(browser: TCustomGeckoBrowser); virtual; + procedure ShutdownListener(browser: TCustomGeckoBrowser); virtual; + + procedure AddWebBrowserListener(browser: nsIWebBrowser); safecall; + procedure RemoveWebBrowserListener(browser: nsIWebBrowser); safecall; + // nsIWebProgressListener + procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult); virtual; safecall; abstract; + procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); virtual; safecall; abstract; + procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); virtual; safecall; abstract; + procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); virtual; safecall; abstract; + procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); virtual; safecall; abstract; + // nsIDOMEventListener + procedure HandleEvent(aEvent: nsIDOMEvent); safecall; + public + function SafeCallException(Obj: TObject; Addr: Pointer): HRESULT; override; + end; + + { TGeckoBrowser } + + TGeckoBrowser = class(TCustomGeckoBrowser) + {$IFDEF LCLGTK2} + private + EventPool: TTimer; + procedure EventPoolProc(Sender: TObject); + {$ENDIF} + protected + FBrowser: nsIWebBrowser; + FTitle: WideString; + // Tooltip +{$IFNDEF LCL} + FHint: THintWindow; +{$ENDIF} + //DOM EventHandler + FOnDOMLoad: TGeckoBrowserDOMEventHandler; + FOnDOMClick: TGeckoBrowserDOMEventHandler; + FOnDOMMouseUp: TGeckoBrowserDOMEventHandler; + FOnDOMMouseDown: TGeckoBrowserDOMEventHandler; + FOnDOMMouseMove: TGeckoBrowserDOMEventHandler; + FOnDOMMouseScroll: TGeckoBrowserDOMEventHandler; + FOnDOMKeyUp: TGeckoBrowserDOMEventHandler; + FOnDOMKeyDown: TGeckoBrowserDOMEventHandler; + FOnDOMKeyPress: TGeckoBrowserDOMEventHandler; + FOnDOMLinkAdded: TGeckoBrowserDOMEventHandler; + FOnDOMDragOver: TGeckoBrowserDOMEventHandler; + FOnDOMDragGesture: TGeckoBrowserDOMEventHandler; + FOnDOMDragDrop: TGeckoBrowserDOMEventHandler; + FOnDOMDragExit: TGeckoBrowserDOMEventHandler; + FOnDOMFocus: TGeckoBrowserDOMEventHandler; + + FOnCloseWindow: TNotifyEvent; + + // The Last focused element + FLastFocused: nsIDOMElement; + + function DoCreateChromeWindow( + chromeFlags: Longword): nsIWebBrowserChrome; override; + + function GetURIString: UTF8String; + public + constructor Create(AOwner: TComponent); override; + destructor Destroy; override; + + property Title: WideString read FTitle; + + property URIString: UTF8String read GetURIString; + + class function GetGeckoBrowserWithDOMWindow(constref DOMWindow: nsIDOMWindow): TGeckoBrowser; + + procedure Print(const aShowPrinterSelectDialog: Boolean); + + published + property OnDOMLoad: TGeckoBrowserDOMEventHandler + read FOnDOMLoad write FOnDOMLoad; + property OnDOMClick: TGeckoBrowserDOMEventHandler + read FOnDOMClick write FOnDOMClick; + property OnDOMMouseUp: TGeckoBrowserDOMEventHandler + read FOnDOMMouseUp write FOnDOMMouseUp; + property OnDOMMouseDown: TGeckoBrowserDOMEventHandler + read FOnDOMMouseDown write FOnDOMMouseDown; + property OnDOMMouseMove: TGeckoBrowserDOMEventHandler + read FOnDOMMouseMove write FOnDOMMouseMove; + property OnDOMKeyUp: TGeckoBrowserDOMEventHandler + read FOnDOMKeyUp write FOnDOMKeyUp; + property OnDOMKeyDown: TGeckoBrowserDOMEventHandler + read FOnDOMKeyDown write FOnDOMKeyDown; + property OnDOMKeyPress: TGeckoBrowserDOMEventHandler + read FOnDOMKeyPress write FOnDOMKeyPress; + property OnDOMMouseScroll: TGeckoBrowserDOMEventHandler + read FOnDOMMouseScroll write FOnDOMMouseScroll; + property OnDOMLinkAdded: TGeckoBrowserDOMEventHandler + read FOnDOMLinkAdded write FOnDOMLinkAdded; + property OnDOMDragOver: TGeckoBrowserDOMEventHandler + read FOnDOMDragOver write FOnDOMDragOver; + property OnDOMDragGesture: TGeckoBrowserDOMEventHandler + read FOnDOMDragGesture write FOnDOMDragGesture; + property OnDOMDragDrop: TGeckoBrowserDOMEventHandler + read FOnDOMDragDrop write FOnDOMDragDrop; + property OnDOMDragExit: TGeckoBrowserDOMEventHandler + read FOnDOMDragExit write FOnDOMDragExit; + property OnDOMFocus: TGeckoBrowserDOMEventHandler + read FOnDOMFocus write FOnDOMFocus; + property OnCloseWindow: TNotifyEvent + read FOnCloseWindow write FOnCloseWindow; + + published + // TWinControl + property Align; + property TabOrder; + property TabStop default True; +{$IFNDEF LCL} + property BevelEdges; + property BevelInner; + property BevelKind; + property BevelOuter; + property BevelWidth; +{$ELSE} + property Anchors; + property BorderSpacing; + property Constraints; +{$ENDIF} + property BorderStyle; + property BorderWidth; + + property OnLocationChange; + property OnProgressChange; + property OnStatusChange; + property OnTitleChange; + property OnVisibleChange; + property OnContextMenu; + property OnNewWindow; + property OnDocumentBegin; + property OnDocumentComplete; + + property OnGoBack; + property OnGoForward; + property OnGoToIndex; + + property OnSetupProperties; + property OnDirectoryService; + + property DisableJavaScript; + property Prompt; + public + property ContentDocument; + property ContentWindow; + property CanGoBack; + property CanGoForward; + + end; + + { TGeckoBrowserChrome } + + TGeckoBrowserChrome = class(TCustomGeckoBrowserChrome, + nsIInterfaceRequestor_std19, + nsIContextMenuListener2, + nsITooltipListener) + private + FBrowser: TGeckoBrowser; + protected + public + constructor Create(Browser: TGeckoBrowser); + destructor Destroy; override; + protected + // nsIWebBrowserChrome + procedure SetStatus(statusType: PRUint32; const status: PWideChar); override; + function GetWebBrowser(): nsIWebBrowser; override; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser); override; + function GetChromeFlags(): PRUint32; override; {$IFDEF FPC} safecall; {$ENDIF} + procedure SetChromeFlags(aChromeFlags: PRUint32); override; + procedure DestroyBrowserWindow(); override; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); override; + procedure ShowAsModal(); override; + function IsWindowModal(): PRBool; override; {$IFDEF FPC} safecall; {$ENDIF} + procedure ExitModalEventLoop(aStatus: nsresult); override; + // nsIWebBrowserChromeFocus + procedure FocusNextElement(); override; + procedure FocusPrevElement(); override; + // nsIEmbeddingSiteWindow + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); override; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); override; + procedure SetFocus(); override; + function GetVisibility(): PRBool; override; {$IFDEF FPC} safecall; {$ENDIF} + procedure SetVisibility(aVisibility: PRBool); override; + function GetTitle(): PWideChar; override; {$IFDEF FPC} safecall; {$ENDIF} + procedure SetTitle(const aTitle: PWideChar); override; + function GetSiteWindow(): Pointer; override; {$IFDEF FPC} safecall; {$ENDIF} + // nsIInterfaceRequestor + function NS_GetInterface(constref uuid: TGUID; out _result): nsresult; extdecl; + function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface; + // nsIContextMenuListener2 + procedure OnShowContextMenu(aContextFlags: PRUint32; + aUtils: nsIContextMenuInfo); safecall; + // nsITooltipListener + procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; + procedure OnHideTooltip(); safecall; + + // IGeckoBrowserChrome; + function GetCreateWindowTarget: IGeckoCreateWindowTarget; override; + end; + + TGeckoBrowserListener = class(TCustomGeckoBrowserListener, + nsIWebProgressListener, + nsISHistoryListener, + nsIDOMEventListener) + protected + // nsIWebProgressListener + procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult); override; + procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); override; + procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); override; + procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); override; + procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); override; + // nsISHistoryListener + procedure OnHistoryNewEntry(aNewURI: nsIURI); safecall; + function OnHistoryGoBack(aBackURI: nsIURI): PRBool; safecall; + function OnHistoryGoForward(aForwardURI: nsIURI): PRBool; safecall; + function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: PRUint32): PRBool; safecall; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI): PRBool; safecall; + function OnHistoryPurge(aNumEntries: PRInt32): PRBool; safecall; + // nsIDOMEventListener + //procedure HandleEvent(aEvent: nsIDOMEvent); safecall; + public + constructor Create(browser: TGeckoBrowser); + end; + + (*TGeckoBrowser = class(TCustomControl, + nsISHistoryListener) + private + { Private 骭セ } + FWebBrowser: nsIWebBrowser; + FDocTitle: WideString; + + // イベント + FOnNewWindow: TGeckoBrowserNewWindow; + + // nsISHistoryListener + function OnHistoryNewEntry(aNewURI: nsIURI): Longword; extdecl; + function OnHistoryGoBack(aBackURI: nsIURI; out aContinue: LongBool): Longword; extdecl; + function OnHistoryGoForward(aForwardURI: nsIURI; out aContinue: LongBool): Longword; extdecl; + function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: Longword; out aContinue: LongBool): Longword; extdecl; + function OnHistoryGotoIndex(aIndex: Longint; aGotoURI: nsIURI; out aContinue: LongBool): Longword; extdecl; + function OnHistoryPurge(aNumEntries: Longint; out aContinue: LongBool): Longword; extdecl; + + function GetHistoryEntry(index: Integer): TGeckoBrowserHisoty; + function GetHistoryPosition: Integer; + function GetHistoryCount: Integer; + protected + { Protected 骭セ } + // TControl + procedure Resize; override; + + public + { Public 骭セ } + // ナビゲ[ション + // nsIWebNavigation + procedure GotoIndex(aIndex: Integer); + + property HistoryEntry[index: Integer]: TGeckoBrowserHisoty read GetHistoryEntry; + property HistoryPosition: Integer read GetHistoryPosition; + property HistoryCount: Integer read GetHistoryCount; + published + { Published 骭セ } + // TWinControl + property Align; + property TabOrder; + property TabStop default True; + property BevelEdges; + property BevelInner; + property BevelKind; + property BevelOuter; + property BevelWidth; + //property BorderWidth; + + property OnCanResize; + //property OnCanMove; + + property OnMouseDown; + property OnMouseMove; + property OnMouseUp; + property OnMouseWheel; + property OnMouseWheelDown; + property OnMouseWheelUp; + + property OnKeyDown; + property OnKeyPress; + property OnKeyUp; + + property OnStatusTextChange: TGeckoBrowserStatusChange read FOnStatusChange write FOnStatusChange; + property OnNewWindow: TGeckoBrowserNewWindow read FOnNewWindow write FOnNewWindow; + property OnProgressChange: TGeckoBrowserProgressChange read FOnProgressChange write FOnProgressChange; + property OnTitleChange: TGeckoBrowserTitleChange read FOnTitleChange write FOnTitleChange; + property OnVisible: TGeckoBrowserVisibleChange read FOnVisibleChange write FOnVisibleChange; + property OnLocationChange: TGeckoBrowserLocationChange read FOnLocationChange write FOnLocationChange; + end;*) + + TCtxMenuFlags = set of (cmfLink, + cmfImage, + cmfDocument, + cmfText, + cmfInput, + cmfBGImage ); + + TCtxMenuInfo = class(TObject) + private + FInfo: nsIContextMenuInfo; + FFlags: TCtxMenuFlags; + + // function GetMouseEvent: nsIDOMEvent; + // function GetTargetNode: nsIDOMNode; + function GetAssociatedLink: WideString; + // function GetImageContainer: imgContainer; + // function GetImageSrc: nsIURI; + function GetImageURL: UTF8String; + // function GetBGImageContainer: imgIContainer; + // function GetBGImageSrc: nsIURI; + function GetBGImageURL: UTF8String; + function GetMouseEvent: nsIDOMEvent; + function GetTargetNode: nsIDOMNode; + function GetImageContainer: imgIContainer; + function GetImageSrc: nsIURI; + function GetBGImageContainer: imgIContainer; + function GetBGImageSrc: nsIURI; + public + constructor Create(flags: Longword; info: nsIContextMenuInfo); + + property Flags: TCtxMenuFlags read FFlags; + property AssociatedLink: WideString read GetAssociatedLink; + property ImageURL: UTF8String read GetImageURL; + property BGImageURL: UTF8String read GetBGImageURL; + property MouseEvent: nsIDOMEvent read GetMouseEvent; + property TargetNode: nsIDOMNode read GetTargetNode; + property ImageContainer: imgIContainer read GetImageContainer; + property ImageSrc: nsIURI read GetImageSrc; + property BGImageContainer: imgIContainer read GetBGImageContainer; + property BGImageSrc: nsIURI read GetBGImageSrc; + property ContextMenuInfo: nsIContextMenuInfo read FInfo; + end; + +procedure Register; + +{$IFNDEF LCL} +{$R *.dcr} +{$ELSE} +{$IFNDEF DARWIN} +{$R geckoresources.rc} +{$ENDIF} +{$ENDIF} + +implementation + +uses + nsError, nsStream, nsMemory, nsNetUtil, GeckoInit, + Forms, TypInfo, Variants; + +var + GeckoListBrowsers: TFPList=nil; + +procedure Register; +begin + RegisterComponents('Gecko', [TGeckoBrowser]); +end; + +{$PUSH} +{$HINTS OFF} +procedure UseParameter(var X); +begin +end; +{$POP} + +(* +// nsISHistoryListener +function TGeckoBrowser.OnHistoryNewEntry(aNewURI: nsIURI): Longword; +begin + Result := NS_OK; +end; + +function TGeckoBrowser.OnHistoryGoBack(aBackURI: nsIURI; out aContinue: LongBool): Longword; +begin + if @aContinue = nil then + begin + Result := NS_ERROR_FAILURE; + Exit; + end; + + if (HistoryPosition>0) then + aContinue := True + else + aContinue := False; + Result := NS_OK; +end; + +function TGeckoBrowser.OnHistoryGoForward(aForwardURI: nsIURI; out aContinue: LongBool): Longword; +begin + if @aContinue = nil then + begin + Result := NS_ERROR_FAILURE; + Exit; + end; + + if (HistoryPosition+1) etNone do + begin + with FDOMEvents[I] do + begin + target.AddEventListener(NewString(Name).AString, Self, true); + end; + Inc(I); + end; + end; +end; + +procedure TCustomGeckoBrowserListener.ShutdownListener(browser: TCustomGeckoBrowser); +var + I: Integer; + domWin: nsIDOMWindow; + target: nsIDOMEventTarget; +begin + RemoveWebBrowserListener(browser.WebBrowser); + + if Assigned(FDOMEvents) then + begin + I := 0; + domWin := browser.ContentWindow; + target := (domWin as nsIDOMWindow2).WindowRoot; + while FDOMEvents[I].eventType <> etNone do + begin + with FDOMEvents[I] do + begin + target.AddEventListener(NewString(Name).AString, Self, False); + end; + Inc(I); + end; + end; +end; + +procedure TCustomGeckoBrowserListener.AddWebBrowserListener(browser: nsIWebBrowser); +var + weak: nsIWeakReference; + table: PInterfaceTable; + i: Integer; +begin + weak := GetWeakReference; + table := ClassType.GetInterfaceTable; + if Assigned(table) then + for i:=0 to table.EntryCount-1 do +{$IFNDEF FPC} + browser.AddWebBrowserListener(weak, table.Entries[i].IID); +{$ELSE} + {$PUSH} + {$R-} + browser.AddWebBrowserListener(weak, table.Entries[i].IID^); //FPC Entries is only array[0..0]! + {$POP} +{$ENDIF} +end; + +procedure TCustomGeckoBrowserListener.RemoveWebBrowserListener(browser: nsIWebBrowser); +var + weak: nsIWeakReference; + table: PInterfaceTable; + i: Integer; +begin + weak := GetWeakReference; + table := ClassType.GetInterfaceTable; + if Assigned(table) then + for i:=0 to table.EntryCount-1 do +{$IFNDEF FPC} + browser.RemoveWebBrowserListener(weak, table.Entries[i].IID); +{$ELSE} + {$PUSH} + {$R-} + browser.RemoveWebBrowserListener(weak, table.Entries[i].IID^); + {$POP} +{$ENDIF} +end; + +function TCustomGeckoBrowserListener.SafeCallException( + Obj: TObject; Addr: Pointer): HResult; +begin + UseParameter(obj); UseParameter(Addr); + Result := HRESULT(NS_ERROR_FAILURE); +end; + +procedure TCustomGeckoBrowserListener.HandleEvent(aEvent: nsIDOMEvent); +var + i: Integer; + eventType: String; + str: IInterfacedString; + method: TMethod; + eventHandler: TGeckoBrowserDOMEventHandler; + domEvent: TGeckoDOMEvent; +begin + if Assigned(FDOMEvents) then + begin + str := NewString; + aEvent.GetType(str.AString); + eventType := str.ToString; + I := 0; + while FDOMEvents[I].eventType <>etNone do + begin + if FDOMEvents[I].Name = eventType then + begin + method := GetMethodProp(FBrowser, FDOMEvents[I].propertyName); + eventHandler := TGeckoBrowserDOMEventHandler(method); + if Assigned(eventHandler) then + begin + domEvent.Name := FDOMEvents[I].Name; + domEvent.EventType := FDOMEvents[I].eventType; + domEvent.event := aEvent; + eventHandler(FBrowser, domEvent); + end; + Exit; + end; + Inc(I); + end; + end; +end; + +constructor TCustomGeckoBrowser.Create(AOwner: TComponent); +var + Logo: TResourceStream; +begin + inherited; + + {$IFDEF DEBUG} + OutputDebugString('TGeckoBrowser.Create'); + {$ENDIF} + if not (csDesigning in ComponentState) then + begin + end else begin + Logo:=TResourceStream.Create(HINSTANCE,'ID_GECKO_LOGO',pchar(RT_RCDATA)); + FDesignTimeLogo:=TPortableNetworkGraphic.Create; + FDesignTimeLogo.LoadFromStream(Logo); + Logo.Free; + end; +end; + +destructor TCustomGeckoBrowser.Destroy; +begin + {$IFDEF DEBUG} + OutputDebugString('TGeckoBrowser.Destroy'); + {$ENDIF} + + if assigned(FDesignTimeLogo) then + FreeAndNil(FDesignTimeLogo); + ShutdownWebBrowser; + + Chrome := nil; + Listener := nil; + + if FGeckoComponentsStartupSucceeded then + GeckoComponentsShutdown; + + inherited; +end; + +// override methods from TControl +procedure TCustomGeckoBrowser.Resize; +var + baseWin: nsIBaseWindow; + rc: TRect; +begin + inherited Resize; + + if not Assigned(FWebBrowser) then Exit; + baseWin := FWebBrowser as nsIBaseWindow; + rc := GetClientRect; + baseWin.SetPositionAndSize(rc.Left, rc.Top, rc.Right - rc.Left, rc.Bottom - rc.Top, False); +end; + +procedure TCustomGeckoBrowser.Loaded; +begin + if not (csDesigning in ComponentState) then + begin + DoGeckoComponentsStartup; + end; + inherited Loaded; + DoInitializationIfNeeded; +end; + +procedure TCustomGeckoBrowser.CreateWnd; +begin + {$IFDEF DEBUG} + OutputDebugString('TGeckoBrowser.CreateWnd'); + {$ENDIF} + inherited CreateWnd; + if not (csDesigning in ComponentState) and not FGeckoComponentsStartupSucceeded and not FInitializationStarted then + begin + DoGeckoComponentsStartup; + DoInitializationIfNeeded; + end; +end; + +procedure TCustomGeckoBrowser.DestroyWnd; +begin + {$IFDEF DEBUG} + OutputDebugString('TGeckoBrowser.DestroyWnd'); + {$ENDIF} + inherited DestroyWnd; + if not FGeckoComponentsStartupSucceeded then + FreeAndNIL(GeckoEngineDirectoryService); +end; + +procedure TCustomGeckoBrowser.GoBack; +begin + try + (FWebBrowser as nsIWebNavigation).GoBack; + except + raise EGeckoBrowserNavigationError.CreateRes( + PResStringRec(@SGeckoBrowserCannotGoBack)); + end; +end; + +procedure TCustomGeckoBrowser.GoForward; +begin + try + (FWebBrowser as nsIWebNavigation).GoForward; + except + raise EGeckoBrowserNavigationError.CreateRes( + PResStringRec(@SGeckoBrowserCannotGoForward)); + end; +end; + +procedure TCustomGeckoBrowser.InitWebBrowser; +var + baseWin: nsIBaseWindow; + focus: nsIWebBrowserFocus; + rc: TRect; +begin + + // Initialize WindowCreator + if not InitWindowCreator then + raise EGeckoBrowserError.CreateRes(PResStringRec(@SGeckoBrowserInitError)); + + // Create Browser Object + NS_CreateInstance(NS_WEBBROWSER_CID, nsIWebBrowser, FWebBrowser); + + try + // Initialize Browser + FWebBrowser.ContainerWindow := FChrome; + baseWin := FWebBrowser as nsIBaseWindow; + + rc := ClientRect; + baseWin.InitWindow(getNativeWindow, + nil, + rc.Left, + rc.Top, + rc.Right-rc.Left, + rc.Bottom-rc.Top); + baseWin.Create(); + + // Register Listeners + FListeners.InitListener(Self); + + // Show Browser + baseWin.SetVisibility(True); + // Activate Focus + focus := FWebBrowser as nsIWebBrowserFocus; + focus.Activate; + except + raise EGeckoBrowserError.CreateRes(PResStringRec(@SGeckoBrowserInitError)); + end; +end; + +procedure TCustomGeckoBrowser.InnerLoadURI(uri: WideString; + Flags: PRUint32; referer: nsIURI; postData, headers: TStream); +var + nav: nsIWebNavigation; + post: nsIInputStream; + head: nsIInputStream; +begin + try + nav := FWebBrowser as nsIWebNavigation; + if Assigned(postData) then + post := NS_NewInputStreamFromTStream(postData, True); + if Assigned(headers) then + head := NS_NewInputStreamFromTStream(headers, True); + nav.LoadURI(PWideChar(uri), Flags, referer, post, head); + except + raise EGeckoBrowserNavigationError.CreateResFmt( + PResStringRec(@SGeckoBrowserLoadURIError), + [String(uri)]); + end; +end; + +procedure TCustomGeckoBrowser.LoadURI(const uri: WideString); +begin + if FGeckoComponentsStartupSucceeded then + InnerLoadURI(uri, 0, nil, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURI(const uri: WideString; + const referer: UTF8String); +var + ref: nsIURI; + refStr: IInterfacedUTF8String; +begin + refStr := NewUTF8String(referer); + ref := NS_NewURI(refStr.AUTF8String); + InnerLoadURI(uri, 0, ref, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURI(const uri: WideString; const referer: WideString); +var + ref: nsIURI; + refStr: IInterfacedUTF8String; +begin + refStr := NewUTF8String(UTF8String(referer)); + ref := NS_NewURI(refStr.AUTF8String); + InnerLoadURI(uri, 0, ref, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURI(const uri: WideString; referer: nsIURI); +begin + InnerLoadURI(uri, 0, referer, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURIWithFlags(const uri: WideString; + Flags: PRUint32); +begin + InnerLoadURI(uri, Flags, nil, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURIWithFlags(const uri: WideString; + Flags: PRUint32; const referer: UTF8String); +var + ref: nsIURI; + refStr: IInterfacedUTF8String; +begin + refStr := NewUTF8String(UTF8String(referer)); + ref := NS_NewURI(refStr.AUTF8String); + InnerLoadURI(uri, Flags, ref, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURIWithFlags(const uri: WideString; Flags: PRUint32; const referer: WideString); +var + ref: nsIURI; + refStr: IInterfacedUTF8String; +begin + refStr := NewUTF8String(UTF8String(referer)); + ref := NS_NewURI(refStr.AUTF8String); + InnerLoadURI(uri, Flags, ref, nil, nil); +end; + +procedure TCustomGeckoBrowser.LoadURIWithFlags(const uri: WideString; Flags: PRUint32; referer: nsIURI); +begin + InnerLoadURI(uri, Flags, referer, nil, nil); +end; +procedure TCustomGeckoBrowser.Reload; +begin + ReloadWithFlags(NS_IWEBNAVIGATION_LOAD_FLAGS_NONE); +end; + +procedure TCustomGeckoBrowser.ReloadWithFlags(AFlags: PRUint32); +var + nav: nsIWebNavigation; +begin + try + nav := FWebBrowser as nsIWebNavigation; + nav.Reload(AFlags); + except + raise EGeckoBrowserNavigationError.CreateRes( + PResStringRec(@SGeckoBrowserCannotReload)); + end; +end; + +procedure TCustomGeckoBrowser.DoGeckoComponentsStartup; +begin + if not Assigned(GeckoEngineDirectoryService) then begin + //This interface must be created as soon as possible because it + //will be callbacked when starting the XRE which happend just + //after the GeckoBrowser is created but before it is ready to be + //used. The setup of this component is a one time operation, called + //by the FIRST instance of GeckoBrowser and not called by the next + //ones; and its data persists while the program is running. + GeckoEngineDirectoryService:=IDirectoryServiceProvider.Create; + end; + if Assigned(FOnDirectoryService) then + FOnDirectoryService(Self,GeckoEngineDirectoryService); + try + GeckoComponentsStartup; + FGeckoComponentsStartupSucceeded := true; + //Create the prompt service and register + RegisterPromptService; + except + FGeckoComponentsStartupSucceeded := false; + end; +end; + +procedure TCustomGeckoBrowser.ShutdownWebBrowser; +begin + if Assigned(FWebBrowser) then + begin + //FListeners.RemoveWebBrowserListener(FWebBrowser); + FListeners.ShutdownListener(Self); + FWebBrowser.SetContainerWindow(nil); + FWebBrowser := nil; + end; +end; + +function TCustomGeckoBrowser.GetDisableJavaScript: Boolean; +begin + Result:=FDisableJavaScript; +end; + +procedure TCustomGeckoBrowser.SetDisableJavascript(const AValue: Boolean); +var + iWebSetup: nsIWebBrowserSetup; +begin + try + if FInitialized then begin + iWebSetup:=Self.FWebBrowser as nsIWebBrowserSetup; + iWebSetup.SetProperty(NS_IWEBBROWSERSETUP_SETUP_ALLOW_JAVASCRIPT,PRInt32(not AValue)); + end; + FDisableJavaScript:=AValue; + except + try + Raise EGeckoHint.Create('Unable to disable JavaScript at this moment. Gecko not created?'); + except + end; + end; +end; + +procedure TCustomGeckoBrowser.SetChrome(aChrome: TCustomGeckoBrowserChrome); +var + old: TCustomGeckoBrowserChrome; +begin + old := FChrome; + FChrome := aChrome; + if Assigned(FChrome) then + FChrome._AddRef; + if Assigned(old) then old._Release; +end; + +procedure TCustomGeckoBrowser.SetListener(aListener: TCustomGeckoBrowserListener); +var + old: TCustomGeckoBrowserListener; +begin + old := FListeners; + FListeners := aListener; + if Assigned(FListeners) then + FListeners._AddRef; + if Assigned(old) then old._Release; +end; + +procedure TCustomGeckoBrowser.WMGetDlgCode(var Msg: TWMGetDlgCode); +begin + Msg.Result := Msg.Result or DLGC_WANTARROWS or DLGC_WANTTAB; +end; + +constructor TGeckoBrowserChrome.Create(Browser: TGeckoBrowser); +begin + inherited Create; + FBrowser := Browser; +end; + +destructor TGeckoBrowserChrome.Destroy; +begin + inherited Destroy; +end; + +procedure TGeckoBrowserChrome.SetStatus( + statusType: PRUint32; + const status: PWideChar); +begin + {$IFDEF DEBUG} + { + OutputDebugString(PChar( + 'GeckoBrowser.SetStatus('+status+')' + )); + } + {$ENDIF} + UseParameter(statusType); + if Assigned(FBrowser.OnStatusChange) then + FBrowser.OnStatusChange(FBrowser, status); +end; + +function TGeckoBrowserChrome.GetWebBrowser() + : nsIWebBrowser; +begin + Result := FBrowser.FWebBrowser; +end; + +procedure TGeckoBrowserChrome.SetWebBrowser( + aWebBrowser: nsIWebBrowser); +begin + FBrowser.FWebBrowser := aWebBrowser; +end; + +function TGeckoBrowserChrome.GetChromeFlags() + : PRUint32; +begin + //TODO 2 -cTGeckoBrowserChrome: Chrome フラグの扱いをどうしようか + Result := NS_IWEBBROWSERCHROME_CHROME_DEFAULT; +end; + +procedure TGeckoBrowserChrome.SetChromeFlags( + aChromeFlags: PRUint32); +begin + UseParameter(aChromeFlags); +end; + +procedure TGeckoBrowserChrome.DestroyBrowserWindow(); +begin + if Assigned(FBrowser.FOnCloseWindow) then + FBrowser.FOnCloseWindow(FBrowser); +end; + +procedure TGeckoBrowserChrome.SizeBrowserTo( + aCX: PRInt32; + aCY: PRInt32); +begin + FBrowser.Width := aCX; + FBrowser.Height:= aCY; +end; + +procedure TGeckoBrowserChrome.ShowAsModal(); +begin +end; + +function TGeckoBrowserChrome.IsWindowModal() + : PRBool; +begin + Result := False; +end; + +procedure TGeckoBrowserChrome.ExitModalEventLoop( + aStatus: nsresult); +begin + UseParameter(aStatus); +end; + +procedure TGeckoBrowserChrome.SetDimensions( + flags: PRUint32; + x: PRInt32; + y: PRInt32; + cx: PRInt32; + cy: PRInt32); +const + FLAGS_POSITION = ns_IEmbeddingSiteWindow_DIM_FLAGS_POSITION; + FLAGS_SIZE_INNER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER; + FLAGS_SIZE_OUTER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER; +var + bounds: TRect; + clientrect: TRect; + w, h: Integer; +begin + bounds := FBrowser.BoundsRect; + clientrect := FBrowser.ClientRect; + w := bounds.Right - bounds.Left; + h := bounds.Bottom - bounds.Top; + if (flags and FLAGS_POSITION)<>0 then + begin + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + SetRect(bounds, x, y, x+(w-clientrect.Right)+cx, y+(h-clientrect.Bottom)+cy); + end else + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + SetRect(bounds, x, y, x+cx, y+cy); + end else + begin + SetRect(bounds, x, y, x+w, y+h); + end; + end else + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + bounds.Right := bounds.Left + x+(w-clientrect.Right)+cx; + bounds.Bottom := bounds.Top + y+(h-clientrect.Bottom)+cy; + end else + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + bounds.Right := bounds.Left + cx; + bounds.Bottom := bounds.Top + cy; + end; + FBrowser.BoundsRect := bounds; +end; + +procedure TGeckoBrowserChrome.GetDimensions( + flags: PRUint32; + out x: PRInt32; + out y: PRInt32; + out cx: PRInt32; + out cy: PRInt32); +const + FLAGS_POSITION = NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_POSITION; + FLAGS_SIZE_INNER = NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_INNER; + FLAGS_SIZE_OUTER = NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_OUTER; +begin + if (flags and FLAGS_POSITION)<>0 then + begin + x := FBrowser.Left; + y := FBrowser.Top; + end; + + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + cx := FBrowser.ClientWidth; + cy := FBrowser.ClientHeight; + end; + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + cx := FBrowser.Width; + cy := FBrowser.Height; + end; +end; + +procedure TGeckoBrowserChrome.SetFocus(); +begin + if Assigned(FBrowser.FOnVisibleChange) then begin + //Give the browser a chance to become visible + FBrowser.FOnVisibleChange(FBrowser,true); + end; + try + FBrowser.SetFocus; + except + Raise EGeckoHint.Create('Unable to set focus to '+FBrowser.Name); + end; +end; + +function TGeckoBrowserChrome.GetVisibility(): PRBool; +begin + // TODO 1 -cTGeckoBrowserChrome: TGeckoBrowserChrome.GetVisibility はどうすべきか + Result := True; +end; + +procedure TGeckoBrowserChrome.SetVisibility( + aVisibility: PRBool); +begin + UseParameter(aVisibility); + //TODO 1 -cTGeckoBrowserChrome: TGeckoBrowserChrome.SetVisibility の実装 +end; + +function TGeckoBrowserChrome.GetTitle(): PWideChar; +var + pstr: PWideChar; + title: WideString; + len: Integer; +begin + title := FBrowser.FTitle; + len := Length(title); + pstr := PWideChar(title); + Result := nsMemory.Clone(pstr, (len+1)*2); + if not Assigned(Result) then + OutOfMemoryError; +end; + +procedure TGeckoBrowserChrome.SetTitle( + const aTitle: PWideChar); +begin + FBrowser.FTitle := aTitle; + if Assigned(FBrowser.OnTitleChange) then + FBrowser.OnTitleChange(FBrowser, FBrowser.FTitle); +end; + +function TGeckoBrowserChrome.GetSiteWindow(): Pointer; +begin +{$PUSH} +{$HINTS OFF} + Result := Pointer(FBrowser.Handle); +{$POP} +end; + +constructor TGeckoBrowserListener.Create(browser: TGeckoBrowser); +const + //Most usual events at the beginning to improve handling speed. + events: array [0..15] of TGeckoDOMEventRegister = ( + (name:'mousemove'; eventType:etMouseEvent; propertyName:'OnDOMMouseMove' ), + (name:'DOMMouseScroll'; eventType: etMouseEvent;propertyName:'OnDOMMouseScroll'), + (name:'focus'; eventType:etEvent; propertyName:'OnDOMFocus'), + (name:'load'; eventType:etEvent; propertyName:'OnDOMLoad' ), + (name:'click'; eventType:etMouseEvent; propertyName:'OnDOMClick' ), + (name:'mouseup'; eventType:etMouseEvent; propertyName:'OnDOMMouseUp' ), + (name:'mousedown'; eventType:etMouseEvent; propertyName:'OnDOMMouseDown' ), + (name:'keyup'; eventType:etEvent; propertyName:'OnDOMKeyUp' ), + (name:'keydown'; eventType:etEvent; propertyName:'OnDOMKeyDown'), + (name:'keypress'; eventType:etEvent; propertyName:'OnDOMKeyPress'), + (name:'DOMLinkAdded'; eventType: etEvent; propertyName:'OnDOMLinkAdded'), + (name:'dragover'; eventType:etEvent; propertyName:'OnDOMDragOver'), + (name:'draggesture'; eventType:etEvent; propertyName:'OnDOMDragGesture'), + (name:'dragdrop'; eventType:etEvent; propertyName:'OnDOMDragDrop'), + (name:'dragexit'; eventType:etEvent; propertyName:'OnDOMDragExit'), + (name:''; eventType:etNone; propertyName:'') + ); +begin + inherited Create(browser); + FDOMEvents := PGeckoDOMEventRegisterArray(@events); +end; + +procedure TGeckoBrowserListener.OnStateChange( + aWebProgress: nsIWebProgress; + aRequest: nsIRequest; + aStateFlags: PRUint32; + aStatus: nsresult); +{$IFDEF DEBUG} +var + uri: nsIURI; + str: IInterfacedCString; + channel: nsIChannel; +{$ENDIF} +const + STATE_IS_DOCUMENT = NS_IWEBPROGRESSLISTENER_STATE_IS_DOCUMENT; + STATE_IS_NETWORK = NS_IWEBPROGRESSLISTENER_STATE_IS_NETWORK; + STATE_START = NS_IWEBPROGRESSLISTENER_STATE_START; + STATE_STOP = NS_IWEBPROGRESSLISTENER_STATE_STOP; +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aStatus); + if (aStateFlags and STATE_IS_DOCUMENT)<>0 then + begin + // 態の変化はドキュャ塔gに対してである + if (aStateFlags and STATE_START)<>0 then + begin + // ドキュャ塔gの読み桙ンが開始された + {$IFDEF DEBUG} + { + OutputDebugString('GeckoBrowser.OnDocumentBegin'); + } + {$ENDIF} + if Assigned(FBrowser.OnDocumentBegin) then + FBrowser.OnDocumentBegin(Self); + end else + if (aStateFlags and STATE_STOP)<>0 then + begin + // ドキュャ塔gの読み桙ンが完了した + {$IFDEF DEBUG} + { + OutputDebugString('GeckoBrowser.OnDocumentComplete'); + } + {$ENDIF} + if Assigned(FBrowser.OnDocumentComplete) then + FBrowser.OnDocumentComplete(Self); + if Assigned(FBrowser.OnStatusChange) then + FBrowser.OnStatusChange(FBrowser, ''); + end; + end; + if (aStateFlags and STATE_IS_NETWORK)<>0 then + begin + // 態の変化はネットゼクに対してである + if (aStateFlags and STATE_START)<>0 then + begin + // ネットゼクの転送が開始された鼇 + {$IFDEF DEBUG} + { + str := NewCString; + channel := aRequest as nsIChannel; + uri := channel.URI; + uri.GetSpec(str.ACString); + OutputDebugStringA( + PAnsiChar('GeckoBrowser.OnDownloadBegin('+str.ToString+')')); + } + {$ENDIF} + end else + if (aStateFlags and STATE_STOP)<>0 then + begin + // ネットゼクの転送がI了した鼇 + {$IFDEF DEBUG} + { + str := NewCString; + channel := aRequest as nsIChannel; + uri := channel.URI; + uri.GetSpec(str.ACString); + OutputDebugStringA( + PAnsiChar('GeckoBrowser.OnDownloadComplete('+str.ToString+')')); + } + {$ENDIF} + if Assigned(FBrowser.OnStatusChange) then + FBrowser.OnStatusChange(FBrowser, ''); + end; + end; +end; + +procedure TGeckoBrowserListener.OnProgressChange( + aWebProgress: nsIWebProgress; + aRequest: nsIRequest; + aCurSelfProgress: PRInt32; + aMaxSelfProgress: PRInt32; + aCurTotalProgress: PRInt32; + aMaxTotalProgress: PRInt32); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aCurSelfProgress); + UseParameter(aMaxSelfProgress); + if Assigned(FBrowser.OnProgressChange) then + begin + {$IFDEF DEBUG} + { + OutputDebugString(PChar( + 'OnProgressListener('+IntToStr(aCurTotalProgress)+'/'+IntToStr(aMaxTotalProgress)+')' + )); + } + {$ENDIF} + FBrowser.OnProgressChange(FBrowser, aCurTotalProgress, aMaxTotalProgress); + end; +end; + +procedure TGeckoBrowserListener.OnLocationChange( + aWebProgress: nsIWebProgress; + aRequest: nsIRequest; + location: nsIURI); +var + str: IInterfacedCString; +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + str := NewCString; + location.GetSpec(str.ACString); + {$IFDEF DEBUG} + { + OutputDebugStringA(PAnsiChar( + 'GeckoBrowser.LocationChange('+str.ToString+')' + )); + } + {$ENDIF} + if Assigned(FBrowser.OnLocationChange) then + FBrowser.OnLocationChange(FBrowser, str.ToString); +end; + +procedure TGeckoBrowserListener.OnStatusChange( + aWebProgress: nsIWebProgress; + aRequest: nsIRequest; + aStatus: nsresult; + const aMessage: PWideChar); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aStatus); +{$IFDEF DEBUG} +{ + OutputDebugStringW(PWideChar( + 'GeckoBrowser.OnStatusChange('+aMessage+')' + )); +} +{$ENDIF} + if Assigned(FBrowser.OnStatusChange) then + FBrowser.OnStatusChange(FBrowser, aMessage); +end; + +procedure TGeckoBrowserListener.OnSecurityChange( + aWebProgress: nsIWebProgress; + aRequest: nsIRequest; + state: PRUint32); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(State); + //TODO 1 -cTGeckoBrowserListner: TGeckoBrowserListener.OnSecurityChange の記q +end; + +constructor TGeckoBrowser.Create(AOwner: TComponent); +begin + if not Assigned(GeckoListBrowsers) then GeckoListBrowsers:=TFPList.Create; + GeckoListBrowsers.Add(Self); + inherited; + Chrome := TGeckoBrowserChrome.Create(Self); + Listener := TGeckoBrowserListener.Create(Self); + {$IFDEF LCLGTK2} + //Creates a timer that forces the event queue to be pooled. This could be a + //bug in the LCL or a problem with events coming for the XULRUNNER. + //A timer of 100 ms creates the feel that everything is pooled as it comes and + //it only have a visual impact. + EventPool := TTimer.Create(Self); + EventPool.Interval:=100; + EventPool.Enabled:=true; + EventPool.OnTimer:=EventPoolProc; + {$ENDIF} +end; + +destructor TGeckoBrowser.Destroy; +begin + inherited Destroy; + GeckoListBrowsers.Remove(Self); + if GeckoListBrowsers.Count=0 then FreeAndNil(GeckoListBrowsers); +end; + +class function TGeckoBrowser.GetGeckoBrowserWithDOMWindow( + constref DOMWindow: nsIDOMWindow): TGeckoBrowser; +var + ThisGecko: TGeckoBrowser; + t1,t2: nsIDOMWindow; + j: integer; +begin + Result:=nil; + if Assigned(GeckoListBrowsers) then begin + for j := 0 to GeckoListBrowsers.Count-1 do begin + ThisGecko:=TGeckoBrowser(GeckoListBrowsers[j]); + t1:=ThisGecko.GetContentWindow.Parent; + t2:=DOMWindow.Parent; + if t1=t2 then begin + Result:=ThisGecko; + break; + end; + end; + end; +end; + +procedure TGeckoBrowser.Print(const aShowPrinterSelectDialog: Boolean); +var + PrintInterface: nsIWebBrowserPrint; + PrintSettings: nsIPrintSettings; +begin + PrintInterface:=GetWebBrowserPrint; + if Assigned(PrintInterface) then begin + PrintSettings:=PrintInterface.GetGlobalPrintSettings; + if Assigned(PrintSettings) then begin + PrintSettings.ShowPrintProgress:=false; //true implies need of nsIWebProgressListener + PrintSettings.PrintBGImages:=true; + PrintSettings.SetPrintSilent(not aShowPrinterSelectDialog); + end; + PrintInterface.Print(PrintSettings,nil); + end; +end; + +function TGeckoBrowserChrome.NS_GetInterface(constref uuid: TGUID; out _result): nsresult; +begin + if IsEqualGUID(uuid, nsIDOMWindow) then + begin + Result:= nsresult(FBrowser.GetContentWindow.QueryInterface(uuid, _result)); + end else + begin +// FPC port: Result is PRUInt32, but QueryInterface returns Longint, +// so cast to nsresult to prevent range check error. +// Result := QueryInterface(uuid, _result); + Result := nsresult(QueryInterface(uuid, _result)); + end; +end; + +procedure TGeckoBrowserChrome.OnShowContextMenu(aContextFlags: PRUint32; + aUtils: nsIContextMenuInfo); +(* +const + CONTEXT_NONE = NS_ICONTEXTMENULISTENER2_CONTEXT_NONE; + CONTEXT_LINK = NS_ICONTEXTMENULISTENER2_CONTEXT_LINK; + CONTEXT_IMAGE = NS_ICONTEXTMENULISTENER2_CONTEXT_IMAGE; + CONTEXT_DOCUMENT = NS_ICONTEXTMENULISTENER2_CONTEXT_DOCUMENT; + CONTEXT_TEXT = NS_ICONTEXTMENULISTENER2_CONTEXT_TEXT; + CONTEXT_INPUT = NS_ICONTEXTMENULISTENER2_CONTEXT_INPUT; + CONTEXT_BACKGROUND_IMAGE = NS_ICONTEXTMENULISTENER2_CONTEXT_BACKGROUND_IMAGE;*) +var + cmenu: TCtxMenuInfo; +begin + if Assigned(FBrowser.OnContextMenu) then + begin + cmenu := TCtxMenuInfo.Create(aContextFlags, aUtils); + try + FBrowser.OnContextMenu(FBrowser, cmenu); + finally + cmenu.Free; + end; + end; +end; + +procedure TGeckoBrowserChrome.OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; +{$IFNDEF FPC} +var + r:TRect; + p,ap:TPoint; +// height:Integer; +{$ENDIF} +begin +{$IFNDEF LCL} + if FBrowser.FHint = nil then + FBrowser.FHint := THintWindow.Create(FBrowser); + r := FBrowser.FHint.CalcHintRect(400,aTipText,nil); +// height := r.Bottom; + ap.X := aXCoords; + ap.Y := aYCoords; + p := FBrowser.ClientToScreen(ap); + r.Left:=p.x; + r.Top:=p.y-r.Bottom; + r.Right:=r.Right +p.x; + r.Bottom:=p.y; + FBrowser.FHint.ActivateHint(r,aTipText); +{$ELSE} + UseParameter(aXCoords); + UseParameter(aYCoords); + FBrowser.Hint:=aTiptext; + FBrowser.ShowHint:=true; +{$ENDIF} +end; + +procedure TGeckoBrowserChrome.OnHideTooltip(); safecall; +begin +{$IFNDEF LCL} + FBrowser.FHint.ReleaseHandle; +{$ENDIF} +end; + +{$IFDEF LCLGTK2} +procedure TGeckoBrowser.EventPoolProc(Sender: TObject); +begin + //Do nothing. Just a hack. +end; +{$ENDIF} + +function TGeckoBrowser.DoCreateChromeWindow( + chromeFlags: Longword): nsIWebBrowserChrome; +var + newWin: TCustomGeckoBrowser; +begin + if Assigned(OnNewWindow) then + begin + newWin := nil; + OnNewWindow(Self, chromeFlags, newWin); + if Assigned(newWin) then + Result := newWin.FChrome; + end; +end; + +function TCustomGeckoBrowser.GetWebBrowserChrome: nsIWebBrowserChrome; +begin + Result := FChrome; +end; + +function TCustomGeckoBrowser.GetContentDocument: nsIDOMDocument; +begin + Result := FWebBrowser.ContentDOMWindow.Document; +end; + +function TCustomGeckoBrowser.GetContentWindow: nsIDOMWindow; +begin + Result := FWebBrowser.ContentDOMWindow; +end; + +procedure TCustomGeckoBrowser.WMEraseBkGnd(var Msg: TMessage); +begin + // Cancel erase background actions. + Msg.Result := 0; +end; + +procedure TCustomGeckoBrowser.Paint; +var + rc: TRect; + baseWin: nsIBaseWindow; +begin + if csDesigning in ComponentState then + begin + rc := ClientRect; + Canvas.Brush.Color:=clWhite; + Canvas.FillRect(rc); + if Assigned(FDesignTimeLogo) then + Canvas.StretchDraw(rc,FDesignTimeLogo) + end else + begin + if FGeckoComponentsStartupSucceeded then + begin + baseWin := FWebBrowser as nsIBaseWindow; + baseWin.Repaint(true); + {$IFDEF LCLGTK2} + Self.AdjustSize; + {$ENDIF} + end + else + begin + rc := ClientRect; + Canvas.FillRect(rc); + Canvas.TextOut(0,0,SGeckoBrowserInitError); + end; + end; + inherited; +end; + +function TCustomGeckoBrowser.GetCanGoBack: Boolean; +var + nav: nsIWebNavigation; + history: nsISHistory; + index: PRInt32; +begin + nav := FWebBrowser as nsIWebNavigation; + history := nav.SessionHistory; + index := history.Index; + + Result := (index > 0); +end; + +function TCustomGeckoBrowser.GetCanGoForward: Boolean; +var + nav: nsIWebNavigation; + history: nsISHistory; + count, index: PRInt32; +begin + nav := FWebBrowser as nsIWebNavigation; + history := nav.SessionHistory; + count := history.Count; + index := history.Index; + + Result := (index+1 nil then + Self.WebNavigation.CurrentURI.GetSpec(str.AUTF8String); + Result := str.ToString; +end; + +procedure TGeckoBrowserChrome.FocusPrevElement(); +var + Ancestor: TWinControl; +begin + Ancestor := FBrowser.Parent; + while Assigned(Ancestor) and (not(Ancestor is TForm)) do + Ancestor := Ancestor.Parent; + if Assigned(Ancestor) then + PostMessage(Ancestor.Handle, WM_NEXTDLGCTL, 1, 0); +end; + +procedure TGeckoBrowserChrome.FocusNextElement(); +var + Ancestor: TWinControl; +begin + Ancestor := FBrowser.Parent; + while Assigned(Ancestor) and (not(Ancestor is TForm)) do + Ancestor := Ancestor.Parent; + if Ancestor <> nil then + PostMessage(Ancestor.Handle, WM_NEXTDLGCTL, 0, 0); +end; + +function TGeckoBrowserChrome.GetCreateWindowTarget: IGeckoCreateWindowTarget; +begin + Supports(FBrowser, IGeckoCreateWindowTarget, Result); +end; + +procedure TGeckoBrowserListener.OnHistoryNewEntry(aNewURI: nsIURI); +begin + UseParameter(aNewURI); +end; + +function TGeckoBrowserListener.OnHistoryGoBack(aBackURI: nsIURI): PRBool; +var + Handled:Boolean; + aContinue:PRBool; +begin + Handled:=false; + if Assigned(FBrowser.FOnGoBack) then + FBrowser.FOnGoBack(Self,aBackURI,aContinue,Handled); + if Handled then begin + Result := aContinue; + end + else {if not Handled then }begin + {if (HistoryPosition>0) then + Result := True + else + Result := False;} + Result := True; + end; +end; + +function TGeckoBrowserListener.OnHistoryGoForward(aForwardURI: nsIURI): PRBool; +var + Handled:Boolean; + aContinue:PRBool; +begin + Handled:=false; + if Assigned(FBrowser.FOnGoForward) then + FBrowser.FOnGoForward(Self,aForwardURI,aContinue,Handled); + if Handled then begin + Result := aContinue; + end + else {if not Handled then} begin + {if (HistoryPosition+1)(flags and ns_IContextMenuListener2_CONTEXT_LINK) then + FFlags := FFlags + [cmfLink]; + if 0<>(flags and ns_IContextMenuListener2_CONTEXT_IMAGE) then + FFlags := FFlags + [cmfImage]; + if 0<>(flags and ns_IContextMenuListener2_CONTEXT_DOCUMENT) then + FFlags := FFlags + [cmfDocument]; + if 0<>(flags and ns_IContextMenuListener2_CONTEXT_TEXT) then + FFlags := FFlags + [cmfText]; + if 0<>(flags and ns_IContextMenuListener2_CONTEXT_INPUT) then + FFlags := FFlags + [cmfInput]; + if 0<>(flags and ns_IContextMenuListener2_CONTEXT_BACKGROUND_IMAGE) then + FFlags := FFlags + [cmfBGImage]; +end; + +function TCtxMenuInfo.GetAssociatedLink: WideString; +var + str: IInterfacedString; +begin + try + str := NewString; + FInfo.GetAssociatedLink(str.AString); + Result := str.ToString; + except + end; +end; + +function TCtxMenuInfo.GetImageURL: UTF8String; +var + str: IInterfacedUTF8String; + uri: nsIURI; +begin + try + str := NewUTF8String; + uri := FInfo.GetImageSrc(); + uri.GetSpec(str.AUTF8String); + Result := str.ToString; + except + end; +end; + +function TCtxMenuInfo.GetBGImageURL: UTF8String; +var + str: IInterfacedUTF8String; + uri: nsIURI; +begin + try + str := NewUTF8String; + uri := FInfo.GetBackgroundImageSrc(); + uri.GetSpec(str.AUTF8String); + Result := str.ToString; + except + end; +end; + +function TCtxMenuInfo.GetMouseEvent: nsIDOMEvent; +begin + Result := FInfo.MouseEvent; +end; + +function TCtxMenuInfo.GetTargetNode: nsIDOMNode; +begin + Result := FInfo.TargetNode; +end; + +function TCtxMenuInfo.GetImageContainer: imgIContainer; +begin + Result := FInfo.ImageContainer; +end; + +function TCtxMenuInfo.GetImageSrc: nsIURI; +begin + Result := FInfo.ImageSrc; +end; + +function TCtxMenuInfo.GetBGImageContainer: imgIContainer; +begin + Result := FInfo.BackgroundImageContainer; +end; + +function TCtxMenuInfo.GetBGImageSrc: nsIURI; +begin + Result := FInfo.BackgroundImageSrc; +end; + +{$IFDEF LCL} +initialization +{$I GeckoBrowser.lrs} +{$ENDIF} + +end. + diff --git a/components/geckoport/version2/Components/GeckoBrowser.rst b/components/geckoport/version2/Components/GeckoBrowser.rst new file mode 100644 index 000000000..35dcc831c --- /dev/null +++ b/components/geckoport/version2/Components/GeckoBrowser.rst @@ -0,0 +1,20 @@ + +# hash value = 240817182 +geckobrowser.sgeckobrowseriniterror='Failed to initialize TGeckoBrowser.' + + +# hash value = 197709054 +geckobrowser.sgeckobrowsercannotgoback='Failed to go back history.' + + +# hash value = 169675006 +geckobrowser.sgeckobrowsercannotgoforward='Failed to go forward history.' + + +# hash value = 248036432 +geckobrowser.sgeckobrowserloadurierror='Failed to load URI '#39'%s.'#39' '+ + + +# hash value = 55368478 +geckobrowser.sgeckobrowsercannotreload='Failed to reload page.' + diff --git a/components/geckoport/version2/Components/GeckoChromeWindow.dfm b/components/geckoport/version2/Components/GeckoChromeWindow.dfm new file mode 100644 index 000000000..76a301dd9 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoChromeWindow.dfm @@ -0,0 +1,18 @@ +object GeckoChromeForm: TGeckoChromeForm + Left = 192 + Top = 107 + Width = 800 + Height = 600 + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -12 + Font.Name = 'Tahoma' + Font.Style = [] + OldCreateOrder = False + OnClose = FormClose + OnCreate = FormCreate + OnResize = FormResize + PixelsPerInch = 96 + TextHeight = 12 +end diff --git a/components/geckoport/version2/Components/GeckoChromeWindow.lfm b/components/geckoport/version2/Components/GeckoChromeWindow.lfm new file mode 100755 index 000000000..65d6c9d64 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoChromeWindow.lfm @@ -0,0 +1,12 @@ +object GeckoChromeForm: TGeckoChromeForm + Left = 192 + Height = 600 + Top = 107 + Width = 800 + Font.Height = -12 + Font.Name = 'Tahoma' + OnClose = FormClose + OnCreate = FormCreate + OnResize = FormResize + LCLVersion = '0.9.29' +end diff --git a/components/geckoport/version2/Components/GeckoChromeWindow.lrs b/components/geckoport/version2/Components/GeckoChromeWindow.lrs new file mode 100755 index 000000000..53a0f15b9 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoChromeWindow.lrs @@ -0,0 +1,8 @@ +{ This is an automatically generated lazarus resource file } + +LazarusResources.Add('TGeckoChromeForm','FORMDATA',[ + 'TPF0'#16'TGeckoChromeForm'#15'GeckoChromeForm'#4'Left'#3#192#0#6'Height'#3'X' + +#2#3'Top'#2'k'#5'Width'#3' '#3#11'Font.Height'#2#244#9'Font.Name'#6#6'Tahoma' + +#7'OnClose'#7#9'FormClose'#8'OnCreate'#7#10'FormCreate'#8'OnResize'#7#10'For' + +'mResize'#10'LCLVersion'#6#6'0.9.29'#0#0 +]); diff --git a/components/geckoport/version2/Components/GeckoChromeWindow.pas b/components/geckoport/version2/Components/GeckoChromeWindow.pas new file mode 100755 index 000000000..66ae9fa2c --- /dev/null +++ b/components/geckoport/version2/Components/GeckoChromeWindow.pas @@ -0,0 +1,558 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit GeckoChromeWindow; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +{$IFDEF LCLCocoa} + {$MODESWITCH ObjectiveC1} +{$ENDIF} + +interface + +uses + {$IFNDEF LCL} Windows, Messages, {$ELSE} LclIntf, LResources, {$ENDIF} + SysUtils, Variants, Classes, Graphics, Controls, Forms, + Dialogs, CallbackInterfaces, nsXPCOM, nsTypes, nsXPCOM_std19 + {$IFDEF LCLCarbon}, CarbonPrivate {$ENDIF} + {$IFDEF LCLGtk2}, gtk2 {$ENDIF} + {$IFDEF LCLCocoa}, CocoaAll, CocoaUtils, CocoaPrivate {$ENDIF}; + +type + //In all currently supported platforms the native window handle is a pointer + //size handle. In Linux64 THANDLE can not be used because by default it is 32 + //bits due file descriptors which are 32 bits even in 64 bit platform. + //Win32 WindowHandle 32 bits THANDLE 32 bits + //Win64 WindowHandle 64 bits THANDLE 64 bits + //Linux32 WindowHandle 32 bits THANDLE 32 bits + //Linux64 WindowHandle 64 bits THANDLE 32 bits + nativeWindow = PtrUInt; + + TGeckoChromeForm = class(TForm, + IGeckoCreateWindowTarget, + nsIWebBrowserChrome, + nsIEmbeddingSiteWindow, + nsIWebProgressListener, + nsIInterfaceRequestor_std19, + nsIWeakReference, + nsISupportsWeakReference) + procedure FormClose(Sender: TObject; var Action: TCloseAction); + procedure FormCreate(Sender: TObject); + procedure FormResize(Sender: TObject); + private + { Private 骭セ } + FWebBrowser: nsIWebBrowser; + FChromeFlags: Longword; + + // nsIWebBrowserChrome + procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall; + function GetWebBrowser(): nsIWebBrowser; safecall; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser); safecall; + function GetChromeFlags: PRUint32; safecall; + procedure SetChromeFlags(aChromeFlags: PRUint32); safecall; + procedure DestroyBrowserWindow(); safecall; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall; + procedure ShowAsModal(); safecall; + function IsWindowModal(): PRBool; safecall; + procedure ExitModalEventLoop(aStatus: nsresult); safecall; + // nsIEmbeddingSiteWindow + procedure SetDimensions(flags: PRUint32; x, y, cx, cy: PRInt32); safecall; + procedure GetDimensions(flags: Longword; out x, y, cx, cy: PRInt32); safecall; + procedure SetFocus; reintroduce; safecall; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(Value: PRBool); safecall; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const Value: PWideChar); safecall; + function GetSiteWindow: Pointer; safecall; + // nsIWebProgressListener + procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult); safecall; + procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); safecall; + procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); safecall; + procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); safecall; + procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); safecall; + // nsIInterfaceRequestor + function NS_GetInterface(constref uuid: TGUID; out Intf): nsresult; extdecl; + function nsIInterfaceRequestor_std19.GetInterface = NS_GetInterface; + // for nsIWeakReference + procedure QueryReferent(constref IID: TGUID; out Obj); safecall; + // for nsISupportsWeakReference + function GetWeakReference(): nsIWeakReference; safecall; + + function GetNativeWindow : nativeWindow; //FPC port: added this. + procedure InitWebBrowser; + procedure UpdateChrome; + procedure ContentFinishedLoading; + public + { Public 骭セ } + function SafeCallException(Obj: TObject; Addr: Pointer): HResult; override; + + constructor CreateWithChromeFlags(AOwner: TComponent; aChromeFlags: Longword); + + // IGeckoCreateWindowTarget + function DoCreateChromeWindow(chromeFlags: Longword): nsIWebBrowserChrome; + function GetWebBrowserChrome: nsIWebBrowserChrome; + property WebBrowser : nsIWebBrowser read FWebBrowser; //FPC port: added this. + end; + +var + GeckoChromeForm: TGeckoChromeForm; + +implementation + +{$IFNDEF LCL} +{$R *.dfm} +{$ENDIF} + +uses + nsXPCOMGlue, nsError, BrowserSupports; + +{$PUSH} +{$HINTS OFF} +procedure UseParameter(var X); +begin +end; +{$POP} + +constructor TGeckoChromeForm.CreateWithChromeFlags(AOwner: TComponent; AChromeFlags: Longword); +begin + inherited Create(AOwner); + FChromeFlags := aChromeFlags; + UpdateChrome; +end; + +procedure TGeckoChromeForm.FormClose(Sender: TObject; + var Action: TCloseAction); +begin + Action := caFree; +end; + +function TGeckoChromeForm.GetNativeWindow : nativeWindow; +{$IFDEF LCLCocoa} +var + ARect : NSRect; + AView : NSView; +{$ENDIF} +begin + {$IFDEF MSWINDOWS}Result := Handle;{$ENDIF} + + {$IFDEF LCLCarbon}Result := THANDLE(TCarbonWindow(Handle).Window);{$ENDIF} + //Carbon doesn't work but leave in so package compiles in Carbon IDE. + +// {$IFDEF LCLCocoa}Result := Pointer(TCocoaForm(Handle).MainWindowView.superview);{$ENDIF} + //Old PasCocoa-based widgetset. + +//NSLog(NSStringUtf8(FloatToStr(NSView(TCocoaWindow(Handle).contentView).frame.size.width))); + {$IFDEF LCLCocoa}Result := THANDLE(TCocoaWindow(Handle).contentView);{$ENDIF} + //New ObjC-based Cocoa widgetset. + +(* + //Does adding a view work better than using window's view (below)? No, it doesn't. + {$IFDEF LCLCocoa} + ARect := NSView(TCocoaWindow(Handle).contentView).visibleRect; + ARect.size.width := ARect.size.width - 30; + ARect.size.height := ARect.size. height - 30; + ARect.origin.x := 15; + ARect.origin.y := 15; + AView := NSView.alloc.initWithFrame(ARect); + NSView(TCocoaWindow(Handle).contentView).addSubView(AView); + Result := THANDLE(AView); + {$ENDIF} +*) + + {$IFDEF LCLGtk}Result := Handle;{$ENDIF} //Is Handle same as GTK Window? + + {$IFDEF LCLGtk2} + Result := nativeWindow(PGtkWindow(GeckoChromeForm.Handle)^.bin.child); + {$ENDIF} //Is Handle same as GTK Window? +end; + +procedure TGeckoChromeForm.InitWebBrowser; +var + base: nsIBaseWindow; +begin + NS_CreateInstance(NS_WEBBROWSER_CID, nsIWebBrowser, FWebBrowser); + + FWebBrowser.ContainerWindow := Self; + + base := FWebBrowser as nsIBaseWindow; + base.InitWindow(GetNativeWindow, nil, 0, 0, ClientWidth, ClientHeight); + base.Create; + FWebBrowser.AddWebBrowserListener(Self, nsIWebProgressListener); + base.SetVisibility(True); +end; + +procedure TGeckoChromeForm.UpdateChrome; +begin + {if (FChromeFlags and CHROME_WINDOW_BORDERS)<>0 then + if (FChromeFlags and CHROME_WINDOW_RESIZE)<>0 then + BorderStyle := bsSizeable + else + if (FChromeFlags and CHROME_OPENAS_DIALOG)<>0 then + BorderStyle := bsDialog + else + BorderStyle := bsSingle + else + BorderStyle := bsNone;} + BorderStyle := bsSizeable; + + { + if (FChromeFlags and CHROME_WINDOW_CLOSE)<>0 then + BorderIcons := BorderIcons + [biClose] + else + BorderIcons := BorderIcons - [biClose]; + } + + if (FChromeFlags and CHROME_SCROLLBARS)<>0 then + AutoScroll := True + else + AutoScroll := False; + + { + if (FChromeFlags and CHROME_TITLEBAR)<>0 then + BorderIcons := BorderIcons + [biSystemMenu] + else + BorderIcons := BorderIcons - [biSystemMenu]; + } + +end; + +function TGeckoChromeForm.DoCreateChromeWindow(chromeFlags: Longword): nsIWebBrowserChrome; +begin + UseParameter(chromeFlags); + Result := nil; +end; + +function TGeckoChromeForm.GetWebBrowserChrome: nsIWebBrowserChrome; +begin + Result := Self; +end; + +procedure TGeckoChromeForm.SetStatus(statusType: Longword; const status: PWideChar); +begin + UseParameter(statusType); +end; + +function TGeckoChromeForm.GetWebBrowser: nsIWebBrowser; +begin + Result := FWebBrowser as nsIWebBrowser; +end; + +procedure TGeckoChromeForm.SetWebBrowser(aWebBrowser: nsIWebBrowser); +begin + UseParameter(aWebBrowser); +end; + +function TGeckoChromeForm.GetChromeFlags: PRUint32; +begin + Result := FChromeFlags; +end; + +procedure TGeckoChromeForm.SetChromeFlags(aChromeFlags: Longword); +begin + FChromeFlags := aChromeFlags; + UpdateChrome; +end; + +procedure TGeckoChromeForm.DestroyBrowserWindow; +begin + Close; +end; + +procedure TGeckoChromeForm.SizeBrowserTo(aCX, aCY: Integer); +var + dx, dy: Integer; +begin + dx := Width - ClientWidth; + dy := Height - ClientHeight; + SetBounds(Left, Top, aCX+dx, aCY+dy); +end; + +procedure TGeckoChromeForm.ShowAsModal; +begin + Visible := False; + ShowModal; +end; + +function TGeckoChromeForm.IsWindowModal: PRBool; +begin + Result := False; +end; + +procedure TGeckoChromeForm.ExitModalEventLoop(aStatus: nsresult); safecall; +begin + UseParameter(aStatus); + ModalResult := 1; +end; + +procedure TGeckoChromeForm.SetDimensions(flags: Longword; x, y, cx, cy: Longint); +const + FLAGS_POSITION = NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_POSITION; + FLAGS_SIZE_INNER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER; + FLAGS_SIZE_OUTER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER; +var + dx, dy: Integer; +begin + dx := Width - ClientWidth; + dy := Height - ClientHeight; + + if (flags and FLAGS_POSITION)<>0 then + begin + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + Bounds(x, y, cx+dx, cy+dy); + end else + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + Bounds(x, y, cx, cy); + end else + begin + Bounds(x, y, Width, Height); + end; + end else + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + Bounds(Left, Top, cx+dx, cy+dy); + end else + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + Bounds(Left, Top, cx, cy); + end; +end; + +procedure TGeckoChromeForm.GetDimensions(flags: Longword; out x, y, cx, cy: Longint); +const + FLAGS_POSITION = ns_IEmbeddingSiteWindow_DIM_FLAGS_POSITION; + FLAGS_SIZE_INNER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER; + FLAGS_SIZE_OUTER = ns_IEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER; +begin + if (flags and FLAGS_POSITION)<>0 then + begin + x := Left; + y := Top; + end; + + if (flags and FLAGS_SIZE_INNER)<>0 then + begin + cx := ClientWidth; + cy := ClientHeight; + end else + if (flags and FLAGS_SIZE_OUTER)<>0 then + begin + cx := Width; + cy := Height; + end; +end; + +procedure TGeckoChromeForm.SetFocus(); +begin +end; + +function TGeckoChromeForm.GetVisibility: PRBool; +begin + Result := True; +end; + +procedure TGeckoChromeForm.SetVisibility(Value: LongBool); +begin + UseParameter(Value); + Visible := Value; +end; + +function TGeckoChromeForm.GetTitle: PWideChar; +begin + Result := nil; +end; + +procedure TGeckoChromeForm.SetTitle(const Value: PWideChar); +begin + Caption := WideString(Value); +end; + +function TGeckoChromeForm.GetSiteWindow: Pointer; +begin +//Known "not safe" conversion. +{$PUSH} +{$HINTS OFF} + Result := Pointer(GetNativeWindow); +{$POP} +end; + +procedure TGeckoChromeForm.OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aStatus); + if ((aStateFlags and NS_IWEBPROGRESSLISTENER_STATE_STOP)<>0) and + ((aStateFlags and NS_IWEBPROGRESSLISTENER_STATE_IS_DOCUMENT)<>0) then + begin + ContentFinishedLoading(); + end; +end; + +procedure TGeckoChromeForm.OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aCurSelfProgress); + UseParameter(aMaxSelfProgress); + UseParameter(aCurTotalProgress); + UseParameter(aMaxTotalProgress); +end; + +procedure TGeckoChromeForm.OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(location); +end; + +procedure TGeckoChromeForm.OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(aStatus); +end; + +procedure TGeckoChromeForm.OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); +begin + UseParameter(aWebProgress); + UseParameter(aRequest); + UseParameter(state); +end; + +function TGeckoChromeForm.NS_GetInterface(constref uuid: TGUID; out Intf): nsresult; +var + domwin: nsIDOMWindow; +begin + if IsEqualGUID(uuid, nsIDOMWindow) then + begin + if Assigned(FWebBrowser) then + begin + domwin := FWebBrowser.ContentDOMWindow; + Result := domwin.QueryInterface(uuid, Intf); + end else + Result := NS_ERROR_NOT_INITIALIZED; + end else + begin +// FPC port: Result is PRUInt32, but QueryInterface returns Longint, +// so cast to nsresult to prevent range check error. + try + Result := nsresult(QueryInterface(uuid, Intf)); + except + Result:=0; + Integer(Intf):=0; + end; + end; +end; + +procedure TGeckoChromeForm.QueryReferent(constref IID: TGUID; out Obj); +var + rv: nsresult; +begin + rv := QueryInterface(IID, Obj); + if NS_FAILED(rv) then + raise EIntfCastError.Create('QueryReferent'); +end; + +function TGeckoChromeForm.GetWeakReference: nsIWeakReference; +begin + Result := Self as nsIWeakReference; +end; + +procedure TGeckoChromeForm.FormCreate(Sender: TObject); +begin + InitWebBrowser; +end; + +procedure TGeckoChromeForm.FormResize(Sender: TObject); +var + baseWin: nsIBaseWindow; +begin + baseWin:=FWebBrowser as nsIBaseWindow; + baseWin.SetPositionAndSize(0, 0, ClientWidth, ClientHeight, True); + baseWin.SetVisibility(True); +end; + +procedure TGeckoChromeForm.ContentFinishedLoading; +var + contentWin: nsIDOMWindow; + baseWin: nsIBaseWindow; +begin + contentWin := FWebBrowser.ContentDOMWindow; + try + //Will try to resize the form to the size of the HTML page, but if the HTML + //does not have a width specified (UNRESTRICTED) it will raise an exception + //and badly resize the HTML content. + contentWin.SizeToContent; + except + //Workaround + baseWin:=FWebBrowser as nsIBaseWindow; + //Forces reflow... + baseWin.SetPositionAndSize(0,0,ClientWidth, ClientHeight+1, false); + baseWin.SetPositionAndSize(0,0,ClientWidth, ClientHeight, true); + end; + Visible:=true; +end; + +{$IFDEF LCL} +const + E_FAIL = HRESULT($80004005); +{$ENDIF} + +function TGeckoChromeForm.SafeCallException(Obj: TObject; Addr: Pointer): HResult; +begin + UseParameter(Addr); + if Obj is EIntfCastError then + Result := E_NOINTERFACE + else + Result := E_FAIL; +end; + +initialization +{$IFDEF LCL} +{$I GeckoChromeWindow.lrs} +{$ENDIF} + +end. diff --git a/components/geckoport/version2/Components/GeckoComponents.bdsproj b/components/geckoport/version2/Components/GeckoComponents.bdsproj new file mode 100644 index 000000000..7fec82f81 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.bdsproj @@ -0,0 +1,175 @@ +サソ + + + + + + + + + + + GeckoComponents.dpk + + + 7.0 + + + 8 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 1 + 1 + 1 + True + True + WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; + + False + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + False + False + False + True + True + True + True + True + True + + + + 0 + 0 + False + 1 + False + False + False + 16384 + 1048576 + 4194304 + Gecko Components + + + + + + + + + + + False + + + + + + False + + + True + False + + + + $00000000 + + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1041 + 932 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + diff --git a/components/geckoport/version2/Components/GeckoComponents.dpk b/components/geckoport/version2/Components/GeckoComponents.dpk new file mode 100644 index 000000000..a20122bbe --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.dpk @@ -0,0 +1,76 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +package GeckoComponents; + +{$R *.res} +{$ALIGN 8} +{$ASSERTIONS ON} +{$BOOLEVAL OFF} +{$DEBUGINFO ON} +{$EXTENDEDSYNTAX ON} +{$IMPORTEDDATA ON} +{$IOCHECKS ON} +{$LOCALSYMBOLS ON} +{$LONGSTRINGS ON} +{$OPENSTRINGS ON} +{$OPTIMIZATION ON} +{$OVERFLOWCHECKS OFF} +{$RANGECHECKS OFF} +{$REFERENCEINFO ON} +{$SAFEDIVIDE OFF} +{$STACKFRAMES OFF} +{$TYPEDADDRESS ON} +{$VARSTRINGCHECKS ON} +{$WRITEABLECONST OFF} +{$MINENUMSIZE 1} +{$IMAGEBASE $400000} +{$DESCRIPTION 'Gecko Components'} +{$IMPLICITBUILD OFF} + +requires + rtl, + vcl, + GeckoSDK; + +contains + GeckoBrowser in 'GeckoBrowser.pas', + BrowserSupports in 'BrowserSupports.pas', + CallbackInterfaces in 'CallbackInterfaces.pas', + GeckoChromeWindow in 'GeckoChromeWindow.pas' {GeckoChromeForm}, + GeckoSimpleProfile in 'GeckoSimpleProfile.pas', + GeckoInit in 'GeckoInit.pas', + GeckoDirectoryService in 'GeckoDirectoryService.pas'; + +end. diff --git a/components/geckoport/version2/Components/GeckoComponents.dproj b/components/geckoport/version2/Components/GeckoComponents.dproj new file mode 100644 index 000000000..4377fe208 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.dproj @@ -0,0 +1,120 @@ +サソ + + {4978B162-26BE-441E-B790-751148DC88CC} + GeckoComponents.dpk + 繝繝舌ャ繧ー + DCC32 + 12.0 + + + true + + + true + Base + true + + + true + Base + true + + + 00400000 + 1 + true + GeckoComponents.bpl + true + x86 + Gecko Components + false + true + true + false + false + false + false + + + false + RELEASE;$(DCC_Define) + 0 + false + + + DEBUG;$(DCC_Define) + + + + MainSource + + + + + + + + +
GeckoChromeForm
+
+ + + + + Base + + + Cfg_2 + Base + + + Cfg_1 + Base + +
+ + + Delphi.Personality.12 + Package + + + + GeckoComponents.dpk + + + False + True + False + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1041 + 932 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + + 12 + +
diff --git a/components/geckoport/version2/Components/GeckoComponents.lpk b/components/geckoport/version2/Components/GeckoComponents.lpk new file mode 100755 index 000000000..6accd52d2 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.lpk @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/geckoport/version2/Components/GeckoComponents.pas b/components/geckoport/version2/Components/GeckoComponents.pas new file mode 100755 index 000000000..07fbe61dc --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.pas @@ -0,0 +1,25 @@ +{ This file was automatically created by Lazarus. Do not edit! + This source is only used to compile and install the package. + } + +unit GeckoComponents; + +interface + +uses + GeckoBrowser, GeckoChromeWindow, GeckoInit, nsCID, nsConsts, + nsEnumerators, nsError, nsErrorUtils, nsGeckoStrings, nsInit, nsMemory, + nsNetUtil, nsStream, nsTypes, nsXPCOM, nsXPCOMGlue, nsXRE, nsXPCOM_std19, + GeckoPromptService, LazarusPackageIntf; + +implementation + +procedure Register; +begin + RegisterUnit('GeckoBrowser', @GeckoBrowser.Register); + RegisterUnit('GeckoPromptService', @GeckoPromptService.Register); +end; + +initialization + RegisterPackage('GeckoComponents', @Register); +end. diff --git a/components/geckoport/version2/Components/GeckoComponents.template b/components/geckoport/version2/Components/GeckoComponents.template new file mode 100755 index 000000000..234a4f2ff --- /dev/null +++ b/components/geckoport/version2/Components/GeckoComponents.template @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/geckoport/version2/Components/GeckoDirectoryService.pas b/components/geckoport/version2/Components/GeckoDirectoryService.pas new file mode 100644 index 000000000..84101894a --- /dev/null +++ b/components/geckoport/version2/Components/GeckoDirectoryService.pas @@ -0,0 +1,302 @@ +unit GeckoDirectoryService; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +interface + +uses + SysUtils, Classes, nsXPCOM; + +type + TGeckoDirectoryServiceOnGetFile = function ( + const AProp: AnsiString): String of object; + TGeckoDirectoryServiceOnGetFileList = function ( + const AProp: AnsiString; AList: TStrings): Boolean of Object; + + TCustomDirectoryServiceProvider = class(TComponent) + private + { Private declarations } + FOnGetFile: TGeckoDirectoryServiceOnGetFile; + FOnGetFileList: TGeckoDirectoryServiceOnGetFileList; + FProxy: nsIDirectoryServiceProvider; + + function ProcessGetFile(const AProp: AnsiString; var APersistent: Boolean) + : String; + function ProcessGetFileList(const AProp: AnsiString; + AFileList: TStrings): Boolean; + property OnGetFile: TGeckoDirectoryServiceOnGetFile read FOnGetFile + write FOnGetFile; + property OnGetFileList: TGeckoDirectoryServiceOnGetFileList + read FOnGetFileList write FOnGetFileList; + protected + { Protected declarations } + public + { Public declarations } + constructor Create(AOwner: TComponent); override; + destructor Destroy; override; + published + { Published declarations } + end; + + TGeckoDirectoryServiceProvider = class(TCustomDirectoryServiceProvider) + private + { Private declarations } + FRegDir: AnsiString; + FRegFile: AnsiString; + FDefaultsDir: AnsiString; + FPrefDefaultsDir: AnsiString; + FProfileDefaultsDir: AnsiString; + FProfileDefaultsNlocDir: AnsiString; + + protected + { Protected declarations } + public + { Public declarations } + published + { Published declarations } + property OnGetFile; + end; + +procedure Register; + +implementation + +uses + nsTypes, nsInit, nsError, nsGeckoStrings, nsXPCOMGlue, nsCID, GeckoInit, + nsXPCOM_std19, nsEnumerators, Windows; + +type + TDirectoryServiceProviderProxy = class(TInterfacedObject, + nsIDirectoryServiceProvider_std19, + nsIDirectoryServiceProvider2_std19) + FOwner: TCustomDirectoryServiceProvider; + constructor Create(AOwner: TCustomDirectoryServiceProvider); + function GetFile(const prop: PAnsiChar; out persistent: PRBool; + out _retval: nsIFile_std19): nsresult; extdecl; + function GetFiles(const prop: PAnsiChar; + out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + end; + +procedure Register; +begin + RegisterComponents('Gecko', [TGeckoDirectoryServiceProvider]); +end; + +constructor TDirectoryServiceProviderProxy.Create( + AOwner: TCustomDirectoryServiceProvider); +begin + inherited Create; + FOwner := AOwner; +end; + +var + sModulePath: array[0..MAX_PATH] of Char; + sModulePathInitialized: Boolean = False; + +function GetModulePath: String; +begin + if not sModulePathInitialized then + begin + GetModuleFileName(0, sModulePath, MAX_PATH); + sModulePathInitialized := True; + end; + Result := PChar(@sModulePath); +end; + +function MakeILocalFile(const AFilename: String; + out ALocalFile: nsILocalFile): nsresult; +var + localFile: nsILocalFile; +{$ifndef UNICODE} + localFileStr: IInterfacedCString; +{$else} + localFileStr: IInterfacedString; +{$endif} + modulePath: String; + targetPath, relativePath: String; +begin + modulePath := GetModulePath; + + if (Length(AFilename)>0) and + (AFilename[1] = '\') then + begin + // case of Path from root or network path + if (Length(afilename)>=2) and + (afilename[2] <> '\') then + begin + // case of Path from root + targetPath := ExtractFileDrive(modulePath) + afilename; + end else + begin + // case of network path + targetPath := afilename; + end; + end else + if (Length(afilename)<3) or + (afilename[2] <> ':') then + begin + // case of relative path + targetPath := ExtractFileDir(modulePath); + if Length(afilename)>0 then + relativePath := afilename; + end else + begin + // case of full path + targetPath := afilename; + end; + + try +{$ifndef UNICODE} + localFileStr := NewCString(targetPath); +{$else} + localFileStr := NewString(targetPath); +{$endif} + except + Result := NS_ERROR_FAILURE; + Exit; + end; +{$ifndef UNICODE} + Result := NS_NewNativeLocalFile(localFileStr.ACString, True, localFile); +{$else} + Result := NS_NewLocalFile(localFileStr.AString, True, localFile); +{$endif} + if NS_FAILED(Result) then Exit; + + if Length(relativePath)>0 then + begin + localFileStr.Assign(relativePath); +{$ifndef UNICODE} + localFile.AppendRelativeNativePath(localFileStr.ACString); +{$else} + localFile.AppendRelativePath(localFileStr.AString); +{$endif} + end; + + Result := localFile.QueryInterface(nsILocalFile, ALocalFile); +end; + +function TDirectoryServiceProviderProxy.GetFile(const prop: PAnsiChar; + out persistent: PRBool; out _retval: nsIFile_std19): nsresult; +var + path: String; + localFile: nsILocalFile; + persist: Boolean; +begin + if Assigned(FOwner) then + begin + path := FOwner.ProcessGetFile(prop, persist); + if (Length(path)=0) and Assigned(FOwner.FOnGetFile) then + begin + path := FOwner.FOnGetFile(prop); + end; + end; + + if Length(path)=0 then + begin + Result := NS_ERROR_FAILURE; + end else + begin + Result := MakeILocalFile(path, localFile); + if NS_SUCCEEDED(Result) then + begin + Result := localFile.QueryInterface(nsIFile_std19, _retval); + end; + end; +end; + +function TDirectoryServiceProviderProxy.GetFiles(const prop: PAnsiChar; + out _retval: nsISimpleEnumerator_std19): nsresult; +var + enum: nsISimpleEnumerator; + lfile: nsILocalFile; + done: Boolean; + list: TStringList; + intfList: TInterfaceList; + i: Integer; +begin + list := TStringList.Create; + try + intfList := TInterfaceList.Create; + try + enum := NewSimpleEnumeratorFromTInterfaceList(intfList, True); + except + Result := NS_ERROR_FAILURE; + intfList.Free; + Exit; + end; + + if Assigned(FOwner) then + begin + Done := FOwner.ProcessGetFileList(prop, list); + if not Done then + begin + Result := NS_ERROR_FAILURE; + Exit; + end; + for i:=0 to list.Count -1 do + begin + Result := MakeILocalFile(list[i], lfile); + if NS_FAILED(Result) then + Exit; + intfList.Add(lfile); + end; + Result := enum.QueryInterface(nsISimpleEnumerator, _retval); + end else + begin + Result := NS_ERROR_FAILURE; + end; + finally + list.Free; + end; +end; + +constructor TCustomDirectoryServiceProvider.Create(AOwner: TComponent); +var + dirSrv: nsIDirectoryService; +begin + inherited; + + if not (csDesigning in ComponentState) then + begin + GeckoComponentsStartup; + + FProxy := TDirectoryServiceProviderProxy.Create(Self) + as nsIDirectoryServiceProvider; + NS_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, nsIDirectoryService, dirSrv); + dirSrv.RegisterProvider(FProxy); + end; +end; + +destructor TCustomDirectoryServiceProvider.Destroy; +var + dirSrv: nsIDirectoryService; +begin + if not (csDesigning in ComponentState) then + begin + NS_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, nsIDirectoryService, dirSrv); + dirSrv.UnregisterProvider(FProxy); + + GeckoComponentsShutdown; + end; + + inherited; +end; + +function TCustomDirectoryServiceProvider.ProcessGetFile(const AProp: AnsiString; + var APersistent: Boolean): String; +begin +end; + +function TCustomDirectoryServiceProvider.ProcessGetFileList( + const AProp: AnsiString; AFileList: TStrings): Boolean; +begin + Result := False; +end; + +end. diff --git a/components/geckoport/version2/Components/GeckoInit.pas b/components/geckoport/version2/Components/GeckoInit.pas new file mode 100644 index 000000000..a5f8c1ae8 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoInit.pas @@ -0,0 +1,72 @@ +unit GeckoInit; + +interface + +procedure GeckoComponentsStartup(XPComPath: string = ''); +procedure GeckoComponentsShutdown; + +implementation + +uses + nsXPCOM, nsInit, nsTypes, nsErrorUtils, nsError, + nsXPCOMGlue, nsXRE {$IFDEF MSWINDOWS}, Windows {$ENDIF}; + +var + sInitCount: Integer = 0; + +procedure GeckoComponentsStartup(XPComPath: string = ''); +const + NS_DIRECTORY_SERVICE_CID: TGUID = '{f00152d0-b40b-11d3-8c9c-000064657374}'; +var + rv: nsresult; + errorStr: AnsiString; + ServiceManager: nsIServiceManager; + DirectoryService: nsIDirectoryService; +begin + if sInitCount>0 then + begin + Inc(sInitCount); + Exit; + end; + + rv := XRE_Startup('1.9', True, '2.0', False, XPComPath); + + if NS_FAILED(rv) then + begin + errorStr := NS_GetErrorStringBundleKey(rv); + XPCOMGlueShutdown; + raise EGeckoError.Create(string(errorStr)); + end; + + //Register the service via Service Manager. + if not Assigned(GeckoEngineDirectoryService) then + GeckoEngineDirectoryService:=IDirectoryServiceProvider.Create; + NS_GetServiceManager(ServiceManager); + ServiceManager.GetService(NS_DIRECTORY_SERVICE_CID, DirectoryService,DirectoryService); + {$IFDEF LCLGTK2 AND defined(cpux86_64)} + //No register meanwhile the DirectoryService bug in Linux64 is not solved. + {$ELSE} + DirectoryService.RegisterProvider(GeckoEngineDirectoryService); + {$ENDIF} + + Inc(sInitCount); +end; + +procedure GeckoComponentsShutdown(); +begin + if sInitCount = 0 then + begin + raise EGeckoError.Create( + 'ERROR: Too many calls for GeckoComponentsShutdown then GeckoComponentsStartup'); + end; + + Dec(sInitCount); + + if sInitCount = 0 then + begin + XRE_Shutdown(); + end; +end; + +end. + diff --git a/components/geckoport/version2/Components/GeckoPromptService.pas b/components/geckoport/version2/Components/GeckoPromptService.pas new file mode 100644 index 000000000..611b12464 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoPromptService.pas @@ -0,0 +1,359 @@ +unit GeckoPromptService; + +{$mode objfpc}{$H+} + +interface + +uses + Classes, SysUtils, nsXPCOM, nsTypes; + +const + NS_PROMPT_SERVICE_CID: TGUID = '{a2112d6a-0e28-421f-b46a-25c0b308cbd0}'; + +type + TGeckoPromptAlert=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String) of object; + TGeckoPromptAlertCheck=procedure (Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; const aCheckMsg: UTF8String; out aCheckState: Boolean) of object; + TGeckoPromptConfirm=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; var aCancel: Boolean) of object; + TGeckoPromptConfirmCheck=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; const aCheckMsg: UTF8String; out aCheckState: Boolean; var aCancel: Boolean) of object; + TGeckoPromptConfirmEx=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; aButtonFlags: Cardinal; const aButton0Title: UTF8String; const aButton1Title: UTF8String; const aButton2Title: UTF8String; const aCheckMsg: UTF8String; out aCheckState: Boolean; out aSelectedButton) of object; + TGeckoPromptPrompt=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; var aValue: UTF8String; const aCheckMsg: UTF8String; var aCheckState: Boolean; var aCancel: Boolean) of object; + TGeckoPromptPromptUsernameAndPassword=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; out aUsername: UTF8String; out aPassword: UTF8String; const aCheckMsg: UTF8String; out aCheckState: Boolean; var aCancel: Boolean) of object; + TGeckoPromptPromptPassword=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; out aPassword: UTF8String; const aCheckMsg: UTF8String; out aCheckState: Boolean; var aCancel: Boolean) of object; + TGeckoPromptSelect=procedure(Sender: TObject; const aDialogTitle: UTF8String; const aText: UTF8String; aCount: Cardinal; const aSelectList_array; out aOutSelection: integer; var aCancel: Boolean) of object; + TGeckoPromptPromptAuth=procedure(Sender: TObject;const aChannel: nsIChannel;const level: integer;const authInfo: nsIAuthInformation;const checkboxLabel: UTF8String;var checkValue: Boolean; var aRetryOnFail: Boolean) of object; + TGeckoPromptAsyncPromptAuth=procedure(Sender: TObject;aChannel: nsIChannel;aCallback: nsIAuthPromptCallback;aContext: nsISupports;level: Cardinal;authInfo: nsIAuthInformation;checkboxLabel: UTF8String;var checkValue: Boolean; var nsICancelable) of object; + TGeckoPromptPromptAuthSimple=procedure(Sender: TObject;var aUserName,aPassword: UTF8String;const aCheckBoxText,aRealm: UTF8String;var aCheckValue: Boolean; var aRetryOnFail: Boolean) of object; + + { IPromptService } + + IPromptService = class (TInterfacedObject, + nsIPromptService, + nsIPromptService2) + private + public + //nsIPromptService + procedure Alert(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar); safecall; + procedure AlertCheck(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; + function Confirm(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; + function ConfirmCheck(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function ConfirmEx(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; + function Prompt(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; var aValue: PWideChar; const aCheckMsg: PWideChar; var aCheckState: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptPassword(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function Select(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; + //nsIPromptService2 + function PromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; level: PRUint32; authInfo: nsIAuthInformation; const checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall; + function AsyncPromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; aCallback: nsIAuthPromptCallback; aContext: nsISupports; level: PRUint32; authInfo: nsIAuthInformation; const checkboxLabel: PWideChar; var checkValue: LongBool): nsICancelable; safecall; + end; + + { IPromptServiceFactory } + + IPromptServiceFactory = class(TInterfacedObject,nsIFactory) + procedure CreateInstance(aOuter: nsISupports; constref iid: TGUID; out _result); safecall; + procedure LockFactory(lock: PRBool); safecall; + end; + + TCustomGeckoPrompt=class(TComponent) + private + protected + FOnAlert: TGeckoPromptAlert; + FOnAlertCheck: TGeckoPromptAlertCheck; + FOnConfirm: TGeckoPromptConfirm; + FOnConfirmCheck: TGeckoPromptConfirmCheck; + FOnConfirmEx: TGeckoPromptConfirmEx; + FOnPrompt: TGeckoPromptPrompt; + FOnPromptUsernameAndPassword: TGeckoPromptPromptUsernameAndPassword; + FOnPromptPassword: TGeckoPromptPromptPassword; + FOnSelect: TGeckoPromptSelect; + FOnPromptAuth: TGeckoPromptPromptAuth; + FOnAsyncPromptAuth: TGeckoPromptAsyncPromptAuth; + FOnPromptAuthSimple: TGeckoPromptPromptAuthSimple; + public + property Alert: TGeckoPromptAlert + read FOnAlert write FOnAlert; + property AlertCheck: TGeckoPromptAlertCheck + read FOnAlertCheck write FOnAlertCheck; + property Confirm: TGeckoPromptConfirm + read FOnConfirm write FOnConfirm; + property ConfirmCheck: TGeckoPromptConfirmCheck + read FOnConfirmCheck write FOnConfirmCheck; + property ConfirmEx: TGeckoPromptConfirmEx + read FOnConfirmEx write FOnConfirmEx; + property Prompt: TGeckoPromptPrompt + read FOnPrompt write FOnPrompt; + property PromptUsernameAndPassword: TGeckoPromptPromptUsernameAndPassword + read FOnPromptUsernameAndPassword write FOnPromptUsernameAndPassword; + property PromptPassword: TGeckoPromptPromptPassword + read FOnPromptPassword write FOnPromptPassword; + property Select: TGeckoPromptSelect + read FOnSelect write FOnSelect; + property PromptAuth: TGeckoPromptPromptAuth + read FOnPromptAuth write FOnPromptAuth; + property AsyncPromptAuth: TGeckoPromptAsyncPromptAuth + read FOnAsyncPromptAuth write FOnAsyncPromptAuth; + property PromptAuthSimple: TGeckoPromptPromptAuthSimple + read FOnPromptAuthSimple write FOnPromptAuthSimple; + end; + + TGeckoPrompt=class(TCustomGeckoPrompt) + private + protected + public + published + property Alert; + property AlertCheck; + property Confirm; + property ConfirmCheck; + property ConfirmEx; + property Prompt; + property PromptUsernameAndPassword; + property PromptPassword; + property Select; + property PromptAuth; + property AsyncPromptAuth; + property PromptAuthSimple; + end; + + procedure RegisterPromptService; + +procedure Register; + +implementation + +uses nsInit,nsGeckoStrings,GeckoBrowser,nsMemory; + +var + GeckoPromptServiceFactory: IPromptServiceFactory; + ThisGeckoPromptService: IPromptService; + +procedure Register; +begin + RegisterComponents('Gecko', [TGeckoPrompt]); +end; + +function UnImplemented: Boolean; +begin + (* + This warning only appears when used in the Lazarus IDE. + Otherwise the exception is eaten by the try...except and + default behavior is executed. + *) + try + Raise exception.Create('GeckoPort unimplemented feature in TGeckoPrompt. Please report at http://sourceforge.net/projects/lazarus-ccr/ or at http://forum.lazarus.freepascal.org/'); + except + end; + Result:=false; +end; + +procedure nsParamStringUpdate(var pwParamString: PWideChar; const aNewString: UTF8String); +var + wNewString: WideString; + BufferSize: SizeInt; +begin + if Assigned(pwParamString) then begin + nsMemory.Free(pwParamString); + pwParamString:=nil; + end; + if Length(aNewString)>0 then begin + wNewString:=UTF8Decode(aNewString); + BufferSize:=(Length(wNewString)+1)*sizeof(wNewString[1]); //chars + 1 NULL + pwParamString:=nsMemory.Alloc(BufferSize); + move(wNewString[1],pwParamString^,BufferSize); + end; +end; + +function FindAssociatedPromptService(const aParent: nsIDOMWindow; out AGecko: TGeckoBrowser): TGeckoPrompt; +var + Gecko: TGeckoBrowser; +begin + Gecko:=TGeckoBrowser.GetGeckoBrowserWithDOMWindow(aParent); + if Assigned(Gecko) then begin + Result:=Gecko.Prompt; + AGecko:=Gecko; + end else begin + Result:=nil; + AGecko:=nil; + end; +end; + +procedure RegisterPromptService; +var + PromptService: nsIPromptService; + ComponentRegistrar: nsIComponentRegistrar; +begin + if not Assigned(GeckoPromptServiceFactory) then begin + NS_GetComponentRegistrar(ComponentRegistrar); + GeckoPromptServiceFactory:=IPromptServiceFactory.Create; + ComponentRegistrar.RegisterFactory(NS_PROMPT_SERVICE_CID,'Prompt Service',nil,GeckoPromptServiceFactory); + end; +end; + +{ IPromptService } + +procedure IPromptService.Alert(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar); safecall; +begin + Unimplemented; +end; + +procedure IPromptService.AlertCheck(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; + const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; +begin + Unimplemented; +end; + +function IPromptService.Confirm(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; +begin + Result:=Unimplemented; +end; + +function IPromptService.ConfirmCheck(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; + const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; +begin + Result:=Unimplemented; +end; + +function IPromptService.ConfirmEx(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; + aButtonFlags: PRUint32; const aButton0Title: PWideChar; + const aButton1Title: PWideChar; const aButton2Title: PWideChar; + const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; +begin + UnImplemented; + Result:=0; +end; + +function IPromptService.Prompt(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; var aValue: PWideChar; + const aCheckMsg: PWideChar; var aCheckState: PRBool): PRBool; safecall; +var + ThePrompt: TGeckoPrompt; + Gecko: TGeckoBrowser; + TheValue: UTF8String; + Cancel: Boolean; + CheckState: Boolean; +begin + Result:=false; + ThePrompt:=FindAssociatedPromptService(aParent,Gecko); + if Assigned(ThePrompt) then begin + if Assigned(ThePrompt.FOnPrompt) then begin + TheValue:=UTF8Encode(WideString(aValue)); + CheckState:=aCheckState; + Cancel:=false; + ThePrompt.FOnPrompt(Gecko, + UTF8Encode(WideString(aDialogTitle)), + UTF8Encode(WideString(aText)), + TheValue, + UTF8Encode(WideString(aCheckMsg)), + CheckState, + Cancel); + Result:=not Cancel; + if Result then begin + nsParamStringUpdate(aValue,TheValue); + aCheckState:=CheckState; + end; + end; + end; +end; + +function IPromptService.PromptUsernameAndPassword(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; out + aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; + out aCheckState: PRBool): PRBool; safecall; +begin + Result:=Unimplemented; +end; + +function IPromptService.PromptPassword(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; out + aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool + ): PRBool; safecall; +begin + Result:=Unimplemented; +end; + +function IPromptService.Select(aParent: nsIDOMWindow; + const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; + const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; +begin + Result:=Unimplemented; +end; + +function IPromptService.PromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; + level: PRUint32; authInfo: nsIAuthInformation; + const checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall; +var + ThePrompt: TGeckoPrompt; + Gecko: TGeckoBrowser; + RetryOnFail: Boolean; + UserName, Password, + Realm: IInterfacedString; + CheckBoxValue: Boolean; + pUserName,pPassword: UTF8String; + Flags: PRUint32; +begin + Result:=false; + ThePrompt:=FindAssociatedPromptService(aParent,Gecko); + if Assigned(ThePrompt) then begin + if Assigned(ThePrompt.FOnPromptAuth) then begin + //Full Auth mode + RetryOnFail:=false; + CheckBoxValue:=checkValue; + ThePrompt.FOnPromptAuth(Gecko,aChannel,Level,authInfo,UTF8Encode(WideString(checkboxLabel)),CheckBoxValue,RetryOnFail); + checkValue:=CheckBoxValue; + Result:=RetryOnFail; + end else if Assigned(ThePrompt.FOnPromptAuthSimple) then begin + //Simple Auth mode only for host, proxy and others must be handled by OnPromptAuth + authInfo.GetFlags(Flags); + if (Flags and not(NS_IAUTHINFORMATION_AUTH_HOST))=0 then begin + UserName:=NewString; + Password:=NewString; + Realm:=NewString; + authInfo.GetUsername(UserName.AString); + authInfo.GetPassword(Password.AString); + authInfo.GetRealm(Realm.AString); + pUserName:=UTF8Encode(UserName.ToString); + pPassword:=UTF8Encode(Password.ToString); + CheckBoxValue:=checkValue; + RetryOnFail:=false; + ThePrompt.FOnPromptAuthSimple(Gecko,pUserName,pPassword,UTF8Encode(WideString(checkboxLabel)),UTF8Encode(Realm.ToString),CheckBoxValue,RetryOnFail); + Result:=RetryOnFail; + UserName.Assign(UTF8Decode(pUserName)); + Password.Assign(UTF8Decode(pPassword)); + checkValue:=CheckBoxValue; + authInfo.SetUsername(UserName.AString); + authInfo.SetPassword(Password.AString); + end; + end; + end; +end; + +function IPromptService.AsyncPromptAuth(aParent: nsIDOMWindow; + aChannel: nsIChannel; aCallback: nsIAuthPromptCallback; + aContext: nsISupports; level: PRUint32; authInfo: nsIAuthInformation; + const checkboxLabel: PWideChar; var checkValue: LongBool): nsICancelable; safecall; +begin + Result:=nil; +end; + +{ IPromptServiceFactory } + +procedure IPromptServiceFactory.CreateInstance(aOuter: nsISupports; constref + iid: TGUID; out _result); safecall; +begin + if not Assigned(ThisGeckoPromptService) then + ThisGeckoPromptService:=IPromptService.Create; + ThisGeckoPromptService.QueryInterface(IID,_result); +end; + +procedure IPromptServiceFactory.LockFactory(lock: PRBool); safecall; +begin + //Unused by Gecko but keep to be ABI compatible in Win32. +end; + + +end. + diff --git a/components/geckoport/version2/Components/GeckoSimpleProfile.pas b/components/geckoport/version2/Components/GeckoSimpleProfile.pas new file mode 100644 index 000000000..56d635553 --- /dev/null +++ b/components/geckoport/version2/Components/GeckoSimpleProfile.pas @@ -0,0 +1,241 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoComponents for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit GeckoSimpleProfile; + +interface + +uses + Windows, Messages, SysUtils, Classes; + +type + TGeckoSimpleProfile = class(TComponent) + private + { Private 宣言 } + procedure SetProfileBaseDirectory(Value: String); + function GetProfileBaseDirectory: String; + protected + { Protected 宣言 } + public + { Public 宣言 } + constructor Create(AOwner: TComponent); override; + destructor Destroy; override; + published + { Published 宣言 } + property ProfileBaseDirectory: String + read GetProfileBaseDirectory + write SetProfileBaseDirectory; + end; + +procedure Register; + +implementation + +uses + nsXPCOM, nsXPCOMGlue, nsError, nsGeckoStrings, nsProfile, nsTypes, nsInit, + GeckoInit; + +procedure Register; +begin + RegisterComponents('Gecko', [TGeckoSimpleProfile]); +end; + +var + sProfileDirServiceProvider: nsProfileDirServiceProvider; + sProfileBaseDirectory: String; + sRefCnt: Integer = 0; + +procedure ChangeProfileBaseDirectory; forward; +procedure SavePreferences; forward; +procedure LoadPreferences; forward; + +constructor TGeckoSimpleProfile.Create(AOwner: TComponent); +var + provider: nsProfileDirServiceProvider; +begin + inherited Create(AOwner); + + if not (csDesigning in ComponentState) then + begin + GeckoComponentsStartup; + + if not Assigned(sProfileDirServiceProvider) then + begin + provider := NS_NewProfileDirServiceProvider(True); + + sProfileDirServiceProvider := provider; + + //if Length(sProfileBaseDirectory)>0 then + ChangeProfileBaseDirectory; + sProfileDirServiceProvider.Register; + end; + Inc(sRefCnt); + end; +end; + +destructor TGeckoSimpleProfile.Destroy; +begin + if not (csDesigning in ComponentState) then + begin + SavePreferences; + + Dec(sRefCnt); + if sRefCnt=0 then + sProfileDirServiceProvider := nil; + + GeckoComponentsShutdown; + end; + + inherited; +end; + +procedure TGeckoSimpleProfile.SetProfileBaseDirectory(Value: String); +begin + if Value = sProfileBaseDirectory then Exit; + + sProfileBaseDirectory := Value; + + if not (csDesigning in ComponentState) then + begin + ChangeProfileBaseDirectory; + LoadPreferences; + end; +end; + +function TGeckoSimpleProfile.GetProfileBaseDirectory: String; +begin + Result := sProfileBaseDirectory; +end; + +procedure ChangeProfileBaseDirectory; +var + rv: nsresult; + localFile: nsILocalFile; +{$ifndef UNICODE} + localFileStr: IInterfacedCString; +{$else} + localFileStr: IInterfacedString; +{$endif} + modulePath: array[0..MAX_PATH] of Char; + targetPath, relativePath: String; +begin + GetModuleFileName(0, modulePath, MAX_PATH); + + if (Length(sProfileBaseDirectory)>0) and + (sProfileBaseDirectory[1] = '\') then + begin + // case of Path from root or network path + if (Length(sProfileBaseDirectory)>=2) and + (sProfileBaseDirectory[2] <> '\') then + begin + // case of Path from root + targetPath := ExtractFileDrive(modulePath) + sProfileBaseDirectory; + end else + begin + // case of network path + targetPath := sProfileBaseDirectory; + end; + end else + if (Length(sProfileBaseDirectory)<3) or + (sProfileBaseDirectory[2] <> ':') then + begin + // case of relative path + targetPath := ExtractFileDir(modulePath); + if Length(sProfileBaseDirectory)>0 then + relativePath := sProfileBaseDirectory; + end else + begin + // case of full path + targetPath := sProfileBaseDirectory; + end; + + try +{$ifndef UNICODE} + localFileStr := NewCString(targetPath); +{$else} + localFileStr := NewString(targetPath); +{$endif} + except + Exit; + end; +{$ifndef UNICODE} + rv := NS_NewNativeLocalFile(localFileStr.ACString, True, localFile); +{$else} + rv := NS_NewLocalFile(localFileStr.AString, True, localFile); +{$endif} + if NS_FAILED(rv) then Exit; + + if Length(relativePath)>0 then + begin + localFileStr.Assign(relativePath); +{$ifndef UNICODE} + localFile.AppendRelativeNativePath(localFileStr.ACString); +{$else} + localFile.AppendRelativePath(localFileStr.AString); +{$endif} + end; + + sProfileDirServiceProvider.SetProfileDir(localFile); +end; + +procedure SavePreferences; +var + prefSrv: nsIPrefService; + prefFile: nsIFile; +begin + NS_GetService(NS_PREFSERVICE_CID, nsIPrefService, prefSrv); + prefFile := NS_GetSpecialDirectory(NS_APP_PREFS_50_FILE); + prefSrv.SavePrefFile(prefFile); +end; + +procedure LoadPreferences; +var + prefSrv: nsIPrefService; + prefFile, prefDir: nsIFile; +begin + NS_GetService(NS_PREFSERVICE_CID, nsIPrefService, prefSrv); + prefDir := NS_GetSpecialDirectory(NS_APP_PREFS_50_DIR); + if not prefDir.Exists then + begin + prefDir.Create(NS_IFILE_DIRECTORY_TYPE, 7*64+5*8+5); + end; + prefFile := NS_GetSpecialDirectory(NS_APP_PREFS_50_FILE); + prefSrv.ResetPrefs; + if prefFile.Exists then + begin + prefSrv.ReadUserPrefs(prefFile); + end; +end; + +end. diff --git a/components/geckoport/version2/Components/TGeckoBrowser.bmp b/components/geckoport/version2/Components/TGeckoBrowser.bmp new file mode 100755 index 000000000..6d10e19da Binary files /dev/null and b/components/geckoport/version2/Components/TGeckoBrowser.bmp differ diff --git a/components/geckoport/version2/Components/TGeckoPrompt.bmp b/components/geckoport/version2/Components/TGeckoPrompt.bmp new file mode 100644 index 000000000..f49ac2ff1 Binary files /dev/null and b/components/geckoport/version2/Components/TGeckoPrompt.bmp differ diff --git a/components/geckoport/version2/Components/gecko-logo.png b/components/geckoport/version2/Components/gecko-logo.png new file mode 100644 index 000000000..0c03931c8 Binary files /dev/null and b/components/geckoport/version2/Components/gecko-logo.png differ diff --git a/components/geckoport/version2/Components/geckologo.png b/components/geckoport/version2/Components/geckologo.png new file mode 100644 index 000000000..0c03931c8 Binary files /dev/null and b/components/geckoport/version2/Components/geckologo.png differ diff --git a/components/geckoport/version2/Components/geckoresources.rc b/components/geckoport/version2/Components/geckoresources.rc new file mode 100644 index 000000000..6628d1332 --- /dev/null +++ b/components/geckoport/version2/Components/geckoresources.rc @@ -0,0 +1 @@ +ID_GECKO_LOGO RCDATA geckologo.png diff --git a/components/geckoport/version2/GeckoSDK.bdsproj b/components/geckoport/version2/GeckoSDK.bdsproj new file mode 100644 index 000000000..0d2e6b70c --- /dev/null +++ b/components/geckoport/version2/GeckoSDK.bdsproj @@ -0,0 +1,175 @@ +サソ + + + + + + + + + + + GeckoSDK.dpk + + + 7.0 + + + 8 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 0 + 0 + 0 + 1 + 0 + 1 + 0 + 1 + 1 + 1 + True + True + WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; + + False + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + False + False + False + True + True + True + True + True + True + + + + 0 + 0 + False + 1 + False + False + False + 16384 + 1048576 + 4194304 + Gecko SDK + + + + + + + + + + + False + + + + + + False + + + True + False + + + + $00000000 + + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1041 + 932 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + diff --git a/components/geckoport/version2/GeckoSDK.dpk b/components/geckoport/version2/GeckoSDK.dpk new file mode 100644 index 000000000..7a74065e5 --- /dev/null +++ b/components/geckoport/version2/GeckoSDK.dpk @@ -0,0 +1,90 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is nesitive thinking. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +package GeckoSDK; + +{$R *.res} +{$ALIGN 8} +{$ASSERTIONS ON} +{$BOOLEVAL OFF} +{$DEBUGINFO ON} +{$EXTENDEDSYNTAX ON} +{$IMPORTEDDATA ON} +{$IOCHECKS ON} +{$LOCALSYMBOLS ON} +{$LONGSTRINGS ON} +{$OPENSTRINGS ON} +{$OPTIMIZATION ON} +{$OVERFLOWCHECKS OFF} +{$RANGECHECKS OFF} +{$REFERENCEINFO ON} +{$SAFEDIVIDE OFF} +{$STACKFRAMES OFF} +{$TYPEDADDRESS ON} +{$VARSTRINGCHECKS ON} +{$WRITEABLECONST OFF} +{$MINENUMSIZE 1} +{$IMAGEBASE $400000} +{$DESCRIPTION 'Gecko SDK'} +{$IMPLICITBUILD OFF} + +requires + rtl; + +contains + nsGeckoStrings in 'nsGeckoStrings.pas', + nsInit in 'nsInit.pas', + nsTypes in 'nsTypes.pas', + nsXPCOM in 'nsXPCOM.pas', + nsError in 'nsError.pas', + nsMemory in 'nsMemory.pas', + nsXPCOMGlue in 'nsXPCOMGlue.pas', + nsConsts in 'nsConsts.pas', + nsStream in 'nsStream.pas', + nsNetUtil in 'nsNetUtil.pas', + nsCID in 'nsCID.pas', + nsProfile in 'nsProfile.pas', + nsThreadUtils in 'nsThreadUtils.pas', + nsErrorUtils in 'nsErrorUtils.pas', + nsEnumerators in 'nsEnumerators.pas', + nsXRE in 'nsXRE.pas', + nsXPCOM_SAFE17 in 'each-version\nsXPCOM_SAFE17.pas', + nsXPCOM_SAFE18 in 'each-version\nsXPCOM_SAFE18.pas', + nsXPCOM_SAFE19 in 'each-version\nsXPCOM_SAFE19.pas', + nsXPCOM_STD17 in 'each-version\nsXPCOM_STD17.pas', + nsXPCOM_STD18 in 'each-version\nsXPCOM_STD18.pas', + nsXPCOM_STD19 in 'each-version\nsXPCOM_STD19.pas'; + +end. diff --git a/components/geckoport/version2/GeckoSDK.dproj b/components/geckoport/version2/GeckoSDK.dproj new file mode 100644 index 000000000..70c28cc08 --- /dev/null +++ b/components/geckoport/version2/GeckoSDK.dproj @@ -0,0 +1,131 @@ +サソ + + {837DBBFA-811B-4411-BA56-1CA066D4D735} + GeckoSDK.dpk + 繝繝舌ャ繧ー + DCC32 + 12.0 + + + true + + + true + Base + true + + + true + Base + true + + + 00400000 + 1 + true + ..\..\..\..\..\..\..\All Users\Documents\RAD Studio\6.0\Bpl\GeckoSDK.bpl + true + x86 + Gecko SDK + false + true + true + false + false + false + false + + + false + RELEASE;$(DCC_Define) + 0 + false + + + DEBUG;$(DCC_Define) + + + + MainSource + + + + + + + + + + + + + + + + + + + + + + + + + + Base + + + Cfg_2 + Base + + + Cfg_1 + Base + + + + + Delphi.Personality.12 + Package + + + + GeckoSDK.dpk + + + False + True + False + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1041 + 932 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + + 12 + + diff --git a/components/geckoport/version2/SampleApps/ChromeWin.dpr b/components/geckoport/version2/SampleApps/ChromeWin.dpr new file mode 100755 index 000000000..0f3b05bf2 --- /dev/null +++ b/components/geckoport/version2/SampleApps/ChromeWin.dpr @@ -0,0 +1,39 @@ +program ChromeWin; + +uses +{$IFDEF LCL} + Interfaces, + {$IFDEF MSWINDOWS} + Math, + {$ENDIF} +{$ENDIF} + Forms, + nsXRE, + BrowserSupports, + GeckoChromeWindow in 'GeckoChromeWindow.pas' {GeckoChromeForm}; + +//{$IFDEF MSWINDOWS} +//{$R *.res} +//{$ENDIF} + +var + navigation: nsIWebNavigation; +begin +{$IFDEF FPC} + {$IFDEF MSWINDOWS} + //For now - disable all floating point exceptions or XULRUNNER will crash. + SetExceptionMask([exInvalidOp,exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision]); + {$ENDIF} +{$ENDIF} + + Application.Initialize; + + XRE_Startup('1.9', True, '2.0', False); + +// GeckoChromeForm := TGeckoChromeForm.CreateWithChromeFlags(Application, 0); + Application.CreateForm(TGeckoChromeForm, GeckoChromeForm); + navigation := GeckoChromeForm.WebBrowser as nsIWebNavigation; + navigation.LoadURI('http://www.lazarus.freepascal.org', 0, nil, nil, nil); + + Application.Run; +end. diff --git a/components/geckoport/version2/SampleApps/ChromeWin.lpi b/components/geckoport/version2/SampleApps/ChromeWin.lpi new file mode 100755 index 000000000..115b3b2f8 --- /dev/null +++ b/components/geckoport/version2/SampleApps/ChromeWin.lpi @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/geckoport/version2/SampleApps/GBrowser.bdsproj b/components/geckoport/version2/SampleApps/GBrowser.bdsproj new file mode 100755 index 000000000..691113b84 --- /dev/null +++ b/components/geckoport/version2/SampleApps/GBrowser.bdsproj @@ -0,0 +1,173 @@ +サソ + + + + + + + + + + + GBrowser.dpr + + + 7.0 + + + 8 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + True + True + WinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; + + False + + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + True + False + False + False + True + True + True + + + 0 + 0 + 1 + False + False + False + 16384 + 1048576 + 4194304 + + + + C:\B2005\GeckoSDK\Gre + + + + + rtl;vcl;dbrtl;vcldb;vclx;adortl;dbxcds;dbexpress;vclib;ibxpress;IntrawebDB_72_90;Intraweb_72_90;xmlrtl;vclie;inet;inetdbbde;inetdbxpress;IndySystem;IndyCore;dclOfficeXP;VclSmp;dsnap;soaprtl;IndyProtocols;inetdb;bdertl;vcldbx;webdsnap;websnap;vclactnband;vclshlctrls;dsnapcon;teeui;teedb;tee;Rave60VCL;IE_EventD2005;O405_r70;IEDownD2005;TMSD2005;nplug;GeckoSDK;GeckoComponents + + + False + + + + + + False + + + + + + False + + + + $00000000 + + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1033 + 1252 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + diff --git a/components/geckoport/version2/SampleApps/GBrowser.cfg b/components/geckoport/version2/SampleApps/GBrowser.cfg new file mode 100755 index 000000000..141bafb5b --- /dev/null +++ b/components/geckoport/version2/SampleApps/GBrowser.cfg @@ -0,0 +1,39 @@ +-$A8 +-$B- +-$C+ +-$D+ +-$E- +-$F- +-$G+ +-$H+ +-$I+ +-$J- +-$K- +-$L+ +-$M- +-$N+ +-$O+ +-$P+ +-$Q- +-$R- +-$S- +-$T- +-$U- +-$V+ +-$W- +-$X+ +-$YD +-$Z1 +-cg +-AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE; +-H+ +-W+ +-M +-$M16384,1048576 +-K$00400000 +-E"C:\B2005\GeckoSDK\Gre" +-LE"C:\Documents and Settings\Jaya\My Documents\Borland Studio Projects\Bpl" +-LN"C:\Documents and Settings\Jaya\My Documents\Borland Studio Projects\Bpl" +-w-UNSAFE_TYPE +-w-UNSAFE_CODE +-w-UNSAFE_CAST diff --git a/components/geckoport/version2/SampleApps/GBrowser.compiled b/components/geckoport/version2/SampleApps/GBrowser.compiled new file mode 100644 index 000000000..aba18d750 --- /dev/null +++ b/components/geckoport/version2/SampleApps/GBrowser.compiled @@ -0,0 +1,5 @@ + + + + + diff --git a/components/geckoport/version2/SampleApps/GBrowser.dpr b/components/geckoport/version2/SampleApps/GBrowser.dpr new file mode 100644 index 000000000..923e9ff24 --- /dev/null +++ b/components/geckoport/version2/SampleApps/GBrowser.dpr @@ -0,0 +1,28 @@ +program GBrowser; + +uses +{$IFDEF LCL} + Interfaces, + {$IFDEF MSWINDOWS} + Math, + {$ENDIF} +{$ENDIF} + Forms, + gec10 in 'gec10.pas' {Form1}; + +{$IFDEF MSWINDOWS} +{$R *.res} +{$ENDIF} + +begin +{$IFDEF FPC} + {$IFDEF MSWINDOWS} + //For now - disable all floating point exceptions or XULRUNNER will crash. + SetExceptionMask([exInvalidOp,exDenormalized,exZeroDivide,exOverflow,exUnderflow,exPrecision]); + {$ENDIF} +{$ENDIF} + + Application.Initialize; + Application.CreateForm(TForm1, Form1); + Application.Run; +end. diff --git a/components/geckoport/version2/SampleApps/GBrowser.lpi b/components/geckoport/version2/SampleApps/GBrowser.lpi new file mode 100755 index 000000000..fb9cf3e62 --- /dev/null +++ b/components/geckoport/version2/SampleApps/GBrowser.lpi @@ -0,0 +1,105 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/components/geckoport/version2/SampleApps/GBrowser.res b/components/geckoport/version2/SampleApps/GBrowser.res new file mode 100755 index 000000000..28e53612c Binary files /dev/null and b/components/geckoport/version2/SampleApps/GBrowser.res differ diff --git a/components/geckoport/version2/SampleApps/gec10.dfm b/components/geckoport/version2/SampleApps/gec10.dfm new file mode 100755 index 000000000..9842288ee --- /dev/null +++ b/components/geckoport/version2/SampleApps/gec10.dfm @@ -0,0 +1,50 @@ +object Form1: TForm1 + Left = 0 + Top = 0 + Width = 674 + Height = 461 + Caption = 'Form1' + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -11 + Font.Name = 'Tahoma' + Font.Style = [] + OldCreateOrder = False + OnShow = FormShow + PixelsPerInch = 96 + TextHeight = 13 + object lblProg: TLabel + Left = 296 + Top = 400 + Width = 32 + Height = 13 + Caption = 'lblProg' + end + object lblProgMax: TLabel + Left = 352 + Top = 400 + Width = 52 + Height = 13 + Caption = 'lblProgMax' + end + object GeckoBrowser1: TGeckoBrowser + Left = 0 + Top = 16 + Width = 665 + Height = 257 + TabOrder = 0 + TabStop = False + OnStatusChange = GeckoBrowser1StatusChange + OnProgressChange = GeckoBrowser1ProgressChange + OnLocationChange = GeckoBrowser1LocationChange + end + object ListBox1: TListBox + Left = 0 + Top = 280 + Width = 665 + Height = 113 + ItemHeight = 13 + TabOrder = 1 + end +end diff --git a/components/geckoport/version2/SampleApps/gec10.lfm b/components/geckoport/version2/SampleApps/gec10.lfm new file mode 100644 index 000000000..4622f66be --- /dev/null +++ b/components/geckoport/version2/SampleApps/gec10.lfm @@ -0,0 +1,48 @@ +object Form1: TForm1 + Left = 0 + Top = 0 + Width = 666 + Height = 427 + Caption = 'Form1' + Color = clBtnFace + Font.Charset = DEFAULT_CHARSET + Font.Color = clWindowText + Font.Height = -11 + Font.Name = 'Tahoma' + Font.Style = [] + OnShow = FormShow + PixelsPerInch = 96 + object lblProg: TLabel + Left = 296 + Top = 400 + Width = 32 + Height = 13 + Caption = 'lblProg' + end + object lblProgMax: TLabel + Left = 352 + Top = 400 + Width = 52 + Height = 13 + Caption = 'lblProgMax' + end + object GeckoBrowser1: TGeckoBrowser + Left = 0 + Top = 16 + Width = 665 + Height = 257 + TabOrder = 0 + TabStop = False + OnStatusChange = GeckoBrowser1StatusChange + OnProgressChange = GeckoBrowser1ProgressChange + OnLocationChange = GeckoBrowser1LocationChange + end + object ListBox1: TListBox + Left = 0 + Top = 280 + Width = 665 + Height = 113 + ItemHeight = 13 + TabOrder = 1 + end +end diff --git a/components/geckoport/version2/SampleApps/gec10.lrs b/components/geckoport/version2/SampleApps/gec10.lrs new file mode 100644 index 000000000..0ff915d48 --- /dev/null +++ b/components/geckoport/version2/SampleApps/gec10.lrs @@ -0,0 +1,15 @@ +LazarusResources.Add('TForm1','FORMDATA',[ + 'TPF0'#6'TForm1'#5'Form1'#4'Left'#2#0#3'Top'#2#0#5'Width'#3#154#2#6'Height'#3 + +#171#1#7'Caption'#6#5'Form1'#5'Color'#7#9'clBtnFace'#12'Font.Charset'#7#15'D' + +'EFAULT_CHARSET'#10'Font.Color'#7#12'clWindowText'#11'Font.Height'#2#245#9'F' + +'ont.Name'#6#6'Tahoma'#10'Font.Style'#11#0#6'OnShow'#7#8'FormShow'#13'Pixels' + +'PerInch'#2'`'#0#6'TLabel'#7'lblProg'#4'Left'#3'('#1#3'Top'#3#144#1#5'Width' + +#2' '#6'Height'#2#13#7'Caption'#6#7'lblProg'#0#0#6'TLabel'#10'lblProgMax'#4 + +'Left'#3'`'#1#3'Top'#3#144#1#5'Width'#2'4'#6'Height'#2#13#7'Caption'#6#10'lb' + +'lProgMax'#0#0#13'TGeckoBrowser'#13'GeckoBrowser1'#4'Left'#2#0#3'Top'#2#16#5 + +'Width'#3#153#2#6'Height'#3#1#1#8'TabOrder'#2#0#7'TabStop'#8#14'OnStatusChan' + +'ge'#7#25'GeckoBrowser1StatusChange'#16'OnProgressChange'#7#27'GeckoBrowser1' + +'ProgressChange'#16'OnLocationChange'#7#27'GeckoBrowser1LocationChange'#0#0#8 + +'TListBox'#8'ListBox1'#4'Left'#2#0#3'Top'#3#24#1#5'Width'#3#153#2#6'Height'#2 + +'q'#10'ItemHeight'#2#13#8'TabOrder'#2#1#0#0#0 +]); diff --git a/components/geckoport/version2/SampleApps/gec10.pas b/components/geckoport/version2/SampleApps/gec10.pas new file mode 100755 index 000000000..ac64cfdef --- /dev/null +++ b/components/geckoport/version2/SampleApps/gec10.pas @@ -0,0 +1,69 @@ +unit gec10; + +interface + +uses + {$IFNDEF LCL} Windows, Messages, {$ELSE} LclIntf, LMessages, LclType, LResources, {$ENDIF} + SysUtils, Variants, Classes, Graphics, Controls, Forms, + Dialogs, GeckoBrowser, StdCtrls; + +type + TForm1 = class(TForm) + GeckoBrowser1: TGeckoBrowser; + ListBox1: TListBox; + lblProg: TLabel; + lblProgMax: TLabel; + procedure GeckoBrowser1LocationChange(Sender: TObject; const uri: string); + procedure GeckoBrowser1ProgressChange(Sender: TObject; Progress, + ProgressMax: Integer); + procedure GeckoBrowser1StatusChange(Sender: TObject; + aMessage: WideString); + procedure FormShow(Sender: TObject); + private + { Private declarations } + public + { Public declarations } + end; + +var + Form1: TForm1; + +implementation + +{$IFNDEF LCL} +{$R *.dfm} +{$ENDIF} + +procedure TForm1.FormShow(Sender: TObject); +begin +// GeckoBrowser1.LoadURI('http://www.yahoo.com', 0, '', '', ''); + GeckoBrowser1.LoadURI('http://www.lazarus.freepascal.org'); +end; + +procedure TForm1.GeckoBrowser1StatusChange(Sender: TObject; + aMessage: WideString); +begin + ListBox1.Items.Add(aMessage); + Application.ProcessMessages; +end; + +procedure TForm1.GeckoBrowser1ProgressChange(Sender: TObject; Progress, + ProgressMax: Integer); +begin + lblProg.Caption := IntToStr(Progress); + lblProgMax.Caption := IntToStr(ProgressMax); + Application.ProcessMessages; +end; + +procedure TForm1.GeckoBrowser1LocationChange(Sender: TObject; + const uri: string); +begin +// showmessage(uri); +end; + +initialization +{$IFDEF LCL} +{$I gec10.lrs} {Include form's resource file} +{$ENDIF} + +end. diff --git a/components/geckoport/version2/SampleApps/lb-cw-cocoa.sh b/components/geckoport/version2/SampleApps/lb-cw-cocoa.sh new file mode 100755 index 000000000..e0a499363 --- /dev/null +++ b/components/geckoport/version2/SampleApps/lb-cw-cocoa.sh @@ -0,0 +1 @@ +~/laz_svn/lazbuild --primary-config-path=~/.laz_svn --ws=cocoa chromewin.lpi diff --git a/components/geckoport/version2/SampleApps/lb-gb-cocoa.sh b/components/geckoport/version2/SampleApps/lb-gb-cocoa.sh new file mode 100755 index 000000000..81649d715 --- /dev/null +++ b/components/geckoport/version2/SampleApps/lb-gb-cocoa.sh @@ -0,0 +1 @@ +~/laz_svn/lazbuild --primary-config-path=~/.laz_svn --ws=cocoa gbrowser.lpi diff --git a/components/geckoport/version2/SampleApps/run-bw-mac.sh b/components/geckoport/version2/SampleApps/run-bw-mac.sh new file mode 100755 index 000000000..dede19151 --- /dev/null +++ b/components/geckoport/version2/SampleApps/run-bw-mac.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +#export DYLD_LIBRARY_PATH=/Applications/Firefox.app/Contents/MacOS +export DYLD_LIBRARY_PATH=/Library/Frameworks/XUL.framework/Versions/Current + +open BrowseWin.app diff --git a/components/geckoport/version2/SampleApps/run-cw-mac.sh b/components/geckoport/version2/SampleApps/run-cw-mac.sh new file mode 100755 index 000000000..1aa1a502a --- /dev/null +++ b/components/geckoport/version2/SampleApps/run-cw-mac.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +#export DYLD_LIBRARY_PATH=/usr/lib:/Applications/Firefox.app/Contents/MacOS +export DYLD_LIBRARY_PATH=/usr/lib:/Library/Frameworks/XUL.framework/Versions/Current + +open ChromeWin.app diff --git a/components/geckoport/version2/SampleApps/run-gb-mac.sh b/components/geckoport/version2/SampleApps/run-gb-mac.sh new file mode 100755 index 000000000..cfd1d261e --- /dev/null +++ b/components/geckoport/version2/SampleApps/run-gb-mac.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +#export DYLD_LIBRARY_PATH=/usr/lib:/Applications/Firefox.app/Contents/MacOS +export DYLD_LIBRARY_PATH=/usr/lib:/Library/Frameworks/XUL.framework/Versions/Current + +open GBrowser.app diff --git a/components/geckoport/version2/each-version/nsIInputStream_safe17_type.inc b/components/geckoport/version2/each-version/nsIInputStream_safe17_type.inc new file mode 100644 index 000000000..c54cd7c92 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_safe17_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe17; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIInputStream_safe18_type.inc b/components/geckoport/version2/each-version/nsIInputStream_safe18_type.inc new file mode 100644 index 000000000..854eb10b6 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_safe18_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe18; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIInputStream_safe19_type.inc b/components/geckoport/version2/each-version/nsIInputStream_safe19_type.inc new file mode 100644 index 000000000..c6b896fb4 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_safe19_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe19; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIInputStream_std17_type.inc b/components/geckoport/version2/each-version/nsIInputStream_std17_type.inc new file mode 100644 index 000000000..23aa238f1 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_std17_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_std17; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIInputStream_std18_type.inc b/components/geckoport/version2/each-version/nsIInputStream_std18_type.inc new file mode 100644 index 000000000..be3bd6848 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_std18_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_std18; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIInputStream_std19_type.inc b/components/geckoport/version2/each-version/nsIInputStream_std19_type.inc new file mode 100644 index 000000000..38225ba90 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIInputStream_std19_type.inc @@ -0,0 +1,7 @@ + nsWriteSegmentFun = function (aInStream: nsIInputStream_std19; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_safe17_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_safe17_type.inc new file mode 100644 index 000000000..ef25f75b1 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_safe17_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe17; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_safe18_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_safe18_type.inc new file mode 100644 index 000000000..396faff93 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_safe18_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe18; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_safe19_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_safe19_type.inc new file mode 100644 index 000000000..6b379cb00 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_safe19_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe19; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_std17_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_std17_type.inc new file mode 100644 index 000000000..951b64753 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_std17_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std17; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_std18_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_std18_type.inc new file mode 100644 index 000000000..16bc9e1e2 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_std18_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std18; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsIOutputStream_std19_type.inc b/components/geckoport/version2/each-version/nsIOutputStream_std19_type.inc new file mode 100644 index 000000000..31eb191c6 --- /dev/null +++ b/components/geckoport/version2/each-version/nsIOutputStream_std19_type.inc @@ -0,0 +1,7 @@ + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std19; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + diff --git a/components/geckoport/version2/each-version/nsXPCOM-1.7.list b/components/geckoport/version2/each-version/nsXPCOM-1.7.list new file mode 100644 index 000000000..143ab6eb5 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM-1.7.list @@ -0,0 +1,197 @@ +domstubs.idl +mozIJSSubScriptLoader.idl +nsIASN1Object.idl +nsIASN1Sequence.idl +nsIBadCertListener.idl +nsICategoryManager.idl +nsICertificateDialogs.idl +nsIChannel.idl +nsIClassInfo.idl +nsIClipboardCommands.idl +nsIComponentManager.idl +nsIComponentRegistrar.idl +nsIContextMenuListener.idl +nsICookie.idl +nsICookieManager.idl +nsICRLInfo.idl +nsIDebug.idl +nsIDirectoryService.idl +nsIDOM3DocumentEvent.idl +nsIDOM3EventTarget.idl +nsIDOMAbstractView.idl +nsIDOMAttr.idl +nsIDOMBarProp.idl +nsIDOMCDATASection.idl +nsIDOMCharacterData.idl +nsIDOMComment.idl +nsIDOMCSSPrimitiveValue.idl +nsIDOMCSSRule.idl +nsIDOMCSSRuleList.idl +nsIDOMCSSStyleDeclaration.idl +nsIDOMCSSStyleSheet.idl +nsIDOMCSSValue.idl +nsIDOMCSSValueList.idl +nsIDOMCustomEvent.idl +nsIDOMDocument.idl +nsIDOMDocumentEvent.idl +nsIDOMDocumentFragment.idl +nsIDOMDocumentRange.idl +nsIDOMDocumentStyle.idl +nsIDOMDocumentType.idl +nsIDOMDocumentView.idl +nsIDOMDOMException.idl +nsIDOMDOMImplementation.idl +nsIDOMElement.idl +nsIDOMEntity.idl +nsIDOMEntityReference.idl +nsIDOMEvent.idl +nsIDOMEventGroup.idl +nsIDOMEventListener.idl +nsIDOMEventTarget.idl +nsIDOMHTMLAnchorElement.idl +nsIDOMHTMLAppletElement.idl +nsIDOMHTMLAreaElement.idl +nsIDOMHTMLBaseElement.idl +nsIDOMHTMLBaseFontElement.idl +nsIDOMHTMLBodyElement.idl +nsIDOMHTMLBRElement.idl +nsIDOMHTMLButtonElement.idl +nsIDOMHTMLCollection.idl +nsIDOMHTMLDirectoryElement.idl +nsIDOMHTMLDivElement.idl +nsIDOMHTMLDListElement.idl +nsIDOMHTMLDocument.idl +nsIDOMHTMLElement.idl +nsIDOMHTMLEmbedElement.idl +nsIDOMHTMLFieldSetElement.idl +nsIDOMHTMLFontElement.idl +nsIDOMHTMLFormElement.idl +nsIDOMHTMLFrameElement.idl +nsIDOMHTMLFrameSetElement.idl +nsIDOMHTMLHeadElement.idl +nsIDOMHTMLHeadingElement.idl +nsIDOMHTMLHRElement.idl +nsIDOMHTMLHtmlElement.idl +nsIDOMHTMLIFrameElement.idl +nsIDOMHTMLImageElement.idl +nsIDOMHTMLInputElement.idl +nsIDOMHTMLIsIndexElement.idl +nsIDOMHTMLLabelElement.idl +nsIDOMHTMLLegendElement.idl +nsIDOMHTMLLIElement.idl +nsIDOMHTMLLinkElement.idl +nsIDOMHTMLMapElement.idl +nsIDOMHTMLMenuElement.idl +nsIDOMHTMLMetaElement.idl +nsIDOMHTMLModElement.idl +nsIDOMHTMLObjectElement.idl +nsIDOMHTMLOListElement.idl +nsIDOMHTMLOptGroupElement.idl +nsIDOMHTMLOptionElement.idl +nsIDOMHTMLOptionsCollection.idl +nsIDOMHTMLParagraphElement.idl +nsIDOMHTMLParamElement.idl +nsIDOMHTMLPreElement.idl +nsIDOMHTMLQuoteElement.idl +nsIDOMHTMLScriptElement.idl +nsIDOMHTMLSelectElement.idl +nsIDOMHTMLStyleElement.idl +nsIDOMHTMLTableCaptionElem.idl +nsIDOMHTMLTableCellElement.idl +nsIDOMHTMLTableColElement.idl +nsIDOMHTMLTableElement.idl +nsIDOMHTMLTableRowElement.idl +nsIDOMHTMLTableSectionElem.idl +nsIDOMHTMLTextAreaElement.idl +nsIDOMHTMLTitleElement.idl +nsIDOMHTMLUListElement.idl +nsIDOMMediaList.idl +nsIDOMMouseEvent.idl +nsIDOMNamedNodeMap.idl +nsIDOMNode.idl +nsIDOMNodeList.idl +nsIDOMNotation.idl +nsIDOMProcessingInstruction.idl +nsIDOMRange.idl +nsIDOMStyleSheet.idl +nsIDOMStyleSheetList.idl +nsIDOMText.idl +nsIDOMUIEvent.idl +nsIDOMWindow.idl +nsIDOMWindow2.idl +nsIDOMWindowCollection.idl +nsIEmbeddingSiteWindow.idl +nsIFactory.idl +nsIFile.idl +nsIFileURL.idl +nsIGlobalHistory.idl +nsIHistoryEntry.idl +nsIHttpChannel.idl +nsIHttpHeaderVisitor.idl +nsIInputStream.idl +nsIInterfaceRequestor.idl +nsIIOService.idl +nsILoadGroup.idl +nsILocalFile.idl +nsIMemory.idl +nsIModule.idl +nsIObserver.idl +nsIObserverService.idl +nsIOutputStream.idl +nsIPassword.idl +nsIPrefBranch.idl +nsIPrefLocalizedString.idl +nsIPrefService.idl +nsIProfile.idl +nsIProfileChangeStatus.idl +nsIProgrammingLanguage.idl +nsIPromptService.idl +nsIProperties.idl +nsIProtocolHandler.idl +nsIRequest.idl +nsIRequestObserver.idl +nsIScriptableInputStream.idl +nsISecurityWarningDialogs.idl +nsISelection.idl +nsIServiceManager.idl +nsISHistory.idl +nsISHistoryListener.idl +nsISimpleEnumerator.idl +nsIStreamListener.idl +nsISupports.idl +nsISupportsPrimitives.idl +nsITooltipListener.idl +nsITooltipTextProvider.idl +nsITraceRefcnt.idl +nsIUnicharStreamListener.idl +nsIUploadChannel.idl +nsIURI.idl +nsIURIContentListener.idl +nsIURL.idl +nsIWeakReference.idl +nsIWebBrowser.idl +nsIWebBrowserChrome.idl +nsIWebBrowserChromeFocus.idl +nsIWebBrowserFind.idl +nsIWebBrowserFocus.idl +nsIWebBrowserPrint.idl +nsIWebBrowserSetup.idl +nsIWebProgress.idl +nsIWebProgressListener.idl +nsIWindowCreator.idl +nsIWindowWatcher.idl +nsIX509Cert.idl +nsIX509CertDB.idl +nsIX509CertValidity.idl +#nsrootidl.idl + +# following idls are not FROZEN, but neccessary to make nsXPCOM.pas bacause +# interfaces included in such idls are referenced by FROZEN interfaces. +nsIArray.ild +nsIAuthPrompt.idl +nsIDOMCounter.idl +nsIDOMRect.idl +nsIDOMRGBColor.idl +nsIPrintSession.idl +nsIPrintSettings.idl +nsIPrompt.idl diff --git a/components/geckoport/version2/each-version/nsXPCOM-1.8.list b/components/geckoport/version2/each-version/nsXPCOM-1.8.list new file mode 100644 index 000000000..56f158382 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM-1.8.list @@ -0,0 +1,200 @@ +domstubs.idl +mozIJSSubScriptLoader.idl +nsIASN1Object.idl +nsIASN1Sequence.idl +nsIBadCertListener.idl +nsICategoryManager.idl +nsICertificateDialogs.idl +nsIChannel.idl +nsIClassInfo.idl +nsIClipboardCommands.idl +nsIComponentManager.idl +nsIComponentRegistrar.idl +nsIContextMenuListener.idl +nsICookie.idl +nsICookieManager.idl +nsICRLInfo.idl +nsIDebug.idl +nsIDirectoryService.idl +nsIDOM3DocumentEvent.idl +nsIDOM3EventTarget.idl +nsIDOMAbstractView.idl +nsIDOMAttr.idl +nsIDOMBarProp.idl +nsIDOMCDATASection.idl +nsIDOMCharacterData.idl +nsIDOMComment.idl +nsIDOMCSSPrimitiveValue.idl +nsIDOMCSSRule.idl +nsIDOMCSSRuleList.idl +nsIDOMCSSStyleDeclaration.idl +nsIDOMCSSStyleSheet.idl +nsIDOMCSSValue.idl +nsIDOMCSSValueList.idl +nsIDOMCustomEvent.idl +nsIDOMDocument.idl +nsIDOMDocumentEvent.idl +nsIDOMDocumentFragment.idl +nsIDOMDocumentRange.idl +nsIDOMDocumentStyle.idl +nsIDOMDocumentType.idl +nsIDOMDocumentView.idl +nsIDOMDOMException.idl +nsIDOMDOMImplementation.idl +nsIDOMElement.idl +nsIDOMElementCSSInlineStyle.idl +nsIDOMEntity.idl +nsIDOMEntityReference.idl +nsIDOMEvent.idl +nsIDOMEventGroup.idl +nsIDOMEventListener.idl +nsIDOMEventTarget.idl +nsIDOMHTMLAnchorElement.idl +nsIDOMHTMLAppletElement.idl +nsIDOMHTMLAreaElement.idl +nsIDOMHTMLBaseElement.idl +nsIDOMHTMLBaseFontElement.idl +nsIDOMHTMLBodyElement.idl +nsIDOMHTMLBRElement.idl +nsIDOMHTMLButtonElement.idl +nsIDOMHTMLCollection.idl +nsIDOMHTMLDirectoryElement.idl +nsIDOMHTMLDivElement.idl +nsIDOMHTMLDListElement.idl +nsIDOMHTMLDocument.idl +nsIDOMHTMLElement.idl +nsIDOMHTMLEmbedElement.idl +nsIDOMHTMLFieldSetElement.idl +nsIDOMHTMLFontElement.idl +nsIDOMHTMLFormElement.idl +nsIDOMHTMLFrameElement.idl +nsIDOMHTMLFrameSetElement.idl +nsIDOMHTMLHeadElement.idl +nsIDOMHTMLHeadingElement.idl +nsIDOMHTMLHRElement.idl +nsIDOMHTMLHtmlElement.idl +nsIDOMHTMLIFrameElement.idl +nsIDOMHTMLImageElement.idl +nsIDOMHTMLInputElement.idl +nsIDOMHTMLIsIndexElement.idl +nsIDOMHTMLLabelElement.idl +nsIDOMHTMLLegendElement.idl +nsIDOMHTMLLIElement.idl +nsIDOMHTMLLinkElement.idl +nsIDOMHTMLMapElement.idl +nsIDOMHTMLMenuElement.idl +nsIDOMHTMLMetaElement.idl +nsIDOMHTMLModElement.idl +nsIDOMHTMLObjectElement.idl +nsIDOMHTMLOListElement.idl +nsIDOMHTMLOptGroupElement.idl +nsIDOMHTMLOptionElement.idl +nsIDOMHTMLOptionsCollection.idl +nsIDOMHTMLParagraphElement.idl +nsIDOMHTMLParamElement.idl +nsIDOMHTMLPreElement.idl +nsIDOMHTMLQuoteElement.idl +nsIDOMHTMLScriptElement.idl +nsIDOMHTMLSelectElement.idl +nsIDOMHTMLStyleElement.idl +nsIDOMHTMLTableCaptionElem.idl +nsIDOMHTMLTableCellElement.idl +nsIDOMHTMLTableColElement.idl +nsIDOMHTMLTableElement.idl +nsIDOMHTMLTableRowElement.idl +nsIDOMHTMLTableSectionElem.idl +nsIDOMHTMLTextAreaElement.idl +nsIDOMHTMLTitleElement.idl +nsIDOMHTMLUListElement.idl +nsIDOMMediaList.idl +nsIDOMMouseEvent.idl +nsIDOMNamedNodeMap.idl +nsIDOMNode.idl +nsIDOMNodeList.idl +nsIDOMNotation.idl +nsIDOMNSDocumentStyle.idl +nsIDOMProcessingInstruction.idl +nsIDOMRange.idl +nsIDOMStyleSheet.idl +nsIDOMStyleSheetList.idl +nsIDOMText.idl +nsIDOMUIEvent.idl +nsIDOMWindow.idl +nsIDOMWindow2.idl +nsIDOMWindowCollection.idl +nsIDOMWindowUtils.idl +nsIEmbeddingSiteWindow.idl +nsIFactory.idl +nsIFile.idl +nsIFileURL.idl +nsIGlobalHistory.idl +nsIHistoryEntry.idl +nsIHttpChannel.idl +nsIHttpHeaderVisitor.idl +nsIInputStream.idl +nsIInterfaceRequestor.idl +nsIIOService.idl +nsILoadGroup.idl +nsILocalFile.idl +nsIMemory.idl +nsIModule.idl +nsIObserver.idl +nsIObserverService.idl +nsIOutputStream.idl +nsIPrefBranch.idl +nsIPrefBranch2.idl +nsIPrefLocalizedString.idl +nsIPrefService.idl +nsIProfile.idl +nsIProfileChangeStatus.idl +nsIProgrammingLanguage.idl +nsIPromptService.idl +nsIProperties.idl +nsIProtocolHandler.idl +nsIRequest.idl +nsIRequestObserver.idl +nsIScriptableInputStream.idl +nsISecurityWarningDialogs.idl +nsISelection.idl +nsIServiceManager.idl +nsISHistory.idl +nsISHistoryListener.idl +nsISimpleEnumerator.idl +nsIStreamListener.idl +nsISupports.idl +nsISupportsPrimitives.idl +nsITooltipListener.idl +nsITooltipTextProvider.idl +nsITraceRefcnt.idl +nsIUnicharStreamListener.idl +nsIUploadChannel.idl +nsIURI.idl +nsIURIContentListener.idl +nsIURL.idl +nsIWeakReference.idl +nsIWebBrowser.idl +nsIWebBrowserChrome.idl +nsIWebBrowserChromeFocus.idl +nsIWebBrowserFind.idl +nsIWebBrowserFocus.idl +nsIWebBrowserPrint.idl +nsIWebBrowserSetup.idl +nsIWebBrowserStream.idl +nsIWebProgress.idl +nsIWebProgressListener.idl +nsIWindowCreator.idl +nsIWindowWatcher.idl +nsIX509Cert.idl +nsIX509CertDB.idl +nsIX509CertValidity.idl +#nsrootidl.idl + +# following idls are not FROZEN, but neccessary to make nsXPCOM.pas bacause +# interfaces included in such idls are referenced by FROZEN interfaces. +nsIArray.idl +nsIAuthPrompt.idl +nsIDOMCounter.idl +nsIDOMRect.idl +nsIDOMRGBColor.idl +nsIPrintSettings.idl +nsIPrompt.idl diff --git a/components/geckoport/version2/each-version/nsXPCOM-1.9.list b/components/geckoport/version2/each-version/nsXPCOM-1.9.list new file mode 100644 index 000000000..14719d1fa --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM-1.9.list @@ -0,0 +1,203 @@ +domstubs.idl +mozIJSSubScriptLoader.idl +nsIArray.idl +nsIASN1Object.idl +nsIASN1Sequence.idl +nsICategoryManager.idl +nsICertificateDialogs.idl +nsIChannel.idl +nsIClassInfo.idl +nsIClipboardCommands.idl +nsIComponentManager.idl +nsIComponentRegistrar.idl +nsIContextMenuListener.idl +nsICookie.idl +nsICookieManager.idl +nsICRLInfo.idl +nsIDebug.idl +nsIDirectoryService.idl +nsIDOM3DocumentEvent.idl +nsIDOM3EventTarget.idl +nsIDOMAbstractView.idl +nsIDOMAttr.idl +nsIDOMBarProp.idl +nsIDOMCDATASection.idl +nsIDOMCharacterData.idl +nsIDOMComment.idl +nsIDOMCSSPrimitiveValue.idl +nsIDOMCSSRule.idl +nsIDOMCSSRuleList.idl +nsIDOMCSSStyleDeclaration.idl +nsIDOMCSSStyleSheet.idl +nsIDOMCSSValue.idl +nsIDOMCSSValueList.idl +nsIDOMCustomEvent.idl +nsIDOMDocument.idl +nsIDOMDocumentEvent.idl +nsIDOMDocumentFragment.idl +nsIDOMDocumentRange.idl +nsIDOMDocumentStyle.idl +nsIDOMDocumentType.idl +nsIDOMDocumentView.idl +nsIDOMDOMException.idl +nsIDOMDOMImplementation.idl +nsIDOMElement.idl +nsIDOMElementCSSInlineStyle.idl +nsIDOMEntity.idl +nsIDOMEntityReference.idl +nsIDOMEvent.idl +nsIDOMEventGroup.idl +nsIDOMEventListener.idl +nsIDOMEventTarget.idl +nsIDOMHTMLAnchorElement.idl +nsIDOMHTMLAppletElement.idl +nsIDOMHTMLAreaElement.idl +nsIDOMHTMLBaseElement.idl +nsIDOMHTMLBaseFontElement.idl +nsIDOMHTMLBodyElement.idl +nsIDOMHTMLBRElement.idl +nsIDOMHTMLButtonElement.idl +nsIDOMHTMLCollection.idl +nsIDOMHTMLDirectoryElement.idl +nsIDOMHTMLDivElement.idl +nsIDOMHTMLDListElement.idl +nsIDOMHTMLDocument.idl +nsIDOMHTMLElement.idl +nsIDOMHTMLEmbedElement.idl +nsIDOMHTMLFieldSetElement.idl +nsIDOMHTMLFontElement.idl +nsIDOMHTMLFormElement.idl +nsIDOMHTMLFrameElement.idl +nsIDOMHTMLFrameSetElement.idl +nsIDOMHTMLHeadElement.idl +nsIDOMHTMLHeadingElement.idl +nsIDOMHTMLHRElement.idl +nsIDOMHTMLHtmlElement.idl +nsIDOMHTMLIFrameElement.idl +nsIDOMHTMLImageElement.idl +nsIDOMHTMLInputElement.idl +nsIDOMHTMLIsIndexElement.idl +nsIDOMHTMLLabelElement.idl +nsIDOMHTMLLegendElement.idl +nsIDOMHTMLLIElement.idl +nsIDOMHTMLLinkElement.idl +nsIDOMHTMLMapElement.idl +nsIDOMHTMLMenuElement.idl +nsIDOMHTMLMetaElement.idl +nsIDOMHTMLModElement.idl +nsIDOMHTMLObjectElement.idl +nsIDOMHTMLOListElement.idl +nsIDOMHTMLOptGroupElement.idl +nsIDOMHTMLOptionElement.idl +nsIDOMHTMLOptionsCollection.idl +nsIDOMHTMLParagraphElement.idl +nsIDOMHTMLParamElement.idl +nsIDOMHTMLPreElement.idl +nsIDOMHTMLQuoteElement.idl +nsIDOMHTMLScriptElement.idl +nsIDOMHTMLSelectElement.idl +nsIDOMHTMLStyleElement.idl +nsIDOMHTMLTableCaptionElem.idl +nsIDOMHTMLTableCellElement.idl +nsIDOMHTMLTableColElement.idl +nsIDOMHTMLTableElement.idl +nsIDOMHTMLTableRowElement.idl +nsIDOMHTMLTableSectionElem.idl +nsIDOMHTMLTextAreaElement.idl +nsIDOMHTMLTitleElement.idl +nsIDOMHTMLUListElement.idl +nsIDOMMediaList.idl +nsIDOMMouseEvent.idl +nsIDOMNamedNodeMap.idl +nsIDOMNode.idl +nsIDOMNodeList.idl +nsIDOMNotation.idl +nsIDOMProcessingInstruction.idl +nsIDOMRange.idl +nsIDOMStorage.idl +nsIDOMStorageEvent.idl +nsIDOMStorageItem.idl +nsIDOMStorageList.idl +nsIDOMStorageWindow.idl +nsIDOMStyleSheet.idl +nsIDOMStyleSheetList.idl +nsIDOMText.idl +nsIDOMUIEvent.idl +nsIDOMWindow.idl +nsIDOMWindow2.idl +nsIDOMWindowCollection.idl +nsIDOMWindowUtils.idl +nsIEmbeddingSiteWindow.idl +nsIFactory.idl +nsIFile.idl +nsIFileURL.idl +nsIGlobalHistory.idl +nsIHashable.idl +nsIHistoryEntry.idl +nsIHttpChannel.idl +nsIHttpHeaderVisitor.idl +nsIInputStream.idl +nsIInterfaceRequestor.idl +nsIIOService.idl +nsIJSON.idl +nsILoadGroup.idl +nsILocalFile.idl +nsIMemory.idl +nsIModule.idl +nsIMutableArray.idl +nsIObserver.idl +nsIObserverService.idl +nsIOutputStream.idl +nsIPrefBranch.idl +nsIPrefBranch2.idl +nsIPrefLocalizedString.idl +nsIPrefService.idl +nsIProfile.idl +nsIProfileChangeStatus.idl +nsIProgrammingLanguage.idl +nsIPromptService.idl +nsIProperties.idl +nsIProtocolHandler.idl +nsIRequest.idl +nsIRequestObserver.idl +nsIScriptableInputStream.idl +nsISecurityWarningDialogs.idl +nsISelection.idl +nsIServiceManager.idl +nsISHistory.idl +nsISHistoryListener.idl +nsISimpleEnumerator.idl +nsIStreamListener.idl +nsISupports.idl +nsISupportsPrimitives.idl +nsITooltipListener.idl +nsITooltipTextProvider.idl +nsITraceRefcnt.idl +nsIUnicharStreamListener.idl +nsIUploadChannel.idl +nsIURI.idl +nsIURIContentListener.idl +nsIURL.idl +nsIWeakReference.idl +nsIWebBrowser.idl +nsIWebBrowserChrome.idl +nsIWebBrowserChromeFocus.idl +nsIWebBrowserFind.idl +nsIWebBrowserFocus.idl +nsIWebBrowserPrint.idl +nsIWebBrowserSetup.idl +nsIWebBrowserStream.idl +nsIWebProgress.idl +nsIWebProgressListener.idl +nsIWindowCreator.idl +nsIWindowWatcher.idl +nsIX509Cert.idl +nsIX509CertDB.idl +nsIX509CertValidity.idl +# nsrootidl.pas + +# following idls are not FROZEN, but neccessary to make nsXPCOM.pas bacause +# interfaces included in such idls are referenced by FROZEN interfaces. +nsIDOMOfflineResourceList.idl +nsIPrintSettings.idl +nsIPrompt.idl diff --git a/components/geckoport/version2/each-version/nsXPCOM_safe17.pas b/components/geckoport/version2/each-version/nsXPCOM_safe17.pas new file mode 100644 index 000000000..0fd7221c1 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_safe17.pas @@ -0,0 +1,3870 @@ +unit nsXPCOM_safe17; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsConsts, nsGeckoStrings, nsTypes; + +const + NS_ISUPPORTS_SAFE17_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_SAFE17_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_SAFE17_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IMUTABLEARRAY_SAFE17_IID: TGUID = '{2cd0b2f8-d4dd-48b8-87ba-b0200501f079}'; + + NS_IASN1OBJECT_SAFE17_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_SAFE17_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_SAFE17_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_SAFE17_ASN1_INTEGER = 2; + NS_IASN1OBJECT_SAFE17_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_SAFE17_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_SAFE17_ASN1_NULL = 5; + NS_IASN1OBJECT_SAFE17_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_SAFE17_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_SAFE17_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_SAFE17_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_SAFE17_ASN1_SET = 17; + NS_IASN1OBJECT_SAFE17_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_SAFE17_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_SAFE17_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_SAFE17_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_SAFE17_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_SAFE17_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_SAFE17_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_SAFE17_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_SAFE17_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_SAFE17_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_SAFE17_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_SAFE17_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_SAFE17_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_SAFE17_IID: TGUID = '{2f977d45-5485-11d4-87e2-0010a4e75ef2}'; + NS_IAUTHPROMPT_SAFE17_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_SAFE17_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_SAFE17_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_IBADCERTLISTENER_SAFE17_IID: TGUID = '{86960956-edb0-11d4-998b-00b0d02354a0}'; + NS_IBADCERTLISTENER_SAFE17_UNINIT_ADD_FLAG = -1; + NS_IBADCERTLISTENER_SAFE17_ADD_TRUSTED_FOR_SESSION = 1; + NS_IBADCERTLISTENER_SAFE17_ADD_TRUSTED_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_SAFE17_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_SAFE17_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_SAFE17_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_SAFE17_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_SAFE17_LOAD_NORMAL = 0; + NS_IREQUEST_SAFE17_LOAD_BACKGROUND = 1; + NS_IREQUEST_SAFE17_INHIBIT_CACHING = 128; + NS_IREQUEST_SAFE17_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_SAFE17_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_SAFE17_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_SAFE17_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_SAFE17_VALIDATE_NEVER = 4096; + NS_IREQUEST_SAFE17_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_SAFE17_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_SAFE17_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_SAFE17_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_SAFE17_LOAD_REPLACE = 262144; + NS_ICHANNEL_SAFE17_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_SAFE17_LOAD_TARGETED = 1048576; + + NS_IPROGRAMMINGLANGUAGE_SAFE17_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_SAFE17_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_SAFE17_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_SAFE17_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_SAFE17_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_SAFE17_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_SAFE17_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_SAFE17_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_SAFE17_JAVASCRIPT2 = 7; + + NS_ICLASSINFO_SAFE17_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_SAFE17_SINGLETON = 1; + NS_ICLASSINFO_SAFE17_THREADSAFE = 2; + NS_ICLASSINFO_SAFE17_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_SAFE17_DOM_OBJECT = 8; + NS_ICLASSINFO_SAFE17_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_SAFE17_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_SAFE17_CONTENT_NODE = 64; + NS_ICLASSINFO_SAFE17_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_SAFE17_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_SAFE17_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_SAFE17_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_SAFE17_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_SAFE17_CONTEXT_INPUT = 16; + + NS_ICOOKIE_SAFE17_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_SAFE17_STATUS_UNKNOWN = 0; + NS_ICOOKIE_SAFE17_STATUS_ACCEPTED = 1; + NS_ICOOKIE_SAFE17_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_SAFE17_STATUS_FLAGGED = 3; + NS_ICOOKIE_SAFE17_STATUS_REJECTED = 4; + NS_ICOOKIE_SAFE17_POLICY_UNKNOWN = 0; + NS_ICOOKIE_SAFE17_POLICY_NONE = 1; + NS_ICOOKIE_SAFE17_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_SAFE17_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_SAFE17_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_SAFE17_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_SAFE17_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_SAFE17_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_SAFE17_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_SAFE17_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_SAFE17_NORMAL_FILE_TYPE = 0; + NS_IFILE_SAFE17_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_SAFE17_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_SAFE17_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_SAFE17_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_SAFE17_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_SAFE17_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_SAFE17_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_SAFE17_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_SAFE17_ELEMENT_NODE = 1; + NS_IDOMNODE_SAFE17_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_SAFE17_TEXT_NODE = 3; + NS_IDOMNODE_SAFE17_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_SAFE17_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_SAFE17_ENTITY_NODE = 6; + NS_IDOMNODE_SAFE17_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_SAFE17_COMMENT_NODE = 8; + NS_IDOMNODE_SAFE17_DOCUMENT_NODE = 9; + NS_IDOMNODE_SAFE17_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_SAFE17_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_SAFE17_NOTATION_NODE = 12; + + NS_IDOMATTR_SAFE17_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_SAFE17_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_SAFE17_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_SAFE17_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_SAFE17_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_SAFE17_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_SAFE17_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_SAFE17_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_SAFE17_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_SAFE17_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_SAFE17_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_SAFE17_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_SAFE17_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_SAFE17_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_SAFE17_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_SAFE17_STYLE_RULE = 1; + NS_IDOMCSSRULE_SAFE17_CHARSET_RULE = 2; + NS_IDOMCSSRULE_SAFE17_IMPORT_RULE = 3; + NS_IDOMCSSRULE_SAFE17_MEDIA_RULE = 4; + NS_IDOMCSSRULE_SAFE17_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_SAFE17_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_SAFE17_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_SAFE17_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_SAFE17_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_SAFE17_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_SAFE17_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_SAFE17_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_SAFE17_CAPTURING_PHASE = 1; + NS_IDOMEVENT_SAFE17_AT_TARGET = 2; + NS_IDOMEVENT_SAFE17_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_SAFE17_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_SAFE17_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_SAFE17_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_SAFE17_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_SAFE17_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_SAFE17_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_SAFE17_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_SAFE17_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_SAFE17_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_SAFE17_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_SAFE17_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_SAFE17_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_SAFE17_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_SAFE17_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_SAFE17_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_SAFE17_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_SAFE17_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_SAFE17_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_SAFE17_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_SAFE17_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_SAFE17_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_SAFE17_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_SAFE17_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_SAFE17_INVALID_ACCESS_ERR = 15; + + NS_IDOMDOMIMPLEMENTATION_SAFE17_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_SAFE17_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITY_SAFE17_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_SAFE17_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_SAFE17_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_SAFE17_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_SAFE17_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_SAFE17_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_SAFE17_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_SAFE17_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_SAFE17_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_SAFE17_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_SAFE17_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_SAFE17_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_SAFE17_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_SAFE17_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_SAFE17_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_SAFE17_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_SAFE17_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_SAFE17_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_SAFE17_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_SAFE17_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_SAFE17_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_SAFE17_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_SAFE17_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_SAFE17_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_SAFE17_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_SAFE17_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_SAFE17_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_SAFE17_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_SAFE17_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_SAFE17_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_SAFE17_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_SAFE17_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_SAFE17_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_SAFE17_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_SAFE17_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_SAFE17_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_SAFE17_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_SAFE17_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_SAFE17_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_SAFE17_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_SAFE17_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_SAFE17_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_SAFE17_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_SAFE17_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_SAFE17_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_SAFE17_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_SAFE17_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_SAFE17_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_SAFE17_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_SAFE17_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_SAFE17_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_SAFE17_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_SAFE17_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_SAFE17_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_SAFE17_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_SAFE17_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_SAFE17_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_SAFE17_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_SAFE17_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_SAFE17_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_SAFE17_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_SAFE17_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_SAFE17_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_SAFE17_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_SAFE17_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_SAFE17_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_SAFE17_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_SAFE17_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMPROCESSINGINSTRUCTION_SAFE17_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_SAFE17_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_SAFE17_START_TO_START = 0; + NS_IDOMRANGE_SAFE17_START_TO_END = 1; + NS_IDOMRANGE_SAFE17_END_TO_END = 2; + NS_IDOMRANGE_SAFE17_END_TO_START = 3; + + NS_IDOMRECT_SAFE17_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_SAFE17_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTYLESHEETLIST_SAFE17_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_SAFE17_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_SAFE17_IID: TGUID = '{65455132-b96a-40ec-adea-52fa22b1028c}'; + + NS_IDOMWINDOWCOLLECTION_SAFE17_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IEMBEDDINGSITEWINDOW_SAFE17_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_SAFE17_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_SAFE17_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_SAFE17_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_SAFE17_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_SAFE17_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_SAFE17_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_SAFE17_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_SAFE17_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHISTORYENTRY_SAFE17_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_SAFE17_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_SAFE17_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_SAFE17_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_SAFE17_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_SAFE17_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_ILOADGROUP_SAFE17_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_SAFE17_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_SAFE17_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_SAFE17_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IOBSERVER_SAFE17_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_SAFE17_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_SAFE17_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPASSWORD_SAFE17_IID: TGUID = '{cf39c2b0-1e4b-11d5-a549-0010a401eb10}'; + + NS_IPREFBRANCH_SAFE17_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_SAFE17_PREF_INVALID = 0; + NS_IPREFBRANCH_SAFE17_PREF_STRING = 32; + NS_IPREFBRANCH_SAFE17_PREF_INT = 64; + NS_IPREFBRANCH_SAFE17_PREF_BOOL = 128; + + NS_IPREFLOCALIZEDSTRING_SAFE17_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_SAFE17_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_SAFE17_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_SAFE17_IID: TGUID = '{83427530-f790-11d4-a869-00105a183419}'; + NS_IPRINTSETTINGS_SAFE17_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_SAFE17_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_SAFE17_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_SAFE17_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_SAFE17_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_SAFE17_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_SAFE17_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_SAFE17_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_SAFE17_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperName = 1024; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperSizeUnit = 2048; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperSizeType = 4096; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperWidth = 16384; + NS_IPRINTSETTINGS_SAFE17_kInitSavePaperHeight = 32768; + NS_IPRINTSETTINGS_SAFE17_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_SAFE17_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_SAFE17_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_SAFE17_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_SAFE17_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_SAFE17_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_SAFE17_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_SAFE17_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_SAFE17_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_SAFE17_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_SAFE17_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_SAFE17_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_SAFE17_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_SAFE17_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_SAFE17_kPrintOddPages = 1; + NS_IPRINTSETTINGS_SAFE17_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_SAFE17_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_SAFE17_kRangeAllPages = 0; + NS_IPRINTSETTINGS_SAFE17_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_SAFE17_kRangeSelection = 2; + NS_IPRINTSETTINGS_SAFE17_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_SAFE17_kJustLeft = 0; + NS_IPRINTSETTINGS_SAFE17_kJustCenter = 1; + NS_IPRINTSETTINGS_SAFE17_kJustRight = 2; + NS_IPRINTSETTINGS_SAFE17_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_SAFE17_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_SAFE17_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_SAFE17_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_SAFE17_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_SAFE17_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_SAFE17_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_SAFE17_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_SAFE17_kNoFrames = 0; + NS_IPRINTSETTINGS_SAFE17_kFramesAsIs = 1; + NS_IPRINTSETTINGS_SAFE17_kSelectedFrame = 2; + NS_IPRINTSETTINGS_SAFE17_kEachFrameSep = 3; + NS_IPRINTSETTINGS_SAFE17_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_SAFE17_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_SAFE17_kFrameEnableAsIsAndEach = 2; + + NS_IPROFILE_SAFE17_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_SAFE17_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_SAFE17_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_SAFE17_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROMPT_SAFE17_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_SAFE17_BUTTON_POS_0 = 1; + NS_IPROMPT_SAFE17_BUTTON_POS_1 = 256; + NS_IPROMPT_SAFE17_BUTTON_POS_2 = 65536; + NS_IPROMPT_SAFE17_BUTTON_TITLE_OK = 1; + NS_IPROMPT_SAFE17_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_SAFE17_BUTTON_TITLE_YES = 3; + NS_IPROMPT_SAFE17_BUTTON_TITLE_NO = 4; + NS_IPROMPT_SAFE17_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_SAFE17_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_SAFE17_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_SAFE17_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_SAFE17_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_SAFE17_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_SAFE17_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_SAFE17_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_SAFE17_STD_OK_CANCEL_BUTTONS = 513; + + NS_IPROMPTSERVICE_SAFE17_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_SAFE17_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_SAFE17_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_SAFE17_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_SAFE17_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_SAFE17_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_SAFE17_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_SAFE17_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_SAFE17_URI_STD = 0; + NS_IPROTOCOLHANDLER_SAFE17_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_SAFE17_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_SAFE17_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_SAFE17_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_SAFE17_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_SAFE17_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_SAFE17_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_SAFE17_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_SAFE17_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_SAFE17_IID: TGUID = '{7294fe9b-14d8-11d5-9882-00c04fa02f40}'; + + NS_ISHISTORYLISTENER_SAFE17_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_SAFE17_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_SAFE17_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_SAFE17_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_SAFE17_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_SAFE17_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_SAFE17_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_SAFE17_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_SAFE17_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_SAFE17_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_SAFE17_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_SAFE17_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_SAFE17_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_SAFE17_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_SAFE17_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_SAFE17_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_SAFE17_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_SAFE17_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_SAFE17_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_SAFE17_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_SAFE17_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_SAFE17_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_SAFE17_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_SAFE17_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_SAFE17_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_SAFE17_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_SAFE17_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_SAFE17_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_SAFE17_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_SAFE17_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_SAFE17_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_SAFE17_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_SAFE17_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_SAFE17_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_SAFE17_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_SAFE17_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_SAFE17_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_SAFE17_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_SAFE17_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_SAFE17_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_SAFE17_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_SAFE17_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_SAFE17_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_SAFE17_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_SAFE17_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_SAFE17_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_SAFE17_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBPROGRESS_SAFE17_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_SAFE17_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_SAFE17_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_SAFE17_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_SAFE17_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_SAFE17_NOTIFY_ALL = 255; + + NS_IWEBPROGRESSLISTENER_SAFE17_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_SAFE17_STATE_SECURE_LOW = 131072; + + NS_IWINDOWCREATOR_SAFE17_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_SAFE17_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_SAFE17_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_SAFE17_UNKNOWN_CERT = 0; + NS_IX509CERT_SAFE17_CA_CERT = 1; + NS_IX509CERT_SAFE17_USER_CERT = 2; + NS_IX509CERT_SAFE17_EMAIL_CERT = 4; + NS_IX509CERT_SAFE17_SERVER_CERT = 8; + NS_IX509CERT_SAFE17_VERIFIED_OK = 0; + NS_IX509CERT_SAFE17_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_SAFE17_CERT_REVOKED = 2; + NS_IX509CERT_SAFE17_CERT_EXPIRED = 4; + NS_IX509CERT_SAFE17_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_SAFE17_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_SAFE17_ISSUER_UNKNOWN = 32; + NS_IX509CERT_SAFE17_INVALID_CA = 64; + NS_IX509CERT_SAFE17_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_SAFE17_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_SAFE17_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_SAFE17_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_SAFE17_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_SAFE17_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_SAFE17_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_SAFE17_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_SAFE17_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_SAFE17_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_SAFE17_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_SAFE17_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_SAFE17_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_SAFE17_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_SAFE17_UNTRUSTED = 0; + NS_IX509CERTDB_SAFE17_TRUSTED_SSL = 1; + NS_IX509CERTDB_SAFE17_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_SAFE17_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_SAFE17_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_safe17 = interface; + mozIJSSubScriptLoader_safe17 = interface; + nsIArray_safe17 = interface; + nsIMutableArray_safe17 = interface; + nsIASN1Object_safe17 = interface; + nsIASN1Sequence_safe17 = interface; + nsIAuthPrompt_safe17 = interface; + nsIBadCertListener_safe17 = interface; + nsISimpleEnumerator_safe17 = interface; + nsICategoryManager_safe17 = interface; + nsICertificateDialogs_safe17 = interface; + nsIRequest_safe17 = interface; + nsIChannel_safe17 = interface; + nsIProgrammingLanguage_safe17 = interface; + nsIClassInfo_safe17 = interface; + nsIClipboardCommands_safe17 = interface; + nsIComponentManager_safe17 = interface; + nsIComponentRegistrar_safe17 = interface; + nsIContextMenuListener_safe17 = interface; + nsICookie_safe17 = interface; + nsICookieManager_safe17 = interface; + nsICRLInfo_safe17 = interface; + nsIDebug_safe17 = interface; + nsIFile_safe17 = interface; + nsIDirectoryServiceProvider_safe17 = interface; + nsIDirectoryServiceProvider2_safe17 = interface; + nsIDirectoryService_safe17 = interface; + nsIDOM3DocumentEvent_safe17 = interface; + nsIDOM3EventTarget_safe17 = interface; + nsIDOMAbstractView_safe17 = interface; + nsIDOMNode_safe17 = interface; + nsIDOMAttr_safe17 = interface; + nsIDOMBarProp_safe17 = interface; + nsIDOMCharacterData_safe17 = interface; + nsIDOMText_safe17 = interface; + nsIDOMCDATASection_safe17 = interface; + nsIDOMComment_safe17 = interface; + nsIDOMCounter_safe17 = interface; + nsIDOMCSSValue_safe17 = interface; + nsIDOMCSSPrimitiveValue_safe17 = interface; + nsIDOMCSSRule_safe17 = interface; + nsIDOMCSSRuleList_safe17 = interface; + nsIDOMCSSStyleDeclaration_safe17 = interface; + nsIDOMStyleSheet_safe17 = interface; + nsIDOMCSSStyleSheet_safe17 = interface; + nsIDOMCSSValueList_safe17 = interface; + nsIDOMEvent_safe17 = interface; + nsIDOMCustomEvent_safe17 = interface; + nsIDOMDocument_safe17 = interface; + nsIDOMDocumentEvent_safe17 = interface; + nsIDOMDocumentFragment_safe17 = interface; + nsIDOMDocumentRange_safe17 = interface; + nsIDOMDocumentStyle_safe17 = interface; + nsIDOMDocumentType_safe17 = interface; + nsIDOMDocumentView_safe17 = interface; + nsIDOMDOMException_safe17 = interface; + nsIDOMDOMImplementation_safe17 = interface; + nsIDOMElement_safe17 = interface; + nsIDOMEntity_safe17 = interface; + nsIDOMEntityReference_safe17 = interface; + nsIDOMEventGroup_safe17 = interface; + nsIDOMEventListener_safe17 = interface; + nsIDOMEventTarget_safe17 = interface; + nsIDOMHTMLElement_safe17 = interface; + nsIDOMHTMLAnchorElement_safe17 = interface; + nsIDOMHTMLAppletElement_safe17 = interface; + nsIDOMHTMLAreaElement_safe17 = interface; + nsIDOMHTMLBaseElement_safe17 = interface; + nsIDOMHTMLBaseFontElement_safe17 = interface; + nsIDOMHTMLBodyElement_safe17 = interface; + nsIDOMHTMLBRElement_safe17 = interface; + nsIDOMHTMLButtonElement_safe17 = interface; + nsIDOMHTMLCollection_safe17 = interface; + nsIDOMHTMLDirectoryElement_safe17 = interface; + nsIDOMHTMLDivElement_safe17 = interface; + nsIDOMHTMLDListElement_safe17 = interface; + nsIDOMHTMLDocument_safe17 = interface; + nsIDOMHTMLEmbedElement_safe17 = interface; + nsIDOMHTMLFieldSetElement_safe17 = interface; + nsIDOMHTMLFontElement_safe17 = interface; + nsIDOMHTMLFormElement_safe17 = interface; + nsIDOMHTMLFrameElement_safe17 = interface; + nsIDOMHTMLFrameSetElement_safe17 = interface; + nsIDOMHTMLHeadElement_safe17 = interface; + nsIDOMHTMLHeadingElement_safe17 = interface; + nsIDOMHTMLHRElement_safe17 = interface; + nsIDOMHTMLHtmlElement_safe17 = interface; + nsIDOMHTMLIFrameElement_safe17 = interface; + nsIDOMHTMLImageElement_safe17 = interface; + nsIDOMHTMLInputElement_safe17 = interface; + nsIDOMHTMLIsIndexElement_safe17 = interface; + nsIDOMHTMLLabelElement_safe17 = interface; + nsIDOMHTMLLegendElement_safe17 = interface; + nsIDOMHTMLLIElement_safe17 = interface; + nsIDOMHTMLLinkElement_safe17 = interface; + nsIDOMHTMLMapElement_safe17 = interface; + nsIDOMHTMLMenuElement_safe17 = interface; + nsIDOMHTMLMetaElement_safe17 = interface; + nsIDOMHTMLModElement_safe17 = interface; + nsIDOMHTMLObjectElement_safe17 = interface; + nsIDOMHTMLOListElement_safe17 = interface; + nsIDOMHTMLOptGroupElement_safe17 = interface; + nsIDOMHTMLOptionElement_safe17 = interface; + nsIDOMHTMLOptionsCollection_safe17 = interface; + nsIDOMHTMLParagraphElement_safe17 = interface; + nsIDOMHTMLParamElement_safe17 = interface; + nsIDOMHTMLPreElement_safe17 = interface; + nsIDOMHTMLQuoteElement_safe17 = interface; + nsIDOMHTMLScriptElement_safe17 = interface; + nsIDOMHTMLSelectElement_safe17 = interface; + nsIDOMHTMLStyleElement_safe17 = interface; + nsIDOMHTMLTableCaptionElement_safe17 = interface; + nsIDOMHTMLTableCellElement_safe17 = interface; + nsIDOMHTMLTableColElement_safe17 = interface; + nsIDOMHTMLTableElement_safe17 = interface; + nsIDOMHTMLTableRowElement_safe17 = interface; + nsIDOMHTMLTableSectionElement_safe17 = interface; + nsIDOMHTMLTextAreaElement_safe17 = interface; + nsIDOMHTMLTitleElement_safe17 = interface; + nsIDOMHTMLUListElement_safe17 = interface; + nsIDOMMediaList_safe17 = interface; + nsIDOMUIEvent_safe17 = interface; + nsIDOMMouseEvent_safe17 = interface; + nsIDOMNamedNodeMap_safe17 = interface; + nsIDOMNodeList_safe17 = interface; + nsIDOMNotation_safe17 = interface; + nsIDOMProcessingInstruction_safe17 = interface; + nsIDOMRange_safe17 = interface; + nsIDOMRect_safe17 = interface; + nsIDOMRGBColor_safe17 = interface; + nsIDOMStyleSheetList_safe17 = interface; + nsIDOMWindow_safe17 = interface; + nsIDOMWindow2_safe17 = interface; + nsIDOMWindowCollection_safe17 = interface; + nsIEmbeddingSiteWindow_safe17 = interface; + nsIFactory_safe17 = interface; + nsIURI_safe17 = interface; + nsIURL_safe17 = interface; + nsIFileURL_safe17 = interface; + nsIGlobalHistory_safe17 = interface; + nsIHistoryEntry_safe17 = interface; + nsIHttpChannel_safe17 = interface; + nsIHttpHeaderVisitor_safe17 = interface; + nsIInputStream_safe17 = interface; + nsIInterfaceRequestor_safe17 = interface; + nsIIOService_safe17 = interface; + nsILoadGroup_safe17 = interface; + nsILocalFile_safe17 = interface; + nsIMemory_safe17 = interface; + nsIModule_safe17 = interface; + nsIObserver_safe17 = interface; + nsIObserverService_safe17 = interface; + nsIOutputStream_safe17 = interface; + nsIPassword_safe17 = interface; + nsIPrefBranch_safe17 = interface; + nsIPrefLocalizedString_safe17 = interface; + nsIPrefService_safe17 = interface; + nsIPrintSession_safe17 = interface; + nsIPrintSettings_safe17 = interface; + nsIProfile_safe17 = interface; + nsIProfileChangeStatus_safe17 = interface; + nsIPrompt_safe17 = interface; + nsIPromptService_safe17 = interface; + nsIProperties_safe17 = interface; + nsIProtocolHandler_safe17 = interface; + nsIRequestObserver_safe17 = interface; + nsIScriptableInputStream_safe17 = interface; + nsISecurityWarningDialogs_safe17 = interface; + nsISelection_safe17 = interface; + nsIServiceManager_safe17 = interface; + nsISHistory_safe17 = interface; + nsISHistoryListener_safe17 = interface; + nsIStreamListener_safe17 = interface; + nsISupportsPrimitive_safe17 = interface; + nsISupportsID_safe17 = interface; + nsISupportsCString_safe17 = interface; + nsISupportsString_safe17 = interface; + nsISupportsPRBool_safe17 = interface; + nsISupportsPRUint8_safe17 = interface; + nsISupportsPRUint16_safe17 = interface; + nsISupportsPRUint32_safe17 = interface; + nsISupportsPRUint64_safe17 = interface; + nsISupportsPRTime_safe17 = interface; + nsISupportsChar_safe17 = interface; + nsISupportsPRInt16_safe17 = interface; + nsISupportsPRInt32_safe17 = interface; + nsISupportsPRInt64_safe17 = interface; + nsISupportsFloat_safe17 = interface; + nsISupportsDouble_safe17 = interface; + nsISupportsVoid_safe17 = interface; + nsISupportsInterfacePointer_safe17 = interface; + nsITooltipListener_safe17 = interface; + nsITooltipTextProvider_safe17 = interface; + nsITraceRefcnt_safe17 = interface; + nsIUnicharStreamListener_safe17 = interface; + nsIUploadChannel_safe17 = interface; + nsIURIContentListener_safe17 = interface; + nsIWeakReference_safe17 = interface; + nsISupportsWeakReference_safe17 = interface; + nsIWebBrowser_safe17 = interface; + nsIWebBrowserChrome_safe17 = interface; + nsIWebBrowserChromeFocus_safe17 = interface; + nsIWebBrowserFind_safe17 = interface; + nsIWebBrowserFindInFrames_safe17 = interface; + nsIWebBrowserFocus_safe17 = interface; + nsIWebBrowserPrint_safe17 = interface; + nsIWebBrowserSetup_safe17 = interface; + nsIWebProgress_safe17 = interface; + nsIWebProgressListener_safe17 = interface; + nsIWindowCreator_safe17 = interface; + nsIWindowWatcher_safe17 = interface; + nsIX509Cert_safe17 = interface; + nsIX509CertDB_safe17 = interface; + nsIX509CertValidity_safe17 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe17; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe17; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_safe17 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_safe17 = interface(nsISupports_safe17) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + procedure LoadSubScript(const url: PWideChar); safecall; + end; + + nsIArray_safe17 = interface(nsISupports_safe17) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result); safecall; + function IndexOf(startIndex: PRUint32; element: nsISupports_safe17): PRUint32; safecall; + function Enumerate(): nsISimpleEnumerator_safe17; safecall; + end; + + nsIMutableArray_safe17 = interface(nsIArray_safe17) + ['{2cd0b2f8-d4dd-48b8-87ba-b0200501f079}'] + procedure AppendElement(element: nsISupports_safe17; weak: PRBool); safecall; + procedure RemoveElementAt(index: PRUint32); safecall; + procedure InsertElementAt(element: nsISupports_safe17; index: PRUint32; weak: PRBool); safecall; + procedure Clear(); safecall; + end; + + nsIASN1Object_safe17 = interface(nsISupports_safe17) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(): PRUint32; safecall; + procedure SetType(aType: PRUint32); safecall; + property _Type: PRUint32 read GetType write SetType; + function GetTag(): PRUint32; safecall; + procedure SetTag(aTag: PRUint32); safecall; + property Tag: PRUint32 read GetTag write SetTag; + procedure GetDisplayName(aDisplayName: nsAString); safecall; + procedure SetDisplayName(const aDisplayName: nsAString); safecall; + procedure GetDisplayValue(aDisplayValue: nsAString); safecall; + procedure SetDisplayValue(const aDisplayValue: nsAString); safecall; + end; + + nsIASN1Sequence_safe17 = interface(nsIASN1Object_safe17) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(): nsIMutableArray_safe17; safecall; + procedure SetASN1Objects(aASN1Objects: nsIMutableArray_safe17); safecall; + property ASN1Objects: nsIMutableArray_safe17 read GetASN1Objects write SetASN1Objects; + function GetIsValidContainer(): PRBool; safecall; + procedure SetIsValidContainer(aIsValidContainer: PRBool); safecall; + property IsValidContainer: PRBool read GetIsValidContainer write SetIsValidContainer; + function GetIsExpanded(): PRBool; safecall; + procedure SetIsExpanded(aIsExpanded: PRBool); safecall; + property IsExpanded: PRBool read GetIsExpanded write SetIsExpanded; + end; + + nsIAuthPrompt_safe17 = interface(nsISupports_safe17) + ['{2f977d45-5485-11d4-87e2-0010a4e75ef2}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar): PRBool; safecall; + end; + + nsIBadCertListener_safe17 = interface(nsISupports_safe17) + ['{86960956-edb0-11d4-998b-00b0d02354a0}'] + function ConfirmUnknownIssuer(socketInfo: nsIInterfaceRequestor_safe17; cert: nsIX509Cert_safe17; out certAddType: PRInt16): PRBool; safecall; + function ConfirmMismatchDomain(socketInfo: nsIInterfaceRequestor_safe17; const targetURL: nsACString; cert: nsIX509Cert_safe17): PRBool; safecall; + function ConfirmCertExpired(socketInfo: nsIInterfaceRequestor_safe17; cert: nsIX509Cert_safe17): PRBool; safecall; + procedure NotifyCrlNextupdate(socketInfo: nsIInterfaceRequestor_safe17; const targetURL: nsACString; cert: nsIX509Cert_safe17); safecall; + end; + + nsISimpleEnumerator_safe17 = interface(nsISupports_safe17) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(): PRBool; safecall; + function GetNext(): nsISupports_safe17; safecall; + end; + + nsICategoryManager_safe17 = interface(nsISupports_safe17) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar): PAnsiChar; safecall; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool): PAnsiChar; safecall; + procedure DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool); safecall; + procedure DeleteCategory(const aCategory: PAnsiChar); safecall; + function EnumerateCategory(const aCategory: PAnsiChar): nsISimpleEnumerator_safe17; safecall; + function EnumerateCategories(): nsISimpleEnumerator_safe17; safecall; + end; + + nsICertificateDialogs_safe17 = interface(nsISupports_safe17) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_safe17; cert: nsIX509Cert_safe17; out trust: PRUint32): PRBool; safecall; + procedure NotifyCACertExists(ctx: nsIInterfaceRequestor_safe17); safecall; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe17; password: nsAString): PRBool; safecall; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe17; password: nsAString): PRBool; safecall; + procedure ViewCert(ctx: nsIInterfaceRequestor_safe17; cert: nsIX509Cert_safe17); safecall; + procedure CrlImportStatusDialog(ctx: nsIInterfaceRequestor_safe17; crl: nsICRLInfo_safe17); safecall; + end; + + nsIRequest_safe17 = interface(nsISupports_safe17) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + procedure GetName(aName: nsACString); safecall; + function IsPending(): PRBool; safecall; + function GetStatus(): nsresult; safecall; + property Status: nsresult read GetStatus; + procedure Cancel(aStatus: nsresult); safecall; + procedure Suspend(); safecall; + procedure Resume(); safecall; + function GetLoadGroup(): nsILoadGroup_safe17; safecall; + procedure SetLoadGroup(aLoadGroup: nsILoadGroup_safe17); safecall; + property LoadGroup: nsILoadGroup_safe17 read GetLoadGroup write SetLoadGroup; + function GetLoadFlags(): nsLoadFlags; safecall; + procedure SetLoadFlags(aLoadFlags: nsLoadFlags); safecall; + property LoadFlags: nsLoadFlags read GetLoadFlags write SetLoadFlags; + end; + + nsIChannel_safe17 = interface(nsIRequest_safe17) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(): nsIURI_safe17; safecall; + procedure SetOriginalURI(aOriginalURI: nsIURI_safe17); safecall; + property OriginalURI: nsIURI_safe17 read GetOriginalURI write SetOriginalURI; + function GetURI(): nsIURI_safe17; safecall; + property URI: nsIURI_safe17 read GetURI; + function GetOwner(): nsISupports_safe17; safecall; + procedure SetOwner(aOwner: nsISupports_safe17); safecall; + property Owner: nsISupports_safe17 read GetOwner write SetOwner; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe17; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe17); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe17 read GetNotificationCallbacks write SetNotificationCallbacks; + function GetSecurityInfo(): nsISupports_safe17; safecall; + property SecurityInfo: nsISupports_safe17 read GetSecurityInfo; + procedure GetContentType(aContentType: nsACString); safecall; + procedure SetContentType(const aContentType: nsACString); safecall; + procedure GetContentCharset(aContentCharset: nsACString); safecall; + procedure SetContentCharset(const aContentCharset: nsACString); safecall; + function GetContentLength(): PRInt32; safecall; + procedure SetContentLength(aContentLength: PRInt32); safecall; + property ContentLength: PRInt32 read GetContentLength write SetContentLength; + function Open(): nsIInputStream_safe17; safecall; + procedure AsyncOpen(aListener: nsIStreamListener_safe17; aContext: nsISupports_safe17); safecall; + end; + + nsIProgrammingLanguage_safe17 = interface(nsISupports_safe17) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIClassInfo_safe17 = interface(nsISupports_safe17) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + procedure GetInterfaces(out count: PRUint32; out _array_array); safecall; + function GetHelperForLanguage(language: PRUint32): nsISupports_safe17; safecall; + function GetContractID(): PAnsiChar; safecall; + property ContractID: PAnsiChar read GetContractID; + function GetClassDescription(): PAnsiChar; safecall; + property ClassDescription: PAnsiChar read GetClassDescription; + function GetClassID(): PGUID; safecall; + property ClassID: PGUID read GetClassID; + function GetImplementationLanguage(): PRUint32; safecall; + property ImplementationLanguage: PRUint32 read GetImplementationLanguage; + function GetFlags(): PRUint32; safecall; + property Flags: PRUint32 read GetFlags; + function GetClassIDNoAlloc(): TGUID; safecall; + property ClassIDNoAlloc: TGUID read GetClassIDNoAlloc; + end; + + nsIClipboardCommands_safe17 = interface(nsISupports_safe17) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(): PRBool; safecall; + function CanCopySelection(): PRBool; safecall; + function CanCopyLinkLocation(): PRBool; safecall; + function CanCopyImageLocation(): PRBool; safecall; + function CanCopyImageContents(): PRBool; safecall; + function CanPaste(): PRBool; safecall; + procedure CutSelection(); safecall; + procedure CopySelection(); safecall; + procedure CopyLinkLocation(); safecall; + procedure CopyImageLocation(); safecall; + procedure CopyImageContents(); safecall; + procedure Paste(); safecall; + procedure SelectAll(); safecall; + procedure SelectNone(); safecall; + end; + + nsIComponentManager_safe17 = interface(nsISupports_safe17) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + procedure GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + procedure CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_safe17; constref aIID: TGUID; out _result); safecall; + procedure CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_safe17; constref aIID: TGUID; out _result); safecall; + end; + + nsIComponentRegistrar_safe17 = interface(nsISupports_safe17) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + procedure AutoRegister(aSpec: nsIFile_safe17); safecall; + procedure AutoUnregister(aSpec: nsIFile_safe17); safecall; + procedure RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_safe17); safecall; + procedure UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_safe17); safecall; + procedure RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_safe17; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_safe17); safecall; + function IsCIDRegistered(constref aClass: TGUID): PRBool; safecall; + function IsContractIDRegistered(const aContractID: PAnsiChar): PRBool; safecall; + function EnumerateCIDs(): nsISimpleEnumerator_safe17; safecall; + function EnumerateContractIDs(): nsISimpleEnumerator_safe17; safecall; + function CIDToContractID(constref aClass: TGUID): PAnsiChar; safecall; + function ContractIDToCID(const aContractID: PAnsiChar): PGUID; safecall; + end; + + nsIContextMenuListener_safe17 = interface(nsISupports_safe17) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + procedure OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_safe17; aNode: nsIDOMNode_safe17); safecall; + end; + + nsICookie_safe17 = interface(nsISupports_safe17) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + procedure GetName(aName: nsACString); safecall; + procedure GetValue(aValue: nsACString); safecall; + function GetIsDomain(): PRBool; safecall; + property IsDomain: PRBool read GetIsDomain; + procedure GetHost(aHost: nsACString); safecall; + procedure GetPath(aPath: nsACString); safecall; + function GetIsSecure(): PRBool; safecall; + property IsSecure: PRBool read GetIsSecure; + function GetExpires(): PRUint64; safecall; + property Expires: PRUint64 read GetExpires; + function GetStatus(): nsCookieStatus; safecall; + property Status: nsCookieStatus read GetStatus; + function GetPolicy(): nsCookiePolicy; safecall; + property Policy: nsCookiePolicy read GetPolicy; + end; + + nsICookieManager_safe17 = interface(nsISupports_safe17) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + procedure RemoveAll(); safecall; + function GetEnumerator(): nsISimpleEnumerator_safe17; safecall; + property Enumerator: nsISimpleEnumerator_safe17 read GetEnumerator; + procedure Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool); safecall; + end; + + nsICRLInfo_safe17 = interface(nsISupports_safe17) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + function GetLastUpdate(): PRTime; safecall; + property LastUpdate: PRTime read GetLastUpdate; + function GetNextUpdate(): PRTime; safecall; + property NextUpdate: PRTime read GetNextUpdate; + procedure GetLastUpdateLocale(aLastUpdateLocale: nsAString); safecall; + procedure GetNextUpdateLocale(aNextUpdateLocale: nsAString); safecall; + procedure GetNameInDb(aNameInDb: nsAString); safecall; + procedure GetLastFetchURL(aLastFetchURL: nsACString); safecall; + end; + + nsIDebug_safe17 = interface(nsISupports_safe17) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + procedure Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Break(const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Abort(const aFile: PAnsiChar; aLine: PRInt32); safecall; + end; + + nsIFile_safe17 = interface(nsISupports_safe17) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + procedure Append(const node: nsAString); safecall; + procedure AppendNative(const node: nsACString); safecall; + procedure Normalize(); safecall; + procedure Create(_type: PRUint32; permissions: PRUint32); safecall; + procedure GetLeafName(aLeafName: nsAString); safecall; + procedure SetLeafName(const aLeafName: nsAString); safecall; + procedure GetNativeLeafName(aNativeLeafName: nsACString); safecall; + procedure SetNativeLeafName(const aNativeLeafName: nsACString); safecall; + procedure CopyTo(newParentDir: nsIFile_safe17; const newName: nsAString); safecall; + procedure CopyToNative(newParentDir: nsIFile_safe17; const newName: nsACString); safecall; + procedure CopyToFollowingLinks(newParentDir: nsIFile_safe17; const newName: nsAString); safecall; + procedure CopyToFollowingLinksNative(newParentDir: nsIFile_safe17; const newName: nsACString); safecall; + procedure MoveTo(newParentDir: nsIFile_safe17; const newName: nsAString); safecall; + procedure MoveToNative(newParentDir: nsIFile_safe17; const newName: nsACString); safecall; + procedure Remove(recursive: PRBool); safecall; + function GetPermissions(): PRUint32; safecall; + procedure SetPermissions(aPermissions: PRUint32); safecall; + property Permissions: PRUint32 read GetPermissions write SetPermissions; + function GetPermissionsOfLink(): PRUint32; safecall; + procedure SetPermissionsOfLink(aPermissionsOfLink: PRUint32); safecall; + property PermissionsOfLink: PRUint32 read GetPermissionsOfLink write SetPermissionsOfLink; + function GetLastModifiedTime(): PRInt64; safecall; + procedure SetLastModifiedTime(aLastModifiedTime: PRInt64); safecall; + property LastModifiedTime: PRInt64 read GetLastModifiedTime write SetLastModifiedTime; + function GetLastModifiedTimeOfLink(): PRInt64; safecall; + procedure SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64); safecall; + property LastModifiedTimeOfLink: PRInt64 read GetLastModifiedTimeOfLink write SetLastModifiedTimeOfLink; + function GetFileSize(): PRInt64; safecall; + procedure SetFileSize(aFileSize: PRInt64); safecall; + property FileSize: PRInt64 read GetFileSize write SetFileSize; + function GetFileSizeOfLink(): PRInt64; safecall; + property FileSizeOfLink: PRInt64 read GetFileSizeOfLink; + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetNativeTarget(aNativeTarget: nsACString); safecall; + procedure GetPath(aPath: nsAString); safecall; + procedure GetNativePath(aNativePath: nsACString); safecall; + function Exists(): PRBool; safecall; + function IsWritable(): PRBool; safecall; + function IsReadable(): PRBool; safecall; + function IsExecutable(): PRBool; safecall; + function IsHidden(): PRBool; safecall; + function IsDirectory(): PRBool; safecall; + function IsFile(): PRBool; safecall; + function IsSymlink(): PRBool; safecall; + function IsSpecial(): PRBool; safecall; + procedure CreateUnique(_type: PRUint32; permissions: PRUint32); safecall; + function Clone(): nsIFile_safe17; safecall; + function Equals(inFile: nsIFile_safe17): PRBool; safecall; + function _Contains(inFile: nsIFile_safe17; recur: PRBool): PRBool; safecall; + function GetParent(): nsIFile_safe17; safecall; + property Parent: nsIFile_safe17 read GetParent; + function GetDirectoryEntries(): nsISimpleEnumerator_safe17; safecall; + property DirectoryEntries: nsISimpleEnumerator_safe17 read GetDirectoryEntries; + end; + + nsIDirectoryServiceProvider_safe17 = interface(nsISupports_safe17) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile_safe17; safecall; + end; + + nsIDirectoryServiceProvider2_safe17 = interface(nsIDirectoryServiceProvider_safe17) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar): nsISimpleEnumerator_safe17; safecall; + end; + + nsIDirectoryService_safe17 = interface(nsISupports_safe17) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + procedure Init(); safecall; + procedure RegisterProvider(prov: nsIDirectoryServiceProvider_safe17); safecall; + procedure UnregisterProvider(prov: nsIDirectoryServiceProvider_safe17); safecall; + end; + + nsIDOM3DocumentEvent_safe17 = interface(nsISupports_safe17) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(): nsIDOMEventGroup_safe17; safecall; + end; + + nsIDOM3EventTarget_safe17 = interface(nsISupports_safe17) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + procedure AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe17; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe17); safecall; + procedure RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe17; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe17); safecall; + function CanTrigger(const _type: nsAString): PRBool; safecall; + function IsRegisteredHere(const _type: nsAString): PRBool; safecall; + end; + + nsIDOMAbstractView_safe17 = interface(nsISupports_safe17) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(): nsIDOMDocumentView_safe17; safecall; + property Document: nsIDOMDocumentView_safe17 read GetDocument; + end; + + nsIDOMNode_safe17 = interface(nsISupports_safe17) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + procedure GetNodeName(aNodeName: nsAString); safecall; + procedure GetNodeValue(aNodeValue: nsAString); safecall; + procedure SetNodeValue(const aNodeValue: nsAString); safecall; + function GetNodeType(): PRUint16; safecall; + property NodeType: PRUint16 read GetNodeType; + function GetParentNode(): nsIDOMNode_safe17; safecall; + property ParentNode: nsIDOMNode_safe17 read GetParentNode; + function GetChildNodes(): nsIDOMNodeList_safe17; safecall; + property ChildNodes: nsIDOMNodeList_safe17 read GetChildNodes; + function GetFirstChild(): nsIDOMNode_safe17; safecall; + property FirstChild: nsIDOMNode_safe17 read GetFirstChild; + function GetLastChild(): nsIDOMNode_safe17; safecall; + property LastChild: nsIDOMNode_safe17 read GetLastChild; + function GetPreviousSibling(): nsIDOMNode_safe17; safecall; + property PreviousSibling: nsIDOMNode_safe17 read GetPreviousSibling; + function GetNextSibling(): nsIDOMNode_safe17; safecall; + property NextSibling: nsIDOMNode_safe17 read GetNextSibling; + function GetAttributes(): nsIDOMNamedNodeMap_safe17; safecall; + property Attributes: nsIDOMNamedNodeMap_safe17 read GetAttributes; + function GetOwnerDocument(): nsIDOMDocument_safe17; safecall; + property OwnerDocument: nsIDOMDocument_safe17 read GetOwnerDocument; + function InsertBefore(newChild: nsIDOMNode_safe17; refChild: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function ReplaceChild(newChild: nsIDOMNode_safe17; oldChild: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function RemoveChild(oldChild: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function AppendChild(newChild: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function HasChildNodes(): PRBool; safecall; + function CloneNode(deep: PRBool): nsIDOMNode_safe17; safecall; + procedure Normalize(); safecall; + function IsSupported(const feature: nsAString; const version: nsAString): PRBool; safecall; + procedure GetNamespaceURI(aNamespaceURI: nsAString); safecall; + procedure GetPrefix(aPrefix: nsAString); safecall; + procedure SetPrefix(const aPrefix: nsAString); safecall; + procedure GetLocalName(aLocalName: nsAString); safecall; + function HasAttributes(): PRBool; safecall; + end; + + nsIDOMAttr_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetSpecified(): PRBool; safecall; + property Specified: PRBool read GetSpecified; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetOwnerElement(): nsIDOMElement_safe17; safecall; + property OwnerElement: nsIDOMElement_safe17 read GetOwnerElement; + end; + + nsIDOMBarProp_safe17 = interface(nsISupports_safe17) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(): PRBool; safecall; + procedure SetVisible(aVisible: PRBool); safecall; + property Visible: PRBool read GetVisible write SetVisible; + end; + + nsIDOMCharacterData_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString); safecall; + procedure AppendData(const arg: nsAString); safecall; + procedure InsertData(offset: PRUint32; const arg: nsAString); safecall; + procedure DeleteData(offset: PRUint32; count: PRUint32); safecall; + procedure ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString); safecall; + end; + + nsIDOMText_safe17 = interface(nsIDOMCharacterData_safe17) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32): nsIDOMText_safe17; safecall; + end; + + nsIDOMCDATASection_safe17 = interface(nsIDOMText_safe17) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_safe17 = interface(nsIDOMCharacterData_safe17) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_safe17 = interface(nsISupports_safe17) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + procedure GetIdentifier(aIdentifier: nsAString); safecall; + procedure GetListStyle(aListStyle: nsAString); safecall; + procedure GetSeparator(aSeparator: nsAString); safecall; + end; + + nsIDOMCSSValue_safe17 = interface(nsISupports_safe17) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetCssValueType(): PRUint16; safecall; + property CssValueType: PRUint16 read GetCssValueType; + end; + + nsIDOMCSSPrimitiveValue_safe17 = interface(nsIDOMCSSValue_safe17) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(): PRUint16; safecall; + property PrimitiveType: PRUint16 read GetPrimitiveType; + procedure SetFloatValue(unitType: PRUint16; floatValue: Single); safecall; + function GetFloatValue(unitType: PRUint16): Single; safecall; + procedure SetStringValue(stringType: PRUint16; const stringValue: nsAString); safecall; + procedure GetStringValue(_retval: nsAString); safecall; + function GetCounterValue(): nsIDOMCounter_safe17; safecall; + function GetRectValue(): nsIDOMRect_safe17; safecall; + function GetRGBColorValue(): nsIDOMRGBColor_safe17; safecall; + end; + + nsIDOMCSSRule_safe17 = interface(nsISupports_safe17) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetParentStyleSheet(): nsIDOMCSSStyleSheet_safe17; safecall; + property ParentStyleSheet: nsIDOMCSSStyleSheet_safe17 read GetParentStyleSheet; + function GetParentRule(): nsIDOMCSSRule_safe17; safecall; + property ParentRule: nsIDOMCSSRule_safe17 read GetParentRule; + end; + + nsIDOMCSSRuleList_safe17 = interface(nsISupports_safe17) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSRule_safe17; safecall; + end; + + nsIDOMCSSStyleDeclaration_safe17 = interface(nsISupports_safe17) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + procedure GetPropertyValue(const propertyName: nsAString; _retval: nsAString); safecall; + function GetPropertyCSSValue(const propertyName: nsAString): nsIDOMCSSValue_safe17; safecall; + procedure RemoveProperty(const propertyName: nsAString; _retval: nsAString); safecall; + procedure GetPropertyPriority(const propertyName: nsAString; _retval: nsAString); safecall; + procedure SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + function GetParentRule(): nsIDOMCSSRule_safe17; safecall; + property ParentRule: nsIDOMCSSRule_safe17 read GetParentRule; + end; + + nsIDOMStyleSheet_safe17 = interface(nsISupports_safe17) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetOwnerNode(): nsIDOMNode_safe17; safecall; + property OwnerNode: nsIDOMNode_safe17 read GetOwnerNode; + function GetParentStyleSheet(): nsIDOMStyleSheet_safe17; safecall; + property ParentStyleSheet: nsIDOMStyleSheet_safe17 read GetParentStyleSheet; + procedure GetHref(aHref: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + function GetMedia(): nsIDOMMediaList_safe17; safecall; + property Media: nsIDOMMediaList_safe17 read GetMedia; + end; + + nsIDOMCSSStyleSheet_safe17 = interface(nsIDOMStyleSheet_safe17) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(): nsIDOMCSSRule_safe17; safecall; + property OwnerRule: nsIDOMCSSRule_safe17 read GetOwnerRule; + function GetCssRules(): nsIDOMCSSRuleList_safe17; safecall; + property CssRules: nsIDOMCSSRuleList_safe17 read GetCssRules; + function InsertRule(const rule: nsAString; index: PRUint32): PRUint32; safecall; + procedure DeleteRule(index: PRUint32); safecall; + end; + + nsIDOMCSSValueList_safe17 = interface(nsIDOMCSSValue_safe17) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSValue_safe17; safecall; + end; + + nsIDOMEvent_safe17 = interface(nsISupports_safe17) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + procedure GetType(aType: nsAString); safecall; + function GetTarget(): nsIDOMEventTarget_safe17; safecall; + property Target: nsIDOMEventTarget_safe17 read GetTarget; + function GetCurrentTarget(): nsIDOMEventTarget_safe17; safecall; + property CurrentTarget: nsIDOMEventTarget_safe17 read GetCurrentTarget; + function GetEventPhase(): PRUint16; safecall; + property EventPhase: PRUint16 read GetEventPhase; + function GetBubbles(): PRBool; safecall; + property Bubbles: PRBool read GetBubbles; + function GetCancelable(): PRBool; safecall; + property Cancelable: PRBool read GetCancelable; + function GetTimeStamp(): DOMTimeStamp; safecall; + property TimeStamp: DOMTimeStamp read GetTimeStamp; + procedure StopPropagation(); safecall; + procedure PreventDefault(); safecall; + procedure InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool); safecall; + end; + + nsIDOMCustomEvent_safe17 = interface(nsIDOMEvent_safe17) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + procedure SetCurrentTarget(target: nsIDOMNode_safe17); safecall; + procedure SetEventPhase(phase: PRUint16); safecall; + end; + + nsIDOMDocument_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(): nsIDOMDocumentType_safe17; safecall; + property Doctype: nsIDOMDocumentType_safe17 read GetDoctype; + function GetImplementation(): nsIDOMDOMImplementation_safe17; safecall; + property _Implementation: nsIDOMDOMImplementation_safe17 read GetImplementation; + function GetDocumentElement(): nsIDOMElement_safe17; safecall; + property DocumentElement: nsIDOMElement_safe17 read GetDocumentElement; + function CreateElement(const tagName: nsAString): nsIDOMElement_safe17; safecall; + function CreateDocumentFragment(): nsIDOMDocumentFragment_safe17; safecall; + function CreateTextNode(const data: nsAString): nsIDOMText_safe17; safecall; + function CreateComment(const data: nsAString): nsIDOMComment_safe17; safecall; + function CreateCDATASection(const data: nsAString): nsIDOMCDATASection_safe17; safecall; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString): nsIDOMProcessingInstruction_safe17; safecall; + function CreateAttribute(const name: nsAString): nsIDOMAttr_safe17; safecall; + function CreateEntityReference(const name: nsAString): nsIDOMEntityReference_safe17; safecall; + function GetElementsByTagName(const tagname: nsAString): nsIDOMNodeList_safe17; safecall; + function ImportNode(importedNode: nsIDOMNode_safe17; deep: PRBool): nsIDOMNode_safe17; safecall; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMElement_safe17; safecall; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMAttr_safe17; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe17; safecall; + function GetElementById(const elementId: nsAString): nsIDOMElement_safe17; safecall; + end; + + nsIDOMDocumentEvent_safe17 = interface(nsISupports_safe17) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString): nsIDOMEvent_safe17; safecall; + end; + + nsIDOMDocumentFragment_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_safe17 = interface(nsISupports_safe17) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(): nsIDOMRange_safe17; safecall; + end; + + nsIDOMDocumentStyle_safe17 = interface(nsISupports_safe17) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(): nsIDOMStyleSheetList_safe17; safecall; + property StyleSheets: nsIDOMStyleSheetList_safe17 read GetStyleSheets; + end; + + nsIDOMDocumentType_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetEntities(): nsIDOMNamedNodeMap_safe17; safecall; + property Entities: nsIDOMNamedNodeMap_safe17 read GetEntities; + function GetNotations(): nsIDOMNamedNodeMap_safe17; safecall; + property Notations: nsIDOMNamedNodeMap_safe17 read GetNotations; + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetInternalSubset(aInternalSubset: nsAString); safecall; + end; + + nsIDOMDocumentView_safe17 = interface(nsISupports_safe17) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(): nsIDOMAbstractView_safe17; safecall; + property DefaultView: nsIDOMAbstractView_safe17 read GetDefaultView; + end; + + nsIDOMDOMException_safe17 = interface(nsISupports_safe17) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(): PRUint32; safecall; + property Code: PRUint32 read GetCode; + end; + + nsIDOMDOMImplementation_safe17 = interface(nsISupports_safe17) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString): PRBool; safecall; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString): nsIDOMDocumentType_safe17; safecall; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_safe17): nsIDOMDocument_safe17; safecall; + end; + + nsIDOMElement_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + procedure GetTagName(aTagName: nsAString); safecall; + procedure GetAttribute(const name: nsAString; _retval: nsAString); safecall; + procedure SetAttribute(const name: nsAString; const value: nsAString); safecall; + procedure RemoveAttribute(const name: nsAString); safecall; + function GetAttributeNode(const name: nsAString): nsIDOMAttr_safe17; safecall; + function SetAttributeNode(newAttr: nsIDOMAttr_safe17): nsIDOMAttr_safe17; safecall; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_safe17): nsIDOMAttr_safe17; safecall; + function GetElementsByTagName(const name: nsAString): nsIDOMNodeList_safe17; safecall; + procedure GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString); safecall; + procedure SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString); safecall; + procedure RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString); safecall; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMAttr_safe17; safecall; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_safe17): nsIDOMAttr_safe17; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe17; safecall; + function HasAttribute(const name: nsAString): PRBool; safecall; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString): PRBool; safecall; + end; + + nsIDOMEntity_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetNotationName(aNotationName: nsAString); safecall; + end; + + nsIDOMEntityReference_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_safe17 = interface(nsISupports_safe17) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_safe17): PRBool; safecall; + end; + + nsIDOMEventListener_safe17 = interface(nsISupports_safe17) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + procedure HandleEvent(event: nsIDOMEvent_safe17); safecall; + end; + + nsIDOMEventTarget_safe17 = interface(nsISupports_safe17) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + procedure AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe17; useCapture: PRBool); safecall; + procedure RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe17; useCapture: PRBool); safecall; + function DispatchEvent(evt: nsIDOMEvent_safe17): PRBool; safecall; + end; + + nsIDOMHTMLElement_safe17 = interface(nsIDOMElement_safe17) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + procedure GetId(aId: nsAString); safecall; + procedure SetId(const aId: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetLang(aLang: nsAString); safecall; + procedure SetLang(const aLang: nsAString); safecall; + procedure GetDir(aDir: nsAString); safecall; + procedure SetDir(const aDir: nsAString); safecall; + procedure GetClassName(aClassName: nsAString); safecall; + procedure SetClassName(const aClassName: nsAString); safecall; + end; + + nsIDOMHTMLAnchorElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLAppletElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetObject(aObject: nsAString); safecall; + procedure SetObject(const aObject: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLAreaElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + function GetNoHref(): PRBool; safecall; + procedure SetNoHref(aNoHref: PRBool); safecall; + property NoHref: PRBool read GetNoHref write SetNoHref; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseFontElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + end; + + nsIDOMHTMLBodyElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + procedure GetALink(aALink: nsAString); safecall; + procedure SetALink(const aALink: nsAString); safecall; + procedure GetBackground(aBackground: nsAString); safecall; + procedure SetBackground(const aBackground: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetLink(aLink: nsAString); safecall; + procedure SetLink(const aLink: nsAString); safecall; + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetVLink(aVLink: nsAString); safecall; + procedure SetVLink(const aVLink: nsAString); safecall; + end; + + nsIDOMHTMLBRElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + procedure GetClear(aClear: nsAString); safecall; + procedure SetClear(const aClear: nsAString); safecall; + end; + + nsIDOMHTMLButtonElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLCollection_safe17 = interface(nsISupports_safe17) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMNode_safe17; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe17; safecall; + end; + + nsIDOMHTMLDirectoryElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDivElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLDListElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDocument_safe17 = interface(nsIDOMDocument_safe17) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetReferrer(aReferrer: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure GetURL(aURL: nsAString); safecall; + function GetBody(): nsIDOMHTMLElement_safe17; safecall; + procedure SetBody(aBody: nsIDOMHTMLElement_safe17); safecall; + property Body: nsIDOMHTMLElement_safe17 read GetBody write SetBody; + function GetImages(): nsIDOMHTMLCollection_safe17; safecall; + property Images: nsIDOMHTMLCollection_safe17 read GetImages; + function GetApplets(): nsIDOMHTMLCollection_safe17; safecall; + property Applets: nsIDOMHTMLCollection_safe17 read GetApplets; + function GetLinks(): nsIDOMHTMLCollection_safe17; safecall; + property Links: nsIDOMHTMLCollection_safe17 read GetLinks; + function GetForms(): nsIDOMHTMLCollection_safe17; safecall; + property Forms: nsIDOMHTMLCollection_safe17 read GetForms; + function GetAnchors(): nsIDOMHTMLCollection_safe17; safecall; + property Anchors: nsIDOMHTMLCollection_safe17 read GetAnchors; + procedure GetCookie(aCookie: nsAString); safecall; + procedure SetCookie(const aCookie: nsAString); safecall; + procedure Open(); safecall; + procedure Close(); safecall; + procedure Write(const text: nsAString); safecall; + procedure Writeln(const text: nsAString); safecall; + function GetElementsByName(const elementName: nsAString): nsIDOMNodeList_safe17; safecall; + end; + + nsIDOMHTMLEmbedElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLFieldSetElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + end; + + nsIDOMHTMLFontElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + end; + + nsIDOMHTMLFormElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(): nsIDOMHTMLCollection_safe17; safecall; + property Elements: nsIDOMHTMLCollection_safe17 read GetElements; + function GetLength(): PRInt32; safecall; + property Length: PRInt32 read GetLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAcceptCharset(aAcceptCharset: nsAString); safecall; + procedure SetAcceptCharset(const aAcceptCharset: nsAString); safecall; + procedure GetAction(aAction: nsAString); safecall; + procedure SetAction(const aAction: nsAString); safecall; + procedure GetEnctype(aEnctype: nsAString); safecall; + procedure SetEnctype(const aEnctype: nsAString); safecall; + procedure GetMethod(aMethod: nsAString); safecall; + procedure SetMethod(const aMethod: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure Submit(); safecall; + procedure Reset(); safecall; + end; + + nsIDOMHTMLFrameElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetNoResize(): PRBool; safecall; + procedure SetNoResize(aNoResize: PRBool); safecall; + property NoResize: PRBool read GetNoResize write SetNoResize; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe17; safecall; + property ContentDocument: nsIDOMDocument_safe17 read GetContentDocument; + end; + + nsIDOMHTMLFrameSetElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + procedure GetCols(aCols: nsAString); safecall; + procedure SetCols(const aCols: nsAString); safecall; + procedure GetRows(aRows: nsAString); safecall; + procedure SetRows(const aRows: nsAString); safecall; + end; + + nsIDOMHTMLHeadElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + procedure GetProfile(aProfile: nsAString); safecall; + procedure SetProfile(const aProfile: nsAString); safecall; + end; + + nsIDOMHTMLHeadingElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLHRElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + function GetNoShade(): PRBool; safecall; + procedure SetNoShade(aNoShade: PRBool); safecall; + property NoShade: PRBool read GetNoShade write SetNoShade; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLHtmlElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + procedure GetVersion(aVersion: nsAString); safecall; + procedure SetVersion(const aVersion: nsAString); safecall; + end; + + nsIDOMHTMLIFrameElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe17; safecall; + property ContentDocument: nsIDOMDocument_safe17 read GetContentDocument; + end; + + nsIDOMHTMLImageElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + function GetHeight(): PRInt32; safecall; + procedure SetHeight(aHeight: PRInt32); safecall; + property Height: PRInt32 read GetHeight write SetHeight; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + function GetIsMap(): PRBool; safecall; + procedure SetIsMap(aIsMap: PRBool); safecall; + property IsMap: PRBool read GetIsMap write SetIsMap; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLInputElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetDefaultChecked(): PRBool; safecall; + procedure SetDefaultChecked(aDefaultChecked: PRBool); safecall; + property DefaultChecked: PRBool read GetDefaultChecked write SetDefaultChecked; + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetAccept(aAccept: nsAString); safecall; + procedure SetAccept(const aAccept: nsAString); safecall; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + function GetChecked(): PRBool; safecall; + procedure SetChecked(aChecked: PRBool); safecall; + property Checked: PRBool read GetChecked write SetChecked; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetSize(): PRUint32; safecall; + procedure SetSize(aSize: PRUint32); safecall; + property Size: PRUint32 read GetSize write SetSize; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + procedure Click(); safecall; + end; + + nsIDOMHTMLIsIndexElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetPrompt(aPrompt: nsAString); safecall; + procedure SetPrompt(const aPrompt: nsAString); safecall; + end; + + nsIDOMHTMLLabelElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + end; + + nsIDOMHTMLLegendElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLLIElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + function GetValue(): PRInt32; safecall; + procedure SetValue(aValue: PRInt32); safecall; + property Value: PRInt32 read GetValue write SetValue; + end; + + nsIDOMHTMLLinkElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLMapElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(): nsIDOMHTMLCollection_safe17; safecall; + property Areas: nsIDOMHTMLCollection_safe17 read GetAreas; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + end; + + nsIDOMHTMLMenuElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLMetaElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + procedure GetContent(aContent: nsAString); safecall; + procedure SetContent(const aContent: nsAString); safecall; + procedure GetHttpEquiv(aHttpEquiv: nsAString); safecall; + procedure SetHttpEquiv(const aHttpEquiv: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScheme(aScheme: nsAString); safecall; + procedure SetScheme(const aScheme: nsAString); safecall; + end; + + nsIDOMHTMLModElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + procedure GetDateTime(aDateTime: nsAString); safecall; + procedure SetDateTime(const aDateTime: nsAString); safecall; + end; + + nsIDOMHTMLObjectElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetCodeType(aCodeType: nsAString); safecall; + procedure SetCodeType(const aCodeType: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetDeclare(): PRBool; safecall; + procedure SetDeclare(aDeclare: PRBool); safecall; + property Declare: PRBool read GetDeclare write SetDeclare; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetStandby(aStandby: nsAString); safecall; + procedure SetStandby(const aStandby: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe17; safecall; + property ContentDocument: nsIDOMDocument_safe17 read GetContentDocument; + end; + + nsIDOMHTMLOListElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + function GetStart(): PRInt32; safecall; + procedure SetStart(aStart: PRInt32); safecall; + property Start: PRInt32 read GetStart write SetStart; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLOptGroupElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + end; + + nsIDOMHTMLOptionElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + function GetDefaultSelected(): PRBool; safecall; + procedure SetDefaultSelected(aDefaultSelected: PRBool); safecall; + property DefaultSelected: PRBool read GetDefaultSelected write SetDefaultSelected; + procedure GetText(aText: nsAString); safecall; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + function GetSelected(): PRBool; safecall; + procedure SetSelected(aSelected: PRBool); safecall; + property Selected: PRBool read GetSelected write SetSelected; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLOptionsCollection_safe17 = interface(nsISupports_safe17) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function Item(index: PRUint32): nsIDOMNode_safe17; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe17; safecall; + end; + + nsIDOMHTMLParagraphElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLParamElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure GetValueType(aValueType: nsAString); safecall; + procedure SetValueType(const aValueType: nsAString); safecall; + end; + + nsIDOMHTMLPreElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLQuoteElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + end; + + nsIDOMHTMLScriptElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + procedure GetEvent(aEvent: nsAString); safecall; + procedure SetEvent(const aEvent: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + function GetDefer(): PRBool; safecall; + procedure SetDefer(aDefer: PRBool); safecall; + property Defer: PRBool read GetDefer write SetDefer; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLSelectElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetSelectedIndex(): PRInt32; safecall; + procedure SetSelectedIndex(aSelectedIndex: PRInt32); safecall; + property SelectedIndex: PRInt32 read GetSelectedIndex write SetSelectedIndex; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + function GetOptions(): nsIDOMHTMLOptionsCollection_safe17; safecall; + property Options: nsIDOMHTMLOptionsCollection_safe17 read GetOptions; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMultiple(): PRBool; safecall; + procedure SetMultiple(aMultiple: PRBool); safecall; + property Multiple: PRBool read GetMultiple write SetMultiple; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure Add(element: nsIDOMHTMLElement_safe17; before: nsIDOMHTMLElement_safe17); safecall; + procedure Remove(index: PRInt32); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLStyleElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLTableCaptionElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLTableCellElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(): PRInt32; safecall; + property CellIndex: PRInt32 read GetCellIndex; + procedure GetAbbr(aAbbr: nsAString); safecall; + procedure SetAbbr(const aAbbr: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAxis(aAxis: nsAString); safecall; + procedure SetAxis(const aAxis: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetColSpan(): PRInt32; safecall; + procedure SetColSpan(aColSpan: PRInt32); safecall; + property ColSpan: PRInt32 read GetColSpan write SetColSpan; + procedure GetHeaders(aHeaders: nsAString); safecall; + procedure SetHeaders(const aHeaders: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetNoWrap(): PRBool; safecall; + procedure SetNoWrap(aNoWrap: PRBool); safecall; + property NoWrap: PRBool read GetNoWrap write SetNoWrap; + function GetRowSpan(): PRInt32; safecall; + procedure SetRowSpan(aRowSpan: PRInt32); safecall; + property RowSpan: PRInt32 read GetRowSpan write SetRowSpan; + procedure GetScope(aScope: nsAString); safecall; + procedure SetScope(const aScope: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableColElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetSpan(): PRInt32; safecall; + procedure SetSpan(aSpan: PRInt32); safecall; + property Span: PRInt32 read GetSpan write SetSpan; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(): nsIDOMHTMLTableCaptionElement_safe17; safecall; + procedure SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_safe17); safecall; + property Caption: nsIDOMHTMLTableCaptionElement_safe17 read GetCaption write SetCaption; + function GetTHead(): nsIDOMHTMLTableSectionElement_safe17; safecall; + procedure SetTHead(aTHead: nsIDOMHTMLTableSectionElement_safe17); safecall; + property THead: nsIDOMHTMLTableSectionElement_safe17 read GetTHead write SetTHead; + function GetTFoot(): nsIDOMHTMLTableSectionElement_safe17; safecall; + procedure SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_safe17); safecall; + property TFoot: nsIDOMHTMLTableSectionElement_safe17 read GetTFoot write SetTFoot; + function GetRows(): nsIDOMHTMLCollection_safe17; safecall; + property Rows: nsIDOMHTMLCollection_safe17 read GetRows; + function GetTBodies(): nsIDOMHTMLCollection_safe17; safecall; + property TBodies: nsIDOMHTMLCollection_safe17 read GetTBodies; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCellPadding(aCellPadding: nsAString); safecall; + procedure SetCellPadding(const aCellPadding: nsAString); safecall; + procedure GetCellSpacing(aCellSpacing: nsAString); safecall; + procedure SetCellSpacing(const aCellSpacing: nsAString); safecall; + procedure GetFrame(aFrame: nsAString); safecall; + procedure SetFrame(const aFrame: nsAString); safecall; + procedure GetRules(aRules: nsAString); safecall; + procedure SetRules(const aRules: nsAString); safecall; + procedure GetSummary(aSummary: nsAString); safecall; + procedure SetSummary(const aSummary: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function CreateTHead(): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteTHead(); safecall; + function CreateTFoot(): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteTFoot(); safecall; + function CreateCaption(): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteCaption(); safecall; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableRowElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(): PRInt32; safecall; + property RowIndex: PRInt32 read GetRowIndex; + function GetSectionRowIndex(): PRInt32; safecall; + property SectionRowIndex: PRInt32 read GetSectionRowIndex; + function GetCells(): nsIDOMHTMLCollection_safe17; safecall; + property Cells: nsIDOMHTMLCollection_safe17 read GetCells; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function InsertCell(index: PRInt32): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteCell(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableSectionElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function GetRows(): nsIDOMHTMLCollection_safe17; safecall; + property Rows: nsIDOMHTMLCollection_safe17 read GetRows; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe17; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTextAreaElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetForm(): nsIDOMHTMLFormElement_safe17; safecall; + property Form: nsIDOMHTMLFormElement_safe17 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetCols(): PRInt32; safecall; + procedure SetCols(aCols: PRInt32); safecall; + property Cols: PRInt32 read GetCols write SetCols; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetRows(): PRInt32; safecall; + procedure SetRows(aRows: PRInt32); safecall; + property Rows: PRInt32 read GetRows write SetRows; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + end; + + nsIDOMHTMLTitleElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + end; + + nsIDOMHTMLUListElement_safe17 = interface(nsIDOMHTMLElement_safe17) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMMediaList_safe17 = interface(nsISupports_safe17) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + procedure GetMediaText(aMediaText: nsAString); safecall; + procedure SetMediaText(const aMediaText: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure DeleteMedium(const oldMedium: nsAString); safecall; + procedure AppendMedium(const newMedium: nsAString); safecall; + end; + + nsIDOMUIEvent_safe17 = interface(nsIDOMEvent_safe17) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(): nsIDOMAbstractView_safe17; safecall; + property View: nsIDOMAbstractView_safe17 read GetView; + function GetDetail(): PRInt32; safecall; + property Detail: PRInt32 read GetDetail; + procedure InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe17; detailArg: PRInt32); safecall; + end; + + nsIDOMMouseEvent_safe17 = interface(nsIDOMUIEvent_safe17) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(): PRInt32; safecall; + property ScreenX: PRInt32 read GetScreenX; + function GetScreenY(): PRInt32; safecall; + property ScreenY: PRInt32 read GetScreenY; + function GetClientX(): PRInt32; safecall; + property ClientX: PRInt32 read GetClientX; + function GetClientY(): PRInt32; safecall; + property ClientY: PRInt32 read GetClientY; + function GetCtrlKey(): PRBool; safecall; + property CtrlKey: PRBool read GetCtrlKey; + function GetShiftKey(): PRBool; safecall; + property ShiftKey: PRBool read GetShiftKey; + function GetAltKey(): PRBool; safecall; + property AltKey: PRBool read GetAltKey; + function GetMetaKey(): PRBool; safecall; + property MetaKey: PRBool read GetMetaKey; + function GetButton(): PRUint16; safecall; + property Button: PRUint16 read GetButton; + function GetRelatedTarget(): nsIDOMEventTarget_safe17; safecall; + property RelatedTarget: nsIDOMEventTarget_safe17 read GetRelatedTarget; + procedure InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe17; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_safe17); safecall; + end; + + nsIDOMNamedNodeMap_safe17 = interface(nsISupports_safe17) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString): nsIDOMNode_safe17; safecall; + function SetNamedItem(arg: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function RemoveNamedItem(const name: nsAString): nsIDOMNode_safe17; safecall; + function Item(index: PRUint32): nsIDOMNode_safe17; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe17; safecall; + function SetNamedItemNS(arg: nsIDOMNode_safe17): nsIDOMNode_safe17; safecall; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe17; safecall; + end; + + nsIDOMNodeList_safe17 = interface(nsISupports_safe17) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32): nsIDOMNode_safe17; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + end; + + nsIDOMNotation_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + end; + + nsIDOMProcessingInstruction_safe17 = interface(nsIDOMNode_safe17) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + end; + + nsIDOMRange_safe17 = interface(nsISupports_safe17) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(): nsIDOMNode_safe17; safecall; + property StartContainer: nsIDOMNode_safe17 read GetStartContainer; + function GetStartOffset(): PRInt32; safecall; + property StartOffset: PRInt32 read GetStartOffset; + function GetEndContainer(): nsIDOMNode_safe17; safecall; + property EndContainer: nsIDOMNode_safe17 read GetEndContainer; + function GetEndOffset(): PRInt32; safecall; + property EndOffset: PRInt32 read GetEndOffset; + function GetCollapsed(): PRBool; safecall; + property Collapsed: PRBool read GetCollapsed; + function GetCommonAncestorContainer(): nsIDOMNode_safe17; safecall; + property CommonAncestorContainer: nsIDOMNode_safe17 read GetCommonAncestorContainer; + procedure SetStart(refNode: nsIDOMNode_safe17; offset: PRInt32); safecall; + procedure SetEnd(refNode: nsIDOMNode_safe17; offset: PRInt32); safecall; + procedure SetStartBefore(refNode: nsIDOMNode_safe17); safecall; + procedure SetStartAfter(refNode: nsIDOMNode_safe17); safecall; + procedure SetEndBefore(refNode: nsIDOMNode_safe17); safecall; + procedure SetEndAfter(refNode: nsIDOMNode_safe17); safecall; + procedure Collapse(toStart: PRBool); safecall; + procedure SelectNode(refNode: nsIDOMNode_safe17); safecall; + procedure SelectNodeContents(refNode: nsIDOMNode_safe17); safecall; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_safe17): PRInt16; safecall; + procedure DeleteContents(); safecall; + function ExtractContents(): nsIDOMDocumentFragment_safe17; safecall; + function CloneContents(): nsIDOMDocumentFragment_safe17; safecall; + procedure InsertNode(newNode: nsIDOMNode_safe17); safecall; + procedure SurroundContents(newParent: nsIDOMNode_safe17); safecall; + function CloneRange(): nsIDOMRange_safe17; safecall; + procedure ToString(_retval: nsAString); safecall; + procedure Detach(); safecall; + end; + + nsIDOMRect_safe17 = interface(nsISupports_safe17) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Top: nsIDOMCSSPrimitiveValue_safe17 read GetTop; + function GetRight(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Right: nsIDOMCSSPrimitiveValue_safe17 read GetRight; + function GetBottom(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Bottom: nsIDOMCSSPrimitiveValue_safe17 read GetBottom; + function GetLeft(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Left: nsIDOMCSSPrimitiveValue_safe17 read GetLeft; + end; + + nsIDOMRGBColor_safe17 = interface(nsISupports_safe17) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Red: nsIDOMCSSPrimitiveValue_safe17 read GetRed; + function GetGreen(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Green: nsIDOMCSSPrimitiveValue_safe17 read GetGreen; + function GetBlue(): nsIDOMCSSPrimitiveValue_safe17; safecall; + property Blue: nsIDOMCSSPrimitiveValue_safe17 read GetBlue; + end; + + nsIDOMStyleSheetList_safe17 = interface(nsISupports_safe17) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMStyleSheet_safe17; safecall; + end; + + nsIDOMWindow_safe17 = interface(nsISupports_safe17) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(): nsIDOMDocument_safe17; safecall; + property Document: nsIDOMDocument_safe17 read GetDocument; + function GetParent(): nsIDOMWindow_safe17; safecall; + property Parent: nsIDOMWindow_safe17 read GetParent; + function GetTop(): nsIDOMWindow_safe17; safecall; + property Top: nsIDOMWindow_safe17 read GetTop; + function GetScrollbars(): nsIDOMBarProp_safe17; safecall; + property Scrollbars: nsIDOMBarProp_safe17 read GetScrollbars; + function GetFrames(): nsIDOMWindowCollection_safe17; safecall; + property Frames: nsIDOMWindowCollection_safe17 read GetFrames; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTextZoom(): Single; safecall; + procedure SetTextZoom(aTextZoom: Single); safecall; + property TextZoom: Single read GetTextZoom write SetTextZoom; + function GetScrollX(): PRInt32; safecall; + property ScrollX: PRInt32 read GetScrollX; + function GetScrollY(): PRInt32; safecall; + property ScrollY: PRInt32 read GetScrollY; + procedure ScrollTo(xScroll: PRInt32; yScroll: PRInt32); safecall; + procedure ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32); safecall; + function GetSelection(): nsISelection_safe17; safecall; + procedure ScrollByLines(numLines: PRInt32); safecall; + procedure ScrollByPages(numPages: PRInt32); safecall; + procedure SizeToContent(); safecall; + end; + + nsIDOMWindow2_safe17 = interface(nsIDOMWindow_safe17) + ['{65455132-b96a-40ec-adea-52fa22b1028c}'] + function GetWindowRoot(): nsIDOMEventTarget_safe17; safecall; + property WindowRoot: nsIDOMEventTarget_safe17 read GetWindowRoot; + end; + + nsIDOMWindowCollection_safe17 = interface(nsISupports_safe17) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMWindow_safe17; safecall; + function NamedItem(const name: nsAString): nsIDOMWindow_safe17; safecall; + end; + + nsIEmbeddingSiteWindow_safe17 = interface(nsISupports_safe17) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); safecall; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); safecall; + procedure SetFocus(); safecall; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(aVisibility: PRBool); safecall; + property Visibility: PRBool read GetVisibility write SetVisibility; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetSiteWindow(): Pointer; safecall; + property SiteWindow: Pointer read GetSiteWindow; + end; + + nsIFactory_safe17 = interface(nsISupports_safe17) + ['{00000001-0000-0000-c000-000000000046}'] + procedure CreateInstance(aOuter: nsISupports_safe17; constref iid: TGUID; out _result); safecall; + procedure LockFactory(lock: PRBool); safecall; + end; + + nsIURI_safe17 = interface(nsISupports_safe17) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + procedure GetSpec(aSpec: nsACString); safecall; + procedure SetSpec(const aSpec: nsACString); safecall; + procedure GetPrePath(aPrePath: nsACString); safecall; + procedure GetScheme(aScheme: nsACString); safecall; + procedure SetScheme(const aScheme: nsACString); safecall; + procedure GetUserPass(aUserPass: nsACString); safecall; + procedure SetUserPass(const aUserPass: nsACString); safecall; + procedure GetUsername(aUsername: nsACString); safecall; + procedure SetUsername(const aUsername: nsACString); safecall; + procedure GetPassword(aPassword: nsACString); safecall; + procedure SetPassword(const aPassword: nsACString); safecall; + procedure GetHostPort(aHostPort: nsACString); safecall; + procedure SetHostPort(const aHostPort: nsACString); safecall; + procedure GetHost(aHost: nsACString); safecall; + procedure SetHost(const aHost: nsACString); safecall; + function GetPort(): PRInt32; safecall; + procedure SetPort(aPort: PRInt32); safecall; + property Port: PRInt32 read GetPort write SetPort; + procedure GetPath(aPath: nsACString); safecall; + procedure SetPath(const aPath: nsACString); safecall; + function Equals(other: nsIURI_safe17): PRBool; safecall; + function SchemeIs(const scheme: PAnsiChar): PRBool; safecall; + function Clone(): nsIURI_safe17; safecall; + procedure Resolve(const relativePath: nsACString; _retval: nsACString); safecall; + procedure GetAsciiSpec(aAsciiSpec: nsACString); safecall; + procedure GetAsciiHost(aAsciiHost: nsACString); safecall; + procedure GetOriginCharset(aOriginCharset: nsACString); safecall; + end; + + nsIURL_safe17 = interface(nsIURI_safe17) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + procedure GetFilePath(aFilePath: nsACString); safecall; + procedure SetFilePath(const aFilePath: nsACString); safecall; + procedure GetParam(aParam: nsACString); safecall; + procedure SetParam(const aParam: nsACString); safecall; + procedure GetQuery(aQuery: nsACString); safecall; + procedure SetQuery(const aQuery: nsACString); safecall; + procedure GetRef(aRef: nsACString); safecall; + procedure SetRef(const aRef: nsACString); safecall; + procedure GetDirectory(aDirectory: nsACString); safecall; + procedure SetDirectory(const aDirectory: nsACString); safecall; + procedure GetFileName(aFileName: nsACString); safecall; + procedure SetFileName(const aFileName: nsACString); safecall; + procedure GetFileBaseName(aFileBaseName: nsACString); safecall; + procedure SetFileBaseName(const aFileBaseName: nsACString); safecall; + procedure GetFileExtension(aFileExtension: nsACString); safecall; + procedure SetFileExtension(const aFileExtension: nsACString); safecall; + procedure GetCommonBaseSpec(aURIToCompare: nsIURI_safe17; _retval: nsACString); safecall; + procedure GetRelativeSpec(aURIToCompare: nsIURI_safe17; _retval: nsACString); safecall; + end; + + nsIFileURL_safe17 = interface(nsIURL_safe17) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(): nsIFile_safe17; safecall; + procedure SetFile(aFile: nsIFile_safe17); safecall; + property _File: nsIFile_safe17 read GetFile write SetFile; + end; + + nsIGlobalHistory_safe17 = interface(nsISupports_safe17) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + procedure AddPage(const aURL: PAnsiChar); safecall; + function IsVisited(const aURL: PAnsiChar): PRBool; safecall; + end; + + nsIHistoryEntry_safe17 = interface(nsISupports_safe17) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(): nsIURI_safe17; safecall; + property URI: nsIURI_safe17 read GetURI; + function GetTitle(): PWideChar; safecall; + property Title: PWideChar read GetTitle; + function GetIsSubFrame(): PRBool; safecall; + property IsSubFrame: PRBool read GetIsSubFrame; + end; + + nsIHttpChannel_safe17 = interface(nsIChannel_safe17) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + procedure GetRequestMethod(aRequestMethod: nsACString); safecall; + procedure SetRequestMethod(const aRequestMethod: nsACString); safecall; + function GetReferrer(): nsIURI_safe17; safecall; + procedure SetReferrer(aReferrer: nsIURI_safe17); safecall; + property Referrer: nsIURI_safe17 read GetReferrer write SetReferrer; + function GetRequestHeader(const aHeader: nsACString): nsACString; safecall; + procedure SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool); safecall; + procedure VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_safe17); safecall; + function GetAllowPipelining(): PRBool; safecall; + procedure SetAllowPipelining(aAllowPipelining: PRBool); safecall; + property AllowPipelining: PRBool read GetAllowPipelining write SetAllowPipelining; + function GetRedirectionLimit(): PRUint32; safecall; + procedure SetRedirectionLimit(aRedirectionLimit: PRUint32); safecall; + property RedirectionLimit: PRUint32 read GetRedirectionLimit write SetRedirectionLimit; + function GetResponseStatus(): PRUint32; safecall; + property ResponseStatus: PRUint32 read GetResponseStatus; + procedure GetResponseStatusText(aResponseStatusText: nsACString); safecall; + function GetRequestSucceeded(): PRBool; safecall; + property RequestSucceeded: PRBool read GetRequestSucceeded; + function GetResponseHeader(const header: nsACString): nsACString; safecall; + procedure SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool); safecall; + procedure VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_safe17); safecall; + function IsNoStoreResponse(): PRBool; safecall; + function IsNoCacheResponse(): PRBool; safecall; + end; + + nsIHttpHeaderVisitor_safe17 = interface(nsISupports_safe17) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + procedure VisitHeader(const aHeader: nsACString; const aValue: nsACString); safecall; + end; + + nsIInputStream_safe17 = interface(nsISupports_safe17) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: Pchar; aCount: PRUint32): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIInterfaceRequestor_safe17 = interface(nsISupports_safe17) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + procedure GetInterface(constref uuid: TGUID; out _result); safecall; + end; + + nsIIOService_safe17 = interface(nsISupports_safe17) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar): nsIProtocolHandler_safe17; safecall; + function GetProtocolFlags(const aScheme: PAnsiChar): PRUint32; safecall; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe17): nsIURI_safe17; safecall; + function NewFileURI(aFile: nsIFile_safe17): nsIURI_safe17; safecall; + function NewChannelFromURI(aURI: nsIURI_safe17): nsIChannel_safe17; safecall; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe17): nsIChannel_safe17; safecall; + function GetOffline(): PRBool; safecall; + procedure SetOffline(aOffline: PRBool); safecall; + property Offline: PRBool read GetOffline write SetOffline; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar): PRBool; safecall; + function ExtractScheme(const urlString: nsACString): nsACString; safecall; + end; + + nsILoadGroup_safe17 = interface(nsIRequest_safe17) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(): nsIRequestObserver_safe17; safecall; + procedure SetGroupObserver(aGroupObserver: nsIRequestObserver_safe17); safecall; + property GroupObserver: nsIRequestObserver_safe17 read GetGroupObserver write SetGroupObserver; + function GetDefaultLoadRequest(): nsIRequest_safe17; safecall; + procedure SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_safe17); safecall; + property DefaultLoadRequest: nsIRequest_safe17 read GetDefaultLoadRequest write SetDefaultLoadRequest; + procedure AddRequest(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17); safecall; + procedure RemoveRequest(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17; aStatus: nsresult); safecall; + function GetRequests(): nsISimpleEnumerator_safe17; safecall; + property Requests: nsISimpleEnumerator_safe17 read GetRequests; + function GetActiveCount(): PRUint32; safecall; + property ActiveCount: PRUint32 read GetActiveCount; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe17; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe17); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe17 read GetNotificationCallbacks write SetNotificationCallbacks; + end; + + nsILocalFile_safe17 = interface(nsIFile_safe17) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + procedure InitWithPath(const filePath: nsAString); safecall; + procedure InitWithNativePath(const filePath: nsACString); safecall; + procedure InitWithFile(aFile: nsILocalFile_safe17); safecall; + function GetFollowLinks(): PRBool; safecall; + procedure SetFollowLinks(aFollowLinks: PRBool); safecall; + property FollowLinks: PRBool read GetFollowLinks write SetFollowLinks; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32): PPRFileDesc; safecall; + function OpenANSIFileDesc(const mode: PAnsiChar): PFILE; safecall; + function Load(): PPRLibrary; safecall; + function GetDiskSpaceAvailable(): PRInt64; safecall; + property DiskSpaceAvailable: PRInt64 read GetDiskSpaceAvailable; + procedure AppendRelativePath(const relativeFilePath: nsAString); safecall; + procedure AppendRelativeNativePath(const relativeFilePath: nsACString); safecall; + procedure GetPersistentDescriptor(aPersistentDescriptor: nsACString); safecall; + procedure SetPersistentDescriptor(const aPersistentDescriptor: nsACString); safecall; + procedure Reveal(); safecall; + procedure Launch(); safecall; + function GetRelativeDescriptor(fromFile: nsILocalFile_safe17): nsACString; safecall; + procedure SetRelativeDescriptor(fromFile: nsILocalFile_safe17; const relativeDesc: nsACString); safecall; + end; + + nsIMemory_safe17 = interface(nsISupports_safe17) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + procedure HeapMinimize(immediate: PRBool); safecall; + function IsLowMemory(): PRBool; safecall; + end; + + nsIModule_safe17 = interface(nsISupports_safe17) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + procedure GetClassObject(aCompMgr: nsIComponentManager_safe17; constref aClass: TGUID; constref aIID: TGUID; out aResult); safecall; + procedure RegisterSelf(aCompMgr: nsIComponentManager_safe17; aLocation: nsIFile_safe17; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterSelf(aCompMgr: nsIComponentManager_safe17; aLocation: nsIFile_safe17; const aLoaderStr: PAnsiChar); safecall; + function CanUnload(aCompMgr: nsIComponentManager_safe17): PRBool; safecall; + end; + + nsIObserver_safe17 = interface(nsISupports_safe17) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + procedure Observe(aSubject: nsISupports_safe17; const aTopic: PAnsiChar; const aData: PWideChar); safecall; + end; + + nsIObserverService_safe17 = interface(nsISupports_safe17) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + procedure AddObserver(anObserver: nsIObserver_safe17; const aTopic: PAnsiChar; ownsWeak: PRBool); safecall; + procedure RemoveObserver(anObserver: nsIObserver_safe17; const aTopic: PAnsiChar); safecall; + procedure NotifyObservers(aSubject: nsISupports_safe17; const aTopic: PAnsiChar; const someData: PWideChar); safecall; + function EnumerateObservers(const aTopic: PAnsiChar): nsISimpleEnumerator_safe17; safecall; + end; + + nsIOutputStream_safe17 = interface(nsISupports_safe17) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + procedure Flush(); safecall; + function Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function WriteFrom(aFromStream: nsIInputStream_safe17; aCount: PRUint32): PRUint32; safecall; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIPassword_safe17 = interface(nsISupports_safe17) + ['{cf39c2b0-1e4b-11d5-a549-0010a401eb10}'] + procedure GetHost(aHost: nsACString); safecall; + procedure GetUser(aUser: nsAString); safecall; + procedure GetPassword(aPassword: nsAString); safecall; + end; + + nsIPrefBranch_safe17 = interface(nsISupports_safe17) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(): PAnsiChar; safecall; + property Root: PAnsiChar read GetRoot; + function GetPrefType(const aPrefName: PAnsiChar): PRInt32; safecall; + function GetBoolPref(const aPrefName: PAnsiChar): PRBool; safecall; + procedure SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + function GetCharPref(const aPrefName: PAnsiChar): PAnsiChar; safecall; + procedure SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar); safecall; + function GetIntPref(const aPrefName: PAnsiChar): PRInt32; safecall; + procedure SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + procedure GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue); safecall; + procedure SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_safe17); safecall; + procedure ClearUserPref(const aPrefName: PAnsiChar); safecall; + procedure LockPref(const aPrefName: PAnsiChar); safecall; + function PrefHasUserValue(const aPrefName: PAnsiChar): PRBool; safecall; + function PrefIsLocked(const aPrefName: PAnsiChar): PRBool; safecall; + procedure UnlockPref(const aPrefName: PAnsiChar); safecall; + procedure DeleteBranch(const aStartingAt: PAnsiChar); safecall; + procedure GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array); safecall; + procedure ResetBranch(const aStartingAt: PAnsiChar); safecall; + end; + + nsIPrefLocalizedString_safe17 = interface(nsISupports_safe17) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(): PWideChar; safecall; + procedure SetData(const aData: PWideChar); safecall; + property Data: PWideChar read GetData write SetData; + function ToString(): PWideChar; safecall; + procedure SetDataWithLength(length: PRUint32; const data: PWideChar); safecall; + end; + + nsIPrefService_safe17 = interface(nsISupports_safe17) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + procedure ReadUserPrefs(aFile: nsIFile_safe17); safecall; + procedure ResetPrefs(); safecall; + procedure ResetUserPrefs(); safecall; + procedure SavePrefFile(aFile: nsIFile_safe17); safecall; + function GetBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe17; safecall; + function GetDefaultBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe17; safecall; + end; + + nsIPrintSession_safe17 = interface(nsISupports_safe17) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_safe17 = interface(nsISupports_safe17) + ['{83427530-f790-11d4-a869-00105a183419}'] + procedure SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool); safecall; + function GetPrintOptions(aType: PRInt32): PRBool; safecall; + function GetPrintOptionsBits(): PRInt32; safecall; + procedure GetPageSizeInTwips(out aWidth: PRInt32; out aHeight: PRInt32); safecall; + function Clone(): nsIPrintSettings_safe17; safecall; + procedure Assign(aPS: nsIPrintSettings_safe17); safecall; + function GetPrintSession(): nsIPrintSession_safe17; safecall; + procedure SetPrintSession(aPrintSession: nsIPrintSession_safe17); safecall; + property PrintSession: nsIPrintSession_safe17 read GetPrintSession write SetPrintSession; + function GetStartPageRange(): PRInt32; safecall; + procedure SetStartPageRange(aStartPageRange: PRInt32); safecall; + property StartPageRange: PRInt32 read GetStartPageRange write SetStartPageRange; + function GetEndPageRange(): PRInt32; safecall; + procedure SetEndPageRange(aEndPageRange: PRInt32); safecall; + property EndPageRange: PRInt32 read GetEndPageRange write SetEndPageRange; + 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 GetScaling(): Double; safecall; + procedure SetScaling(aScaling: Double); safecall; + property Scaling: Double read GetScaling write SetScaling; + function GetPrintBGColors(): PRBool; safecall; + procedure SetPrintBGColors(aPrintBGColors: PRBool); safecall; + property PrintBGColors: PRBool read GetPrintBGColors write SetPrintBGColors; + function GetPrintBGImages(): PRBool; safecall; + procedure SetPrintBGImages(aPrintBGImages: PRBool); safecall; + property PrintBGImages: PRBool read GetPrintBGImages write SetPrintBGImages; + function GetPrintRange(): PRInt16; safecall; + procedure SetPrintRange(aPrintRange: PRInt16); safecall; + property PrintRange: PRInt16 read GetPrintRange write SetPrintRange; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetDocURL(): PWideChar; safecall; + procedure SetDocURL(const aDocURL: PWideChar); safecall; + property DocURL: PWideChar read GetDocURL write SetDocURL; + function GetHeaderStrLeft(): PWideChar; safecall; + procedure SetHeaderStrLeft(const aHeaderStrLeft: PWideChar); safecall; + property HeaderStrLeft: PWideChar read GetHeaderStrLeft write SetHeaderStrLeft; + function GetHeaderStrCenter(): PWideChar; safecall; + procedure SetHeaderStrCenter(const aHeaderStrCenter: PWideChar); safecall; + property HeaderStrCenter: PWideChar read GetHeaderStrCenter write SetHeaderStrCenter; + function GetHeaderStrRight(): PWideChar; safecall; + procedure SetHeaderStrRight(const aHeaderStrRight: PWideChar); safecall; + property HeaderStrRight: PWideChar read GetHeaderStrRight write SetHeaderStrRight; + function GetFooterStrLeft(): PWideChar; safecall; + procedure SetFooterStrLeft(const aFooterStrLeft: PWideChar); safecall; + property FooterStrLeft: PWideChar read GetFooterStrLeft write SetFooterStrLeft; + function GetFooterStrCenter(): PWideChar; safecall; + procedure SetFooterStrCenter(const aFooterStrCenter: PWideChar); safecall; + property FooterStrCenter: PWideChar read GetFooterStrCenter write SetFooterStrCenter; + function GetFooterStrRight(): PWideChar; safecall; + procedure SetFooterStrRight(const aFooterStrRight: PWideChar); safecall; + property FooterStrRight: PWideChar read GetFooterStrRight write SetFooterStrRight; + function GetHowToEnableFrameUI(): PRInt16; safecall; + procedure SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16); safecall; + property HowToEnableFrameUI: PRInt16 read GetHowToEnableFrameUI write SetHowToEnableFrameUI; + function GetIsCancelled(): PRBool; safecall; + procedure SetIsCancelled(aIsCancelled: PRBool); safecall; + property IsCancelled: PRBool read GetIsCancelled write SetIsCancelled; + function GetPrintFrameTypeUsage(): PRInt16; safecall; + procedure SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16); safecall; + property PrintFrameTypeUsage: PRInt16 read GetPrintFrameTypeUsage write SetPrintFrameTypeUsage; + function GetPrintFrameType(): PRInt16; safecall; + procedure SetPrintFrameType(aPrintFrameType: PRInt16); safecall; + property PrintFrameType: PRInt16 read GetPrintFrameType write SetPrintFrameType; + function GetPrintSilent(): PRBool; safecall; + procedure SetPrintSilent(aPrintSilent: PRBool); safecall; + property PrintSilent: PRBool read GetPrintSilent write SetPrintSilent; + function GetShrinkToFit(): PRBool; safecall; + procedure SetShrinkToFit(aShrinkToFit: PRBool); safecall; + property ShrinkToFit: PRBool read GetShrinkToFit write SetShrinkToFit; + function GetShowPrintProgress(): PRBool; safecall; + procedure SetShowPrintProgress(aShowPrintProgress: PRBool); safecall; + property ShowPrintProgress: PRBool read GetShowPrintProgress write SetShowPrintProgress; + function GetPaperName(): PWideChar; safecall; + procedure SetPaperName(const aPaperName: PWideChar); safecall; + property PaperName: PWideChar read GetPaperName write SetPaperName; + function GetPaperSizeType(): PRInt16; safecall; + procedure SetPaperSizeType(aPaperSizeType: PRInt16); safecall; + property PaperSizeType: PRInt16 read GetPaperSizeType write SetPaperSizeType; + function GetPaperData(): PRInt16; safecall; + procedure SetPaperData(aPaperData: PRInt16); safecall; + property PaperData: PRInt16 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(): PRInt16; safecall; + procedure SetPaperSizeUnit(aPaperSizeUnit: PRInt16); safecall; + property PaperSizeUnit: PRInt16 read GetPaperSizeUnit write SetPaperSizeUnit; + function GetPlexName(): PWideChar; safecall; + procedure SetPlexName(const aPlexName: PWideChar); safecall; + property PlexName: PWideChar read GetPlexName write SetPlexName; + function GetPrintReversed(): PRBool; safecall; + procedure SetPrintReversed(aPrintReversed: PRBool); safecall; + property PrintReversed: PRBool read GetPrintReversed write SetPrintReversed; + function GetPrintInColor(): PRBool; safecall; + procedure SetPrintInColor(aPrintInColor: PRBool); safecall; + property PrintInColor: PRBool read GetPrintInColor write SetPrintInColor; + function GetPaperSize(): PRInt32; safecall; + procedure SetPaperSize(aPaperSize: PRInt32); safecall; + property PaperSize: PRInt32 read GetPaperSize write SetPaperSize; + function GetOrientation(): PRInt32; safecall; + procedure SetOrientation(aOrientation: PRInt32); safecall; + property Orientation: PRInt32 read GetOrientation write SetOrientation; + function GetPrintCommand(): PWideChar; safecall; + procedure SetPrintCommand(const aPrintCommand: PWideChar); safecall; + property PrintCommand: PWideChar read GetPrintCommand write SetPrintCommand; + function GetNumCopies(): PRInt32; safecall; + procedure SetNumCopies(aNumCopies: PRInt32); safecall; + property NumCopies: PRInt32 read GetNumCopies write SetNumCopies; + function GetPrinterName(): PWideChar; safecall; + procedure SetPrinterName(const aPrinterName: PWideChar); safecall; + property PrinterName: PWideChar read GetPrinterName write SetPrinterName; + function GetPrintToFile(): PRBool; safecall; + procedure SetPrintToFile(aPrintToFile: PRBool); safecall; + property PrintToFile: PRBool read GetPrintToFile write SetPrintToFile; + function GetToFileName(): PWideChar; safecall; + procedure SetToFileName(const aToFileName: PWideChar); safecall; + property ToFileName: PWideChar read GetToFileName write SetToFileName; + function GetPrintPageDelay(): PRInt32; safecall; + procedure SetPrintPageDelay(aPrintPageDelay: PRInt32); safecall; + property PrintPageDelay: PRInt32 read GetPrintPageDelay write SetPrintPageDelay; + function GetIsInitializedFromPrinter(): PRBool; safecall; + procedure SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool); safecall; + property IsInitializedFromPrinter: PRBool read GetIsInitializedFromPrinter write SetIsInitializedFromPrinter; + function GetIsInitializedFromPrefs(): PRBool; safecall; + procedure SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool); safecall; + property IsInitializedFromPrefs: PRBool read GetIsInitializedFromPrefs write SetIsInitializedFromPrefs; + procedure SetMarginInTwips(var aMargin: nsMargin); safecall; + procedure GetMarginInTwips(var aMargin: nsMargin); safecall; + end; + + nsIProfile_safe17 = interface(nsISupports_safe17) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(): PRInt32; safecall; + property ProfileCount: PRInt32 read GetProfileCount; + procedure GetProfileList(out length: PRUint32; out profileNames_array); safecall; + function ProfileExists(const profileName: PWideChar): PRBool; safecall; + function GetCurrentProfile(): PWideChar; safecall; + procedure SetCurrentProfile(const aCurrentProfile: PWideChar); safecall; + property CurrentProfile: PWideChar read GetCurrentProfile write SetCurrentProfile; + procedure ShutDownCurrentProfile(shutDownType: PRUint32); safecall; + procedure CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool); safecall; + procedure RenameProfile(const oldName: PWideChar; const newName: PWideChar); safecall; + procedure DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool); safecall; + procedure CloneProfile(const profileName: PWideChar); safecall; + end; + + nsIProfileChangeStatus_safe17 = interface(nsISupports_safe17) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + procedure VetoChange(); safecall; + procedure ChangeFailed(); safecall; + end; + + nsIPrompt_safe17 = interface(nsISupports_safe17) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + procedure Alert(const dialogTitle: PWideChar; const text: PWideChar); safecall; + procedure AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool); safecall; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar): PRBool; safecall; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRInt32; safecall; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32): PRBool; safecall; + end; + + nsIPromptService_safe17 = interface(nsISupports_safe17) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + procedure Alert(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar); safecall; + procedure AlertCheck(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; + function Confirm(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; + function ConfirmCheck(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function ConfirmEx(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; + function Prompt(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptPassword(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function Select(aParent: nsIDOMWindow_safe17; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; + end; + + nsIProperties_safe17 = interface(nsISupports_safe17) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + procedure Get(const prop: PAnsiChar; constref iid: TGUID; out _result); safecall; + procedure _Set(const prop: PAnsiChar; value: nsISupports_safe17); safecall; + function Has(const prop: PAnsiChar): PRBool; safecall; + procedure Undefine(const prop: PAnsiChar); safecall; + procedure GetKeys(out count: PRUint32; out keys_array); safecall; + end; + + nsIProtocolHandler_safe17 = interface(nsISupports_safe17) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + procedure GetScheme(aScheme: nsACString); safecall; + function GetDefaultPort(): PRInt32; safecall; + property DefaultPort: PRInt32 read GetDefaultPort; + function GetProtocolFlags(): PRUint32; safecall; + property ProtocolFlags: PRUint32 read GetProtocolFlags; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe17): nsIURI_safe17; safecall; + function NewChannel(aURI: nsIURI_safe17): nsIChannel_safe17; safecall; + function AllowPort(port: PRInt32; const scheme: PAnsiChar): PRBool; safecall; + end; + + nsIRequestObserver_safe17 = interface(nsISupports_safe17) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + procedure OnStartRequest(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17); safecall; + procedure OnStopRequest(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17; aStatusCode: nsresult); safecall; + end; + + nsIScriptableInputStream_safe17 = interface(nsISupports_safe17) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + procedure Close(); safecall; + procedure Init(aInputStream: nsIInputStream_safe17); safecall; + function Available(): PRUint32; safecall; + function Read(aCount: PRUint32): PAnsiChar; safecall; + end; + + nsISecurityWarningDialogs_safe17 = interface(nsISupports_safe17) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_safe17): PRBool; safecall; + end; + + nsISelection_safe17 = interface(nsISupports_safe17) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(): nsIDOMNode_safe17; safecall; + property AnchorNode: nsIDOMNode_safe17 read GetAnchorNode; + function GetAnchorOffset(): PRInt32; safecall; + property AnchorOffset: PRInt32 read GetAnchorOffset; + function GetFocusNode(): nsIDOMNode_safe17; safecall; + property FocusNode: nsIDOMNode_safe17 read GetFocusNode; + function GetFocusOffset(): PRInt32; safecall; + property FocusOffset: PRInt32 read GetFocusOffset; + function GetIsCollapsed(): PRBool; safecall; + property IsCollapsed: PRBool read GetIsCollapsed; + function GetRangeCount(): PRInt32; safecall; + property RangeCount: PRInt32 read GetRangeCount; + function GetRangeAt(index: PRInt32): nsIDOMRange_safe17; safecall; + procedure Collapse(parentNode: nsIDOMNode_safe17; offset: PRInt32); safecall; + procedure Extend(parentNode: nsIDOMNode_safe17; offset: PRInt32); safecall; + procedure CollapseToStart(); safecall; + procedure CollapseToEnd(); safecall; + function ContainsNode(node: nsIDOMNode_safe17; entirelyContained: PRBool): PRBool; safecall; + procedure SelectAllChildren(parentNode: nsIDOMNode_safe17); safecall; + procedure AddRange(range: nsIDOMRange_safe17); safecall; + procedure RemoveRange(range: nsIDOMRange_safe17); safecall; + procedure RemoveAllRanges(); safecall; + procedure DeleteFromDocument(); safecall; + procedure SelectionLanguageChange(langRTL: PRBool); safecall; + function ToString(): PWideChar; safecall; + end; + + nsIServiceManager_safe17 = interface(nsISupports_safe17) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + procedure GetService(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID): PRBool; safecall; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID): PRBool; safecall; + end; + + nsISHistory_safe17 = interface(nsISupports_safe17) + ['{7294fe9b-14d8-11d5-9882-00c04fa02f40}'] + function GetCount(): PRInt32; safecall; + property Count: PRInt32 read GetCount; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool): nsIHistoryEntry_safe17; safecall; + procedure PurgeHistory(numEntries: PRInt32); safecall; + procedure AddSHistoryListener(aListener: nsISHistoryListener_safe17); safecall; + procedure RemoveSHistoryListener(aListener: nsISHistoryListener_safe17); safecall; + function GetSHistoryEnumerator(): nsISimpleEnumerator_safe17; safecall; + property SHistoryEnumerator: nsISimpleEnumerator_safe17 read GetSHistoryEnumerator; + end; + + nsISHistoryListener_safe17 = interface(nsISupports_safe17) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + procedure OnHistoryNewEntry(aNewURI: nsIURI_safe17); safecall; + function OnHistoryGoBack(aBackURI: nsIURI_safe17): PRBool; safecall; + function OnHistoryGoForward(aForwardURI: nsIURI_safe17): PRBool; safecall; + function OnHistoryReload(aReloadURI: nsIURI_safe17; aReloadFlags: PRUint32): PRBool; safecall; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_safe17): PRBool; safecall; + function OnHistoryPurge(aNumEntries: PRInt32): PRBool; safecall; + end; + + nsIStreamListener_safe17 = interface(nsIRequestObserver_safe17) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + procedure OnDataAvailable(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17; aInputStream: nsIInputStream_safe17; aOffset: PRUint32; aCount: PRUint32); safecall; + end; + + nsISupportsPrimitive_safe17 = interface(nsISupports_safe17) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + end; + + nsISupportsID_safe17 = interface(nsISupportsPrimitive_safe17) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(): PGUID; safecall; + procedure SetData(const aData: PGUID); safecall; + property Data: PGUID read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsCString_safe17 = interface(nsISupportsPrimitive_safe17) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsACString); safecall; + procedure SetData(const aData: nsACString); safecall; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsString_safe17 = interface(nsISupportsPrimitive_safe17) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function ToString(): PWideChar; safecall; + end; + + nsISupportsPRBool_safe17 = interface(nsISupportsPrimitive_safe17) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(): PRBool; safecall; + procedure SetData(aData: PRBool); safecall; + property Data: PRBool read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint8_safe17 = interface(nsISupportsPrimitive_safe17) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint8; safecall; + procedure SetData(aData: PRUint8); safecall; + property Data: PRUint8 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint16_safe17 = interface(nsISupportsPrimitive_safe17) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint16; safecall; + procedure SetData(aData: PRUint16); safecall; + property Data: PRUint16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint32_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint32; safecall; + procedure SetData(aData: PRUint32); safecall; + property Data: PRUint32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint64_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint64; safecall; + procedure SetData(aData: PRUint64); safecall; + property Data: PRUint64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRTime_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(): PRTime; safecall; + procedure SetData(aData: PRTime); safecall; + property Data: PRTime read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsChar_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(): AnsiChar; safecall; + procedure SetData(aData: AnsiChar); safecall; + property Data: AnsiChar read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt16_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt16; safecall; + procedure SetData(aData: PRInt16); safecall; + property Data: PRInt16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt32_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt32; safecall; + procedure SetData(aData: PRInt32); safecall; + property Data: PRInt32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt64_safe17 = interface(nsISupportsPrimitive_safe17) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt64; safecall; + procedure SetData(aData: PRInt64); safecall; + property Data: PRInt64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsFloat_safe17 = interface(nsISupportsPrimitive_safe17) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Single; safecall; + procedure SetData(aData: Single); safecall; + property Data: Single read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsDouble_safe17 = interface(nsISupportsPrimitive_safe17) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Double; safecall; + procedure SetData(aData: Double); safecall; + property Data: Double read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsVoid_safe17 = interface(nsISupportsPrimitive_safe17) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(): Pointer; safecall; + procedure SetData(aData: Pointer); safecall; + property Data: Pointer read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsInterfacePointer_safe17 = interface(nsISupportsPrimitive_safe17) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(): nsISupports_safe17; safecall; + procedure SetData(aData: nsISupports_safe17); safecall; + property Data: nsISupports_safe17 read GetData write SetData; + function GetDataIID(): PGUID; safecall; + procedure SetDataIID(const aDataIID: PGUID); safecall; + property DataIID: PGUID read GetDataIID write SetDataIID; + function ToString(): PAnsiChar; safecall; + end; + + nsITooltipListener_safe17 = interface(nsISupports_safe17) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; + procedure OnHideTooltip(); safecall; + end; + + nsITooltipTextProvider_safe17 = interface(nsISupports_safe17) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_safe17; out aText: PWideChar): PRBool; safecall; + end; + + nsITraceRefcnt_safe17 = interface(nsISupports_safe17) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + procedure LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar); safecall; + procedure LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_safe17); safecall; + procedure LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_safe17); safecall; + end; + + nsIUnicharStreamListener_safe17 = interface(nsIRequestObserver_safe17) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + procedure OnUnicharDataAvailable(aRequest: nsIRequest_safe17; aContext: nsISupports_safe17; const aData: nsAString); safecall; + end; + + nsIUploadChannel_safe17 = interface(nsISupports_safe17) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + procedure SetUploadStream(aStream: nsIInputStream_safe17; const aContentType: nsACString; aContentLength: PRInt32); safecall; + function GetUploadStream(): nsIInputStream_safe17; safecall; + property UploadStream: nsIInputStream_safe17 read GetUploadStream; + end; + + nsIURIContentListener_safe17 = interface(nsISupports_safe17) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_safe17): PRBool; safecall; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_safe17; out aContentHandler: nsIStreamListener_safe17): PRBool; safecall; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function GetLoadCookie(): nsISupports_safe17; safecall; + procedure SetLoadCookie(aLoadCookie: nsISupports_safe17); safecall; + property LoadCookie: nsISupports_safe17 read GetLoadCookie write SetLoadCookie; + function GetParentContentListener(): nsIURIContentListener_safe17; safecall; + procedure SetParentContentListener(aParentContentListener: nsIURIContentListener_safe17); safecall; + property ParentContentListener: nsIURIContentListener_safe17 read GetParentContentListener write SetParentContentListener; + end; + + nsIWeakReference_safe17 = interface(nsISupports_safe17) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + procedure QueryReferent(constref uuid: TGUID; out _result); safecall; + end; + + nsISupportsWeakReference_safe17 = interface(nsISupports_safe17) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(): nsIWeakReference_safe17; safecall; + end; + + nsIWebBrowser_safe17 = interface(nsISupports_safe17) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + procedure AddWebBrowserListener(aListener: nsIWeakReference_safe17; constref aIID: TGUID); safecall; + procedure RemoveWebBrowserListener(aListener: nsIWeakReference_safe17; constref aIID: TGUID); safecall; + function GetContainerWindow(): nsIWebBrowserChrome_safe17; safecall; + procedure SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_safe17); safecall; + property ContainerWindow: nsIWebBrowserChrome_safe17 read GetContainerWindow write SetContainerWindow; + function GetParentURIContentListener(): nsIURIContentListener_safe17; safecall; + procedure SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_safe17); safecall; + property ParentURIContentListener: nsIURIContentListener_safe17 read GetParentURIContentListener write SetParentURIContentListener; + function GetContentDOMWindow(): nsIDOMWindow_safe17; safecall; + property ContentDOMWindow: nsIDOMWindow_safe17 read GetContentDOMWindow; + end; + + nsIWebBrowserChrome_safe17 = interface(nsISupports_safe17) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall; + function GetWebBrowser(): nsIWebBrowser_safe17; safecall; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser_safe17); safecall; + property WebBrowser: nsIWebBrowser_safe17 read GetWebBrowser write SetWebBrowser; + function GetChromeFlags(): PRUint32; safecall; + procedure SetChromeFlags(aChromeFlags: PRUint32); safecall; + property ChromeFlags: PRUint32 read GetChromeFlags write SetChromeFlags; + procedure DestroyBrowserWindow(); safecall; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall; + procedure ShowAsModal(); safecall; + function IsWindowModal(): PRBool; safecall; + procedure ExitModalEventLoop(aStatus: nsresult); safecall; + end; + + nsIWebBrowserChromeFocus_safe17 = interface(nsISupports_safe17) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + procedure FocusNextElement(); safecall; + procedure FocusPrevElement(); safecall; + end; + + nsIWebBrowserFind_safe17 = interface(nsISupports_safe17) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(): PRBool; safecall; + function GetSearchString(): PWideChar; safecall; + procedure SetSearchString(const aSearchString: PWideChar); safecall; + property SearchString: PWideChar read GetSearchString write SetSearchString; + function GetFindBackwards(): PRBool; safecall; + procedure SetFindBackwards(aFindBackwards: PRBool); safecall; + property FindBackwards: PRBool read GetFindBackwards write SetFindBackwards; + function GetWrapFind(): PRBool; safecall; + procedure SetWrapFind(aWrapFind: PRBool); safecall; + property WrapFind: PRBool read GetWrapFind write SetWrapFind; + function GetEntireWord(): PRBool; safecall; + procedure SetEntireWord(aEntireWord: PRBool); safecall; + property EntireWord: PRBool read GetEntireWord write SetEntireWord; + function GetMatchCase(): PRBool; safecall; + procedure SetMatchCase(aMatchCase: PRBool); safecall; + property MatchCase: PRBool read GetMatchCase write SetMatchCase; + function GetSearchFrames(): PRBool; safecall; + procedure SetSearchFrames(aSearchFrames: PRBool); safecall; + property SearchFrames: PRBool read GetSearchFrames write SetSearchFrames; + end; + + nsIWebBrowserFindInFrames_safe17 = interface(nsISupports_safe17) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(): nsIDOMWindow_safe17; safecall; + procedure SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_safe17); safecall; + property CurrentSearchFrame: nsIDOMWindow_safe17 read GetCurrentSearchFrame write SetCurrentSearchFrame; + function GetRootSearchFrame(): nsIDOMWindow_safe17; safecall; + procedure SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_safe17); safecall; + property RootSearchFrame: nsIDOMWindow_safe17 read GetRootSearchFrame write SetRootSearchFrame; + function GetSearchSubframes(): PRBool; safecall; + procedure SetSearchSubframes(aSearchSubframes: PRBool); safecall; + property SearchSubframes: PRBool read GetSearchSubframes write SetSearchSubframes; + function GetSearchParentFrames(): PRBool; safecall; + procedure SetSearchParentFrames(aSearchParentFrames: PRBool); safecall; + property SearchParentFrames: PRBool read GetSearchParentFrames write SetSearchParentFrames; + end; + + nsIWebBrowserFocus_safe17 = interface(nsISupports_safe17) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + procedure Activate(); safecall; + procedure Deactivate(); safecall; + procedure SetFocusAtFirstElement(); safecall; + procedure SetFocusAtLastElement(); safecall; + function GetFocusedWindow(): nsIDOMWindow_safe17; safecall; + procedure SetFocusedWindow(aFocusedWindow: nsIDOMWindow_safe17); safecall; + property FocusedWindow: nsIDOMWindow_safe17 read GetFocusedWindow write SetFocusedWindow; + function GetFocusedElement(): nsIDOMElement_safe17; safecall; + procedure SetFocusedElement(aFocusedElement: nsIDOMElement_safe17); safecall; + property FocusedElement: nsIDOMElement_safe17 read GetFocusedElement write SetFocusedElement; + end; + + nsIWebBrowserPrint_safe17 = interface(nsISupports_safe17) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(): nsIPrintSettings_safe17; safecall; + property GlobalPrintSettings: nsIPrintSettings_safe17 read GetGlobalPrintSettings; + function GetCurrentPrintSettings(): nsIPrintSettings_safe17; safecall; + property CurrentPrintSettings: nsIPrintSettings_safe17 read GetCurrentPrintSettings; + function GetCurrentChildDOMWindow(): nsIDOMWindow_safe17; safecall; + property CurrentChildDOMWindow: nsIDOMWindow_safe17 read GetCurrentChildDOMWindow; + function GetDoingPrint(): PRBool; safecall; + property DoingPrint: PRBool read GetDoingPrint; + function GetDoingPrintPreview(): PRBool; safecall; + property DoingPrintPreview: PRBool read GetDoingPrintPreview; + function GetIsFramesetDocument(): PRBool; safecall; + property IsFramesetDocument: PRBool read GetIsFramesetDocument; + function GetIsFramesetFrameSelected(): PRBool; safecall; + property IsFramesetFrameSelected: PRBool read GetIsFramesetFrameSelected; + function GetIsIFrameSelected(): PRBool; safecall; + property IsIFrameSelected: PRBool read GetIsIFrameSelected; + function GetIsRangeSelection(): PRBool; safecall; + property IsRangeSelection: PRBool read GetIsRangeSelection; + function GetPrintPreviewNumPages(): PRInt32; safecall; + property PrintPreviewNumPages: PRInt32 read GetPrintPreviewNumPages; + procedure Print(aThePrintSettings: nsIPrintSettings_safe17; aWPListener: nsIWebProgressListener_safe17); safecall; + procedure PrintPreview(aThePrintSettings: nsIPrintSettings_safe17; aChildDOMWin: nsIDOMWindow_safe17; aWPListener: nsIWebProgressListener_safe17); safecall; + procedure PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32); safecall; + procedure Cancel(); safecall; + procedure EnumerateDocumentNames(out aCount: PRUint32; out aResult_array); safecall; + procedure ExitPrintPreview(); safecall; + end; + + nsIWebBrowserSetup_safe17 = interface(nsISupports_safe17) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + procedure SetProperty(aId: PRUint32; aValue: PRUint32); safecall; + end; + + nsIWebProgress_safe17 = interface(nsISupports_safe17) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + procedure AddProgressListener(aListener: nsIWebProgressListener_safe17; aNotifyMask: PRUint32); safecall; + procedure RemoveProgressListener(aListener: nsIWebProgressListener_safe17); safecall; + function GetDOMWindow(): nsIDOMWindow_safe17; safecall; + property DOMWindow: nsIDOMWindow_safe17 read GetDOMWindow; + function GetIsLoadingDocument(): PRBool; safecall; + property IsLoadingDocument: PRBool read GetIsLoadingDocument; + end; + + nsIWebProgressListener_safe17 = interface(nsISupports_safe17) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + procedure OnStateChange(aWebProgress: nsIWebProgress_safe17; aRequest: nsIRequest_safe17; aStateFlags: PRUint32; aStatus: nsresult); safecall; + procedure OnProgressChange(aWebProgress: nsIWebProgress_safe17; aRequest: nsIRequest_safe17; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); safecall; + procedure OnLocationChange(aWebProgress: nsIWebProgress_safe17; aRequest: nsIRequest_safe17; aLocation: nsIURI_safe17); safecall; + procedure OnStatusChange(aWebProgress: nsIWebProgress_safe17; aRequest: nsIRequest_safe17; aStatus: nsresult; const aMessage: PWideChar); safecall; + procedure OnSecurityChange(aWebProgress: nsIWebProgress_safe17; aRequest: nsIRequest_safe17; aState: PRUint32); safecall; + end; + + nsIWindowCreator_safe17 = interface(nsISupports_safe17) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_safe17; chromeFlags: PRUint32): nsIWebBrowserChrome_safe17; safecall; + end; + + nsIWindowWatcher_safe17 = interface(nsISupports_safe17) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_safe17; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_safe17): nsIDOMWindow_safe17; safecall; + procedure RegisterNotification(aObserver: nsIObserver_safe17); safecall; + procedure UnregisterNotification(aObserver: nsIObserver_safe17); safecall; + function GetWindowEnumerator(): nsISimpleEnumerator_safe17; safecall; + function GetNewPrompter(aParent: nsIDOMWindow_safe17): nsIPrompt_safe17; safecall; + function GetNewAuthPrompter(aParent: nsIDOMWindow_safe17): nsIAuthPrompt_safe17; safecall; + procedure SetWindowCreator(creator: nsIWindowCreator_safe17); safecall; + function GetChromeForWindow(aWindow: nsIDOMWindow_safe17): nsIWebBrowserChrome_safe17; safecall; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_safe17): nsIDOMWindow_safe17; safecall; + function GetActiveWindow(): nsIDOMWindow_safe17; safecall; + procedure SetActiveWindow(aActiveWindow: nsIDOMWindow_safe17); safecall; + property ActiveWindow: nsIDOMWindow_safe17 read GetActiveWindow write SetActiveWindow; + end; + + nsIX509Cert_safe17 = interface(nsISupports_safe17) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + procedure GetNickname(aNickname: nsAString); safecall; + procedure GetEmailAddress(aEmailAddress: nsAString); safecall; + procedure GetEmailAddresses(out length: PRUint32; out addresses_array); safecall; + function ContainsEmailAddress(const aEmailAddress: nsAString): PRBool; safecall; + procedure GetSubjectName(aSubjectName: nsAString); safecall; + procedure GetCommonName(aCommonName: nsAString); safecall; + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + procedure GetSha1Fingerprint(aSha1Fingerprint: nsAString); safecall; + procedure GetMd5Fingerprint(aMd5Fingerprint: nsAString); safecall; + procedure GetTokenName(aTokenName: nsAString); safecall; + procedure GetIssuerName(aIssuerName: nsAString); safecall; + procedure GetSerialNumber(aSerialNumber: nsAString); safecall; + procedure GetIssuerCommonName(aIssuerCommonName: nsAString); safecall; + procedure GetIssuerOrganization(aIssuerOrganization: nsAString); safecall; + procedure GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString); safecall; + function GetIssuer(): nsIX509Cert_safe17; safecall; + property Issuer: nsIX509Cert_safe17 read GetIssuer; + function GetValidity(): nsIX509CertValidity_safe17; safecall; + property Validity: nsIX509CertValidity_safe17 read GetValidity; + function GetDbKey(): PAnsiChar; safecall; + property DbKey: PAnsiChar read GetDbKey; + function GetWindowTitle(): PAnsiChar; safecall; + property WindowTitle: PAnsiChar read GetWindowTitle; + function GetChain(): nsIArray_safe17; safecall; + procedure GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array); safecall; + procedure GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString); safecall; + function VerifyForUsage(usage: PRUint32): PRUint32; safecall; + function GetASN1Structure(): nsIASN1Object_safe17; safecall; + property ASN1Structure: nsIASN1Object_safe17 read GetASN1Structure; + procedure GetRawDER(out length: PRUint32; out data_array); safecall; + function Equals(other: nsIX509Cert_safe17): PRBool; safecall; + end; + + nsIX509CertDB_safe17 = interface(nsISupports_safe17) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_safe17; const aNickname: nsAString): nsIX509Cert_safe17; safecall; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_safe17): nsIX509Cert_safe17; safecall; + procedure FindCertNicknames(aToken: nsISupports_safe17; aType: PRUint32; out count: PRUint32; out certNameList_array); safecall; + function FindEmailEncryptionCert(const aNickname: nsAString): nsIX509Cert_safe17; safecall; + function FindEmailSigningCert(const aNickname: nsAString): nsIX509Cert_safe17; safecall; + function FindCertByEmailAddress(aToken: nsISupports_safe17; const aEmailAddress: PAnsiChar): nsIX509Cert_safe17; safecall; + procedure ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_safe17); safecall; + procedure ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe17); safecall; + procedure ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe17); safecall; + procedure ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe17); safecall; + procedure DeleteCertificate(aCert: nsIX509Cert_safe17); safecall; + procedure SetCertTrust(cert: nsIX509Cert_safe17; _type: PRUint32; trust: PRUint32); safecall; + function IsCertTrusted(cert: nsIX509Cert_safe17; certType: PRUint32; trustType: PRUint32): PRBool; safecall; + procedure ImportCertsFromFile(aToken: nsISupports_safe17; aFile: nsILocalFile_safe17; aType: PRUint32); safecall; + procedure ImportPKCS12File(aToken: nsISupports_safe17; aFile: nsILocalFile_safe17); safecall; + procedure ExportPKCS12File(aToken: nsISupports_safe17; aFile: nsILocalFile_safe17; count: PRUint32; const aCerts_array); safecall; + function GetOCSPResponders(): nsIArray_safe17; safecall; + function GetIsOcspOn(): PRBool; safecall; + property IsOcspOn: PRBool read GetIsOcspOn; + function ConstructX509FromBase64(const base64: PAnsiChar): nsIX509Cert_safe17; safecall; + end; + + nsIX509CertValidity_safe17 = interface(nsISupports_safe17) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(): PRTime; safecall; + property NotBefore: PRTime read GetNotBefore; + procedure GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString); safecall; + procedure GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString); safecall; + procedure GetNotBeforeGMT(aNotBeforeGMT: nsAString); safecall; + function GetNotAfter(): PRTime; safecall; + property NotAfter: PRTime read GetNotAfter; + procedure GetNotAfterLocalTime(aNotAfterLocalTime: nsAString); safecall; + procedure GetNotAfterLocalDay(aNotAfterLocalDay: nsAString); safecall; + procedure GetNotAfterGMT(aNotAfterGMT: nsAString); safecall; + end; + +implementation + +end. diff --git a/components/geckoport/version2/each-version/nsXPCOM_safe18.pas b/components/geckoport/version2/each-version/nsXPCOM_safe18.pas new file mode 100644 index 000000000..051db5e57 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_safe18.pas @@ -0,0 +1,3923 @@ +unit nsXPCOM_safe18; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsConsts, nsGeckoStrings, nsTypes; + +const + NS_ISUPPORTS_SAFE18_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_SAFE18_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_SAFE18_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IMUTABLEARRAY_SAFE18_IID: TGUID = '{af059da0-c85b-40ec-af07-ae4bfdc192cc}'; + + NS_IASN1OBJECT_SAFE18_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_SAFE18_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_SAFE18_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_SAFE18_ASN1_INTEGER = 2; + NS_IASN1OBJECT_SAFE18_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_SAFE18_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_SAFE18_ASN1_NULL = 5; + NS_IASN1OBJECT_SAFE18_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_SAFE18_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_SAFE18_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_SAFE18_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_SAFE18_ASN1_SET = 17; + NS_IASN1OBJECT_SAFE18_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_SAFE18_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_SAFE18_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_SAFE18_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_SAFE18_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_SAFE18_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_SAFE18_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_SAFE18_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_SAFE18_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_SAFE18_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_SAFE18_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_SAFE18_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_SAFE18_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_SAFE18_IID: TGUID = '{2f977d45-5485-11d4-87e2-0010a4e75ef2}'; + NS_IAUTHPROMPT_SAFE18_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_SAFE18_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_SAFE18_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_IBADCERTLISTENER_SAFE18_IID: TGUID = '{86960956-edb0-11d4-998b-00b0d02354a0}'; + NS_IBADCERTLISTENER_SAFE18_UNINIT_ADD_FLAG = -1; + NS_IBADCERTLISTENER_SAFE18_ADD_TRUSTED_FOR_SESSION = 1; + NS_IBADCERTLISTENER_SAFE18_ADD_TRUSTED_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_SAFE18_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_SAFE18_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_SAFE18_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_SAFE18_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_SAFE18_LOAD_NORMAL = 0; + NS_IREQUEST_SAFE18_LOAD_BACKGROUND = 1; + NS_IREQUEST_SAFE18_INHIBIT_CACHING = 128; + NS_IREQUEST_SAFE18_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_SAFE18_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_SAFE18_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_SAFE18_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_SAFE18_VALIDATE_NEVER = 4096; + NS_IREQUEST_SAFE18_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_SAFE18_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_SAFE18_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_SAFE18_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_SAFE18_LOAD_REPLACE = 262144; + NS_ICHANNEL_SAFE18_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_SAFE18_LOAD_TARGETED = 1048576; + + NS_IPROGRAMMINGLANGUAGE_SAFE18_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_SAFE18_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_SAFE18_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_SAFE18_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_SAFE18_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_SAFE18_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_SAFE18_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_SAFE18_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_SAFE18_JAVASCRIPT2 = 7; + + NS_ICLASSINFO_SAFE18_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_SAFE18_SINGLETON = 1; + NS_ICLASSINFO_SAFE18_THREADSAFE = 2; + NS_ICLASSINFO_SAFE18_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_SAFE18_DOM_OBJECT = 8; + NS_ICLASSINFO_SAFE18_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_SAFE18_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_SAFE18_CONTENT_NODE = 64; + NS_ICLASSINFO_SAFE18_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_SAFE18_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_SAFE18_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_SAFE18_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_SAFE18_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_SAFE18_CONTEXT_INPUT = 16; + + NS_ICOOKIE_SAFE18_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_SAFE18_STATUS_UNKNOWN = 0; + NS_ICOOKIE_SAFE18_STATUS_ACCEPTED = 1; + NS_ICOOKIE_SAFE18_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_SAFE18_STATUS_FLAGGED = 3; + NS_ICOOKIE_SAFE18_STATUS_REJECTED = 4; + NS_ICOOKIE_SAFE18_POLICY_UNKNOWN = 0; + NS_ICOOKIE_SAFE18_POLICY_NONE = 1; + NS_ICOOKIE_SAFE18_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_SAFE18_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_SAFE18_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_SAFE18_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_SAFE18_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_SAFE18_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_SAFE18_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_SAFE18_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_SAFE18_NORMAL_FILE_TYPE = 0; + NS_IFILE_SAFE18_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_SAFE18_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_SAFE18_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_SAFE18_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_SAFE18_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_SAFE18_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_SAFE18_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_SAFE18_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_SAFE18_ELEMENT_NODE = 1; + NS_IDOMNODE_SAFE18_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_SAFE18_TEXT_NODE = 3; + NS_IDOMNODE_SAFE18_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_SAFE18_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_SAFE18_ENTITY_NODE = 6; + NS_IDOMNODE_SAFE18_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_SAFE18_COMMENT_NODE = 8; + NS_IDOMNODE_SAFE18_DOCUMENT_NODE = 9; + NS_IDOMNODE_SAFE18_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_SAFE18_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_SAFE18_NOTATION_NODE = 12; + + NS_IDOMATTR_SAFE18_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_SAFE18_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_SAFE18_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_SAFE18_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_SAFE18_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_SAFE18_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_SAFE18_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_SAFE18_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_SAFE18_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_SAFE18_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_SAFE18_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_SAFE18_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_SAFE18_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_SAFE18_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_SAFE18_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_SAFE18_STYLE_RULE = 1; + NS_IDOMCSSRULE_SAFE18_CHARSET_RULE = 2; + NS_IDOMCSSRULE_SAFE18_IMPORT_RULE = 3; + NS_IDOMCSSRULE_SAFE18_MEDIA_RULE = 4; + NS_IDOMCSSRULE_SAFE18_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_SAFE18_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_SAFE18_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_SAFE18_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_SAFE18_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_SAFE18_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_SAFE18_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_SAFE18_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_SAFE18_CAPTURING_PHASE = 1; + NS_IDOMEVENT_SAFE18_AT_TARGET = 2; + NS_IDOMEVENT_SAFE18_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_SAFE18_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_SAFE18_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_SAFE18_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_SAFE18_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_SAFE18_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_SAFE18_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_SAFE18_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_SAFE18_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_SAFE18_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_SAFE18_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_SAFE18_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_SAFE18_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_SAFE18_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_SAFE18_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_SAFE18_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_SAFE18_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_SAFE18_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_SAFE18_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_SAFE18_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_SAFE18_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_SAFE18_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_SAFE18_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_SAFE18_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_SAFE18_INVALID_ACCESS_ERR = 15; + NS_IDOMDOMEXCEPTION_SAFE18_VALIDATION_ERR = 16; + NS_IDOMDOMEXCEPTION_SAFE18_TYPE_MISMATCH_ERR = 17; + + NS_IDOMDOMIMPLEMENTATION_SAFE18_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_SAFE18_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENTCSSINLINESTYLE_SAFE18_IID: TGUID = '{99715845-95fc-4a56-aa53-214b65c26e22}'; + + NS_IDOMENTITY_SAFE18_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_SAFE18_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_SAFE18_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_SAFE18_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_SAFE18_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_SAFE18_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_SAFE18_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_SAFE18_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_SAFE18_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_SAFE18_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_SAFE18_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_SAFE18_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_SAFE18_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_SAFE18_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_SAFE18_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_SAFE18_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_SAFE18_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_SAFE18_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_SAFE18_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_SAFE18_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_SAFE18_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_SAFE18_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_SAFE18_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_SAFE18_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_SAFE18_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_SAFE18_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_SAFE18_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_SAFE18_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_SAFE18_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_SAFE18_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_SAFE18_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_SAFE18_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_SAFE18_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_SAFE18_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_SAFE18_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_SAFE18_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_SAFE18_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_SAFE18_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_SAFE18_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_SAFE18_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_SAFE18_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_SAFE18_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_SAFE18_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_SAFE18_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_SAFE18_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_SAFE18_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_SAFE18_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_SAFE18_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_SAFE18_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_SAFE18_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_SAFE18_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_SAFE18_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_SAFE18_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_SAFE18_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_SAFE18_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_SAFE18_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_SAFE18_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_SAFE18_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_SAFE18_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_SAFE18_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_SAFE18_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_SAFE18_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_SAFE18_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_SAFE18_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_SAFE18_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_SAFE18_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_SAFE18_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_SAFE18_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNSDOCUMENTSTYLE_SAFE18_IID: TGUID = '{4ecdf254-a21e-47b0-8d72-55da8208299f}'; + + NS_IDOMPROCESSINGINSTRUCTION_SAFE18_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_SAFE18_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_SAFE18_START_TO_START = 0; + NS_IDOMRANGE_SAFE18_START_TO_END = 1; + NS_IDOMRANGE_SAFE18_END_TO_END = 2; + NS_IDOMRANGE_SAFE18_END_TO_START = 3; + + NS_IDOMRECT_SAFE18_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_SAFE18_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTYLESHEETLIST_SAFE18_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_SAFE18_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_SAFE18_IID: TGUID = '{65455132-b96a-40ec-adea-52fa22b1028c}'; + + NS_IDOMWINDOWCOLLECTION_SAFE18_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOWUTILS_SAFE18_IID: TGUID = '{8a157a4f-a81e-489f-baf2-bc8970d60472}'; + + NS_IEMBEDDINGSITEWINDOW_SAFE18_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_SAFE18_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_SAFE18_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_SAFE18_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_SAFE18_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_SAFE18_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_SAFE18_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_SAFE18_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_SAFE18_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHISTORYENTRY_SAFE18_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_SAFE18_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_SAFE18_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_SAFE18_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_SAFE18_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_SAFE18_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_ILOADGROUP_SAFE18_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_SAFE18_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_SAFE18_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_SAFE18_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IOBSERVER_SAFE18_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_SAFE18_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_SAFE18_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPREFBRANCH_SAFE18_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_SAFE18_PREF_INVALID = 0; + NS_IPREFBRANCH_SAFE18_PREF_STRING = 32; + NS_IPREFBRANCH_SAFE18_PREF_INT = 64; + NS_IPREFBRANCH_SAFE18_PREF_BOOL = 128; + + NS_IPREFBRANCH2_SAFE18_IID: TGUID = '{74567534-eb94-4b1c-8f45-389643bfc555}'; + + NS_IPREFLOCALIZEDSTRING_SAFE18_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_SAFE18_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_SAFE18_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_SAFE18_IID: TGUID = '{f1094df6-ce0e-42c9-9847-2f663172c38d}'; + NS_IPRINTSETTINGS_SAFE18_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_SAFE18_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_SAFE18_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_SAFE18_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_SAFE18_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_SAFE18_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_SAFE18_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_SAFE18_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_SAFE18_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperName = 1024; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperSizeUnit = 2048; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperSizeType = 4096; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperWidth = 16384; + NS_IPRINTSETTINGS_SAFE18_kInitSavePaperHeight = 32768; + NS_IPRINTSETTINGS_SAFE18_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_SAFE18_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_SAFE18_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_SAFE18_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_SAFE18_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_SAFE18_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_SAFE18_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_SAFE18_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_SAFE18_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_SAFE18_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_SAFE18_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_SAFE18_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_SAFE18_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_SAFE18_kInitSaveColorspace = 536870912; + NS_IPRINTSETTINGS_SAFE18_kInitSaveResolutionName = 1073741824; + NS_IPRINTSETTINGS_SAFE18_kInitSaveDownloadFonts = 2147483648; + NS_IPRINTSETTINGS_SAFE18_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_SAFE18_kPrintOddPages = 1; + NS_IPRINTSETTINGS_SAFE18_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_SAFE18_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_SAFE18_kRangeAllPages = 0; + NS_IPRINTSETTINGS_SAFE18_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_SAFE18_kRangeSelection = 2; + NS_IPRINTSETTINGS_SAFE18_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_SAFE18_kJustLeft = 0; + NS_IPRINTSETTINGS_SAFE18_kJustCenter = 1; + NS_IPRINTSETTINGS_SAFE18_kJustRight = 2; + NS_IPRINTSETTINGS_SAFE18_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_SAFE18_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_SAFE18_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_SAFE18_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_SAFE18_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_SAFE18_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_SAFE18_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_SAFE18_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_SAFE18_kNoFrames = 0; + NS_IPRINTSETTINGS_SAFE18_kFramesAsIs = 1; + NS_IPRINTSETTINGS_SAFE18_kSelectedFrame = 2; + NS_IPRINTSETTINGS_SAFE18_kEachFrameSep = 3; + NS_IPRINTSETTINGS_SAFE18_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_SAFE18_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_SAFE18_kFrameEnableAsIsAndEach = 2; + + NS_IPROFILE_SAFE18_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_SAFE18_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_SAFE18_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_SAFE18_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROMPT_SAFE18_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_SAFE18_BUTTON_POS_0 = 1; + NS_IPROMPT_SAFE18_BUTTON_POS_1 = 256; + NS_IPROMPT_SAFE18_BUTTON_POS_2 = 65536; + NS_IPROMPT_SAFE18_BUTTON_TITLE_OK = 1; + NS_IPROMPT_SAFE18_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_SAFE18_BUTTON_TITLE_YES = 3; + NS_IPROMPT_SAFE18_BUTTON_TITLE_NO = 4; + NS_IPROMPT_SAFE18_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_SAFE18_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_SAFE18_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_SAFE18_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_SAFE18_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_SAFE18_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_SAFE18_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_SAFE18_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_SAFE18_STD_OK_CANCEL_BUTTONS = 513; + + NS_IPROMPTSERVICE_SAFE18_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_SAFE18_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_SAFE18_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_SAFE18_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_SAFE18_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_SAFE18_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_SAFE18_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_SAFE18_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_SAFE18_URI_STD = 0; + NS_IPROTOCOLHANDLER_SAFE18_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_SAFE18_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_SAFE18_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_SAFE18_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_SAFE18_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_SAFE18_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_SAFE18_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_SAFE18_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_SAFE18_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_SAFE18_IID: TGUID = '{7294fe9b-14d8-11d5-9882-00c04fa02f40}'; + + NS_ISHISTORYLISTENER_SAFE18_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_SAFE18_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_SAFE18_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_SAFE18_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_SAFE18_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_SAFE18_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_SAFE18_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_SAFE18_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_SAFE18_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_SAFE18_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_SAFE18_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_SAFE18_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_SAFE18_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_SAFE18_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_SAFE18_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_SAFE18_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_SAFE18_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_SAFE18_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_SAFE18_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_SAFE18_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_SAFE18_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_SAFE18_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_SAFE18_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_SAFE18_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_SAFE18_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_SAFE18_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_SAFE18_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_SAFE18_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_SAFE18_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_SAFE18_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_SAFE18_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_SAFE18_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_SAFE18_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_SAFE18_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_SAFE18_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_SAFE18_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_SAFE18_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_SAFE18_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_SAFE18_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_SAFE18_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_SAFE18_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_SAFE18_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_SAFE18_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_SAFE18_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_SAFE18_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_SAFE18_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_SAFE18_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBBROWSERSTREAM_SAFE18_IID: TGUID = '{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'; + + NS_IWEBPROGRESS_SAFE18_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_SAFE18_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_SAFE18_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_SAFE18_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_SAFE18_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_SAFE18_NOTIFY_ALL = 255; + + NS_IWEBPROGRESSLISTENER_SAFE18_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_RESTORING = 16777216; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_SAFE18_STATE_SECURE_LOW = 131072; + + NS_IWINDOWCREATOR_SAFE18_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_SAFE18_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_SAFE18_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_SAFE18_UNKNOWN_CERT = 0; + NS_IX509CERT_SAFE18_CA_CERT = 1; + NS_IX509CERT_SAFE18_USER_CERT = 2; + NS_IX509CERT_SAFE18_EMAIL_CERT = 4; + NS_IX509CERT_SAFE18_SERVER_CERT = 8; + NS_IX509CERT_SAFE18_VERIFIED_OK = 0; + NS_IX509CERT_SAFE18_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_SAFE18_CERT_REVOKED = 2; + NS_IX509CERT_SAFE18_CERT_EXPIRED = 4; + NS_IX509CERT_SAFE18_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_SAFE18_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_SAFE18_ISSUER_UNKNOWN = 32; + NS_IX509CERT_SAFE18_INVALID_CA = 64; + NS_IX509CERT_SAFE18_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_SAFE18_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_SAFE18_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_SAFE18_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_SAFE18_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_SAFE18_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_SAFE18_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_SAFE18_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_SAFE18_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_SAFE18_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_SAFE18_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_SAFE18_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_SAFE18_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_SAFE18_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_SAFE18_UNTRUSTED = 0; + NS_IX509CERTDB_SAFE18_TRUSTED_SSL = 1; + NS_IX509CERTDB_SAFE18_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_SAFE18_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_SAFE18_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_safe18 = interface; + mozIJSSubScriptLoader_safe18 = interface; + nsIArray_safe18 = interface; + nsIMutableArray_safe18 = interface; + nsIASN1Object_safe18 = interface; + nsIASN1Sequence_safe18 = interface; + nsIAuthPrompt_safe18 = interface; + nsIBadCertListener_safe18 = interface; + nsISimpleEnumerator_safe18 = interface; + nsICategoryManager_safe18 = interface; + nsICertificateDialogs_safe18 = interface; + nsIRequest_safe18 = interface; + nsIChannel_safe18 = interface; + nsIProgrammingLanguage_safe18 = interface; + nsIClassInfo_safe18 = interface; + nsIClipboardCommands_safe18 = interface; + nsIComponentManager_safe18 = interface; + nsIComponentRegistrar_safe18 = interface; + nsIContextMenuListener_safe18 = interface; + nsICookie_safe18 = interface; + nsICookieManager_safe18 = interface; + nsICRLInfo_safe18 = interface; + nsIDebug_safe18 = interface; + nsIFile_safe18 = interface; + nsIDirectoryServiceProvider_safe18 = interface; + nsIDirectoryServiceProvider2_safe18 = interface; + nsIDirectoryService_safe18 = interface; + nsIDOM3DocumentEvent_safe18 = interface; + nsIDOM3EventTarget_safe18 = interface; + nsIDOMAbstractView_safe18 = interface; + nsIDOMNode_safe18 = interface; + nsIDOMAttr_safe18 = interface; + nsIDOMBarProp_safe18 = interface; + nsIDOMCharacterData_safe18 = interface; + nsIDOMText_safe18 = interface; + nsIDOMCDATASection_safe18 = interface; + nsIDOMComment_safe18 = interface; + nsIDOMCounter_safe18 = interface; + nsIDOMCSSValue_safe18 = interface; + nsIDOMCSSPrimitiveValue_safe18 = interface; + nsIDOMCSSRule_safe18 = interface; + nsIDOMCSSRuleList_safe18 = interface; + nsIDOMCSSStyleDeclaration_safe18 = interface; + nsIDOMStyleSheet_safe18 = interface; + nsIDOMCSSStyleSheet_safe18 = interface; + nsIDOMCSSValueList_safe18 = interface; + nsIDOMEvent_safe18 = interface; + nsIDOMCustomEvent_safe18 = interface; + nsIDOMDocument_safe18 = interface; + nsIDOMDocumentEvent_safe18 = interface; + nsIDOMDocumentFragment_safe18 = interface; + nsIDOMDocumentRange_safe18 = interface; + nsIDOMDocumentStyle_safe18 = interface; + nsIDOMDocumentType_safe18 = interface; + nsIDOMDocumentView_safe18 = interface; + nsIDOMDOMException_safe18 = interface; + nsIDOMDOMImplementation_safe18 = interface; + nsIDOMElement_safe18 = interface; + nsIDOMElementCSSInlineStyle_safe18 = interface; + nsIDOMEntity_safe18 = interface; + nsIDOMEntityReference_safe18 = interface; + nsIDOMEventGroup_safe18 = interface; + nsIDOMEventListener_safe18 = interface; + nsIDOMEventTarget_safe18 = interface; + nsIDOMHTMLElement_safe18 = interface; + nsIDOMHTMLAnchorElement_safe18 = interface; + nsIDOMHTMLAppletElement_safe18 = interface; + nsIDOMHTMLAreaElement_safe18 = interface; + nsIDOMHTMLBaseElement_safe18 = interface; + nsIDOMHTMLBaseFontElement_safe18 = interface; + nsIDOMHTMLBodyElement_safe18 = interface; + nsIDOMHTMLBRElement_safe18 = interface; + nsIDOMHTMLButtonElement_safe18 = interface; + nsIDOMHTMLCollection_safe18 = interface; + nsIDOMHTMLDirectoryElement_safe18 = interface; + nsIDOMHTMLDivElement_safe18 = interface; + nsIDOMHTMLDListElement_safe18 = interface; + nsIDOMHTMLDocument_safe18 = interface; + nsIDOMHTMLEmbedElement_safe18 = interface; + nsIDOMHTMLFieldSetElement_safe18 = interface; + nsIDOMHTMLFontElement_safe18 = interface; + nsIDOMHTMLFormElement_safe18 = interface; + nsIDOMHTMLFrameElement_safe18 = interface; + nsIDOMHTMLFrameSetElement_safe18 = interface; + nsIDOMHTMLHeadElement_safe18 = interface; + nsIDOMHTMLHeadingElement_safe18 = interface; + nsIDOMHTMLHRElement_safe18 = interface; + nsIDOMHTMLHtmlElement_safe18 = interface; + nsIDOMHTMLIFrameElement_safe18 = interface; + nsIDOMHTMLImageElement_safe18 = interface; + nsIDOMHTMLInputElement_safe18 = interface; + nsIDOMHTMLIsIndexElement_safe18 = interface; + nsIDOMHTMLLabelElement_safe18 = interface; + nsIDOMHTMLLegendElement_safe18 = interface; + nsIDOMHTMLLIElement_safe18 = interface; + nsIDOMHTMLLinkElement_safe18 = interface; + nsIDOMHTMLMapElement_safe18 = interface; + nsIDOMHTMLMenuElement_safe18 = interface; + nsIDOMHTMLMetaElement_safe18 = interface; + nsIDOMHTMLModElement_safe18 = interface; + nsIDOMHTMLObjectElement_safe18 = interface; + nsIDOMHTMLOListElement_safe18 = interface; + nsIDOMHTMLOptGroupElement_safe18 = interface; + nsIDOMHTMLOptionElement_safe18 = interface; + nsIDOMHTMLOptionsCollection_safe18 = interface; + nsIDOMHTMLParagraphElement_safe18 = interface; + nsIDOMHTMLParamElement_safe18 = interface; + nsIDOMHTMLPreElement_safe18 = interface; + nsIDOMHTMLQuoteElement_safe18 = interface; + nsIDOMHTMLScriptElement_safe18 = interface; + nsIDOMHTMLSelectElement_safe18 = interface; + nsIDOMHTMLStyleElement_safe18 = interface; + nsIDOMHTMLTableCaptionElement_safe18 = interface; + nsIDOMHTMLTableCellElement_safe18 = interface; + nsIDOMHTMLTableColElement_safe18 = interface; + nsIDOMHTMLTableElement_safe18 = interface; + nsIDOMHTMLTableRowElement_safe18 = interface; + nsIDOMHTMLTableSectionElement_safe18 = interface; + nsIDOMHTMLTextAreaElement_safe18 = interface; + nsIDOMHTMLTitleElement_safe18 = interface; + nsIDOMHTMLUListElement_safe18 = interface; + nsIDOMMediaList_safe18 = interface; + nsIDOMUIEvent_safe18 = interface; + nsIDOMMouseEvent_safe18 = interface; + nsIDOMNamedNodeMap_safe18 = interface; + nsIDOMNodeList_safe18 = interface; + nsIDOMNotation_safe18 = interface; + nsIDOMNSDocumentStyle_safe18 = interface; + nsIDOMProcessingInstruction_safe18 = interface; + nsIDOMRange_safe18 = interface; + nsIDOMRect_safe18 = interface; + nsIDOMRGBColor_safe18 = interface; + nsIDOMStyleSheetList_safe18 = interface; + nsIDOMWindow_safe18 = interface; + nsIDOMWindow2_safe18 = interface; + nsIDOMWindowCollection_safe18 = interface; + nsIDOMWindowUtils_safe18 = interface; + nsIEmbeddingSiteWindow_safe18 = interface; + nsIFactory_safe18 = interface; + nsIURI_safe18 = interface; + nsIURL_safe18 = interface; + nsIFileURL_safe18 = interface; + nsIGlobalHistory_safe18 = interface; + nsIHistoryEntry_safe18 = interface; + nsIHttpChannel_safe18 = interface; + nsIHttpHeaderVisitor_safe18 = interface; + nsIInputStream_safe18 = interface; + nsIInterfaceRequestor_safe18 = interface; + nsIIOService_safe18 = interface; + nsILoadGroup_safe18 = interface; + nsILocalFile_safe18 = interface; + nsIMemory_safe18 = interface; + nsIModule_safe18 = interface; + nsIObserver_safe18 = interface; + nsIObserverService_safe18 = interface; + nsIOutputStream_safe18 = interface; + nsIPrefBranch_safe18 = interface; + nsIPrefBranch2_safe18 = interface; + nsIPrefLocalizedString_safe18 = interface; + nsIPrefService_safe18 = interface; + nsIPrintSession_safe18 = interface; + nsIPrintSettings_safe18 = interface; + nsIProfile_safe18 = interface; + nsIProfileChangeStatus_safe18 = interface; + nsIPrompt_safe18 = interface; + nsIPromptService_safe18 = interface; + nsIProperties_safe18 = interface; + nsIProtocolHandler_safe18 = interface; + nsIRequestObserver_safe18 = interface; + nsIScriptableInputStream_safe18 = interface; + nsISecurityWarningDialogs_safe18 = interface; + nsISelection_safe18 = interface; + nsIServiceManager_safe18 = interface; + nsISHistory_safe18 = interface; + nsISHistoryListener_safe18 = interface; + nsIStreamListener_safe18 = interface; + nsISupportsPrimitive_safe18 = interface; + nsISupportsID_safe18 = interface; + nsISupportsCString_safe18 = interface; + nsISupportsString_safe18 = interface; + nsISupportsPRBool_safe18 = interface; + nsISupportsPRUint8_safe18 = interface; + nsISupportsPRUint16_safe18 = interface; + nsISupportsPRUint32_safe18 = interface; + nsISupportsPRUint64_safe18 = interface; + nsISupportsPRTime_safe18 = interface; + nsISupportsChar_safe18 = interface; + nsISupportsPRInt16_safe18 = interface; + nsISupportsPRInt32_safe18 = interface; + nsISupportsPRInt64_safe18 = interface; + nsISupportsFloat_safe18 = interface; + nsISupportsDouble_safe18 = interface; + nsISupportsVoid_safe18 = interface; + nsISupportsInterfacePointer_safe18 = interface; + nsITooltipListener_safe18 = interface; + nsITooltipTextProvider_safe18 = interface; + nsITraceRefcnt_safe18 = interface; + nsIUnicharStreamListener_safe18 = interface; + nsIUploadChannel_safe18 = interface; + nsIURIContentListener_safe18 = interface; + nsIWeakReference_safe18 = interface; + nsISupportsWeakReference_safe18 = interface; + nsIWebBrowser_safe18 = interface; + nsIWebBrowserChrome_safe18 = interface; + nsIWebBrowserChromeFocus_safe18 = interface; + nsIWebBrowserFind_safe18 = interface; + nsIWebBrowserFindInFrames_safe18 = interface; + nsIWebBrowserFocus_safe18 = interface; + nsIWebBrowserPrint_safe18 = interface; + nsIWebBrowserSetup_safe18 = interface; + nsIWebBrowserStream_safe18 = interface; + nsIWebProgress_safe18 = interface; + nsIWebProgressListener_safe18 = interface; + nsIWindowCreator_safe18 = interface; + nsIWindowWatcher_safe18 = interface; + nsIX509Cert_safe18 = interface; + nsIX509CertDB_safe18 = interface; + nsIX509CertValidity_safe18 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe18; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe18; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_safe18 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_safe18 = interface(nsISupports_safe18) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + procedure LoadSubScript(const url: PWideChar); safecall; + end; + + nsIArray_safe18 = interface(nsISupports_safe18) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result); safecall; + function IndexOf(startIndex: PRUint32; element: nsISupports_safe18): PRUint32; safecall; + function Enumerate(): nsISimpleEnumerator_safe18; safecall; + end; + + nsIMutableArray_safe18 = interface(nsIArray_safe18) + ['{af059da0-c85b-40ec-af07-ae4bfdc192cc}'] + procedure AppendElement(element: nsISupports_safe18; weak: PRBool); safecall; + procedure RemoveElementAt(index: PRUint32); safecall; + procedure InsertElementAt(element: nsISupports_safe18; index: PRUint32; weak: PRBool); safecall; + procedure ReplaceElementAt(element: nsISupports_safe18; index: PRUint32; weak: PRBool); safecall; + procedure Clear(); safecall; + end; + + nsIASN1Object_safe18 = interface(nsISupports_safe18) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(): PRUint32; safecall; + procedure SetType(aType: PRUint32); safecall; + property _Type: PRUint32 read GetType write SetType; + function GetTag(): PRUint32; safecall; + procedure SetTag(aTag: PRUint32); safecall; + property Tag: PRUint32 read GetTag write SetTag; + procedure GetDisplayName(aDisplayName: nsAString); safecall; + procedure SetDisplayName(const aDisplayName: nsAString); safecall; + procedure GetDisplayValue(aDisplayValue: nsAString); safecall; + procedure SetDisplayValue(const aDisplayValue: nsAString); safecall; + end; + + nsIASN1Sequence_safe18 = interface(nsIASN1Object_safe18) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(): nsIMutableArray_safe18; safecall; + procedure SetASN1Objects(aASN1Objects: nsIMutableArray_safe18); safecall; + property ASN1Objects: nsIMutableArray_safe18 read GetASN1Objects write SetASN1Objects; + function GetIsValidContainer(): PRBool; safecall; + procedure SetIsValidContainer(aIsValidContainer: PRBool); safecall; + property IsValidContainer: PRBool read GetIsValidContainer write SetIsValidContainer; + function GetIsExpanded(): PRBool; safecall; + procedure SetIsExpanded(aIsExpanded: PRBool); safecall; + property IsExpanded: PRBool read GetIsExpanded write SetIsExpanded; + end; + + nsIAuthPrompt_safe18 = interface(nsISupports_safe18) + ['{2f977d45-5485-11d4-87e2-0010a4e75ef2}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar): PRBool; safecall; + end; + + nsIBadCertListener_safe18 = interface(nsISupports_safe18) + ['{86960956-edb0-11d4-998b-00b0d02354a0}'] + function ConfirmUnknownIssuer(socketInfo: nsIInterfaceRequestor_safe18; cert: nsIX509Cert_safe18; out certAddType: PRInt16): PRBool; safecall; + function ConfirmMismatchDomain(socketInfo: nsIInterfaceRequestor_safe18; const targetURL: nsACString; cert: nsIX509Cert_safe18): PRBool; safecall; + function ConfirmCertExpired(socketInfo: nsIInterfaceRequestor_safe18; cert: nsIX509Cert_safe18): PRBool; safecall; + procedure NotifyCrlNextupdate(socketInfo: nsIInterfaceRequestor_safe18; const targetURL: nsACString; cert: nsIX509Cert_safe18); safecall; + end; + + nsISimpleEnumerator_safe18 = interface(nsISupports_safe18) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(): PRBool; safecall; + function GetNext(): nsISupports_safe18; safecall; + end; + + nsICategoryManager_safe18 = interface(nsISupports_safe18) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar): PAnsiChar; safecall; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool): PAnsiChar; safecall; + procedure DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool); safecall; + procedure DeleteCategory(const aCategory: PAnsiChar); safecall; + function EnumerateCategory(const aCategory: PAnsiChar): nsISimpleEnumerator_safe18; safecall; + function EnumerateCategories(): nsISimpleEnumerator_safe18; safecall; + end; + + nsICertificateDialogs_safe18 = interface(nsISupports_safe18) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_safe18; cert: nsIX509Cert_safe18; out trust: PRUint32): PRBool; safecall; + procedure NotifyCACertExists(ctx: nsIInterfaceRequestor_safe18); safecall; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe18; password: nsAString): PRBool; safecall; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe18; password: nsAString): PRBool; safecall; + procedure ViewCert(ctx: nsIInterfaceRequestor_safe18; cert: nsIX509Cert_safe18); safecall; + procedure CrlImportStatusDialog(ctx: nsIInterfaceRequestor_safe18; crl: nsICRLInfo_safe18); safecall; + end; + + nsIRequest_safe18 = interface(nsISupports_safe18) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + procedure GetName(aName: nsACString); safecall; + function IsPending(): PRBool; safecall; + function GetStatus(): nsresult; safecall; + property Status: nsresult read GetStatus; + procedure Cancel(aStatus: nsresult); safecall; + procedure Suspend(); safecall; + procedure Resume(); safecall; + function GetLoadGroup(): nsILoadGroup_safe18; safecall; + procedure SetLoadGroup(aLoadGroup: nsILoadGroup_safe18); safecall; + property LoadGroup: nsILoadGroup_safe18 read GetLoadGroup write SetLoadGroup; + function GetLoadFlags(): nsLoadFlags; safecall; + procedure SetLoadFlags(aLoadFlags: nsLoadFlags); safecall; + property LoadFlags: nsLoadFlags read GetLoadFlags write SetLoadFlags; + end; + + nsIChannel_safe18 = interface(nsIRequest_safe18) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(): nsIURI_safe18; safecall; + procedure SetOriginalURI(aOriginalURI: nsIURI_safe18); safecall; + property OriginalURI: nsIURI_safe18 read GetOriginalURI write SetOriginalURI; + function GetURI(): nsIURI_safe18; safecall; + property URI: nsIURI_safe18 read GetURI; + function GetOwner(): nsISupports_safe18; safecall; + procedure SetOwner(aOwner: nsISupports_safe18); safecall; + property Owner: nsISupports_safe18 read GetOwner write SetOwner; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe18; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe18); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe18 read GetNotificationCallbacks write SetNotificationCallbacks; + function GetSecurityInfo(): nsISupports_safe18; safecall; + property SecurityInfo: nsISupports_safe18 read GetSecurityInfo; + procedure GetContentType(aContentType: nsACString); safecall; + procedure SetContentType(const aContentType: nsACString); safecall; + procedure GetContentCharset(aContentCharset: nsACString); safecall; + procedure SetContentCharset(const aContentCharset: nsACString); safecall; + function GetContentLength(): PRInt32; safecall; + procedure SetContentLength(aContentLength: PRInt32); safecall; + property ContentLength: PRInt32 read GetContentLength write SetContentLength; + function Open(): nsIInputStream_safe18; safecall; + procedure AsyncOpen(aListener: nsIStreamListener_safe18; aContext: nsISupports_safe18); safecall; + end; + + nsIProgrammingLanguage_safe18 = interface(nsISupports_safe18) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIClassInfo_safe18 = interface(nsISupports_safe18) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + procedure GetInterfaces(out count: PRUint32; out _array_array); safecall; + function GetHelperForLanguage(language: PRUint32): nsISupports_safe18; safecall; + function GetContractID(): PAnsiChar; safecall; + property ContractID: PAnsiChar read GetContractID; + function GetClassDescription(): PAnsiChar; safecall; + property ClassDescription: PAnsiChar read GetClassDescription; + function GetClassID(): PGUID; safecall; + property ClassID: PGUID read GetClassID; + function GetImplementationLanguage(): PRUint32; safecall; + property ImplementationLanguage: PRUint32 read GetImplementationLanguage; + function GetFlags(): PRUint32; safecall; + property Flags: PRUint32 read GetFlags; + function GetClassIDNoAlloc(): TGUID; safecall; + property ClassIDNoAlloc: TGUID read GetClassIDNoAlloc; + end; + + nsIClipboardCommands_safe18 = interface(nsISupports_safe18) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(): PRBool; safecall; + function CanCopySelection(): PRBool; safecall; + function CanCopyLinkLocation(): PRBool; safecall; + function CanCopyImageLocation(): PRBool; safecall; + function CanCopyImageContents(): PRBool; safecall; + function CanPaste(): PRBool; safecall; + procedure CutSelection(); safecall; + procedure CopySelection(); safecall; + procedure CopyLinkLocation(); safecall; + procedure CopyImageLocation(); safecall; + procedure CopyImageContents(); safecall; + procedure Paste(); safecall; + procedure SelectAll(); safecall; + procedure SelectNone(); safecall; + end; + + nsIComponentManager_safe18 = interface(nsISupports_safe18) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + procedure GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + procedure CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_safe18; constref aIID: TGUID; out _result); safecall; + procedure CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_safe18; constref aIID: TGUID; out _result); safecall; + end; + + nsIComponentRegistrar_safe18 = interface(nsISupports_safe18) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + procedure AutoRegister(aSpec: nsIFile_safe18); safecall; + procedure AutoUnregister(aSpec: nsIFile_safe18); safecall; + procedure RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_safe18); safecall; + procedure UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_safe18); safecall; + procedure RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_safe18; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_safe18); safecall; + function IsCIDRegistered(constref aClass: TGUID): PRBool; safecall; + function IsContractIDRegistered(const aContractID: PAnsiChar): PRBool; safecall; + function EnumerateCIDs(): nsISimpleEnumerator_safe18; safecall; + function EnumerateContractIDs(): nsISimpleEnumerator_safe18; safecall; + function CIDToContractID(constref aClass: TGUID): PAnsiChar; safecall; + function ContractIDToCID(const aContractID: PAnsiChar): PGUID; safecall; + end; + + nsIContextMenuListener_safe18 = interface(nsISupports_safe18) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + procedure OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_safe18; aNode: nsIDOMNode_safe18); safecall; + end; + + nsICookie_safe18 = interface(nsISupports_safe18) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + procedure GetName(aName: nsACString); safecall; + procedure GetValue(aValue: nsACString); safecall; + function GetIsDomain(): PRBool; safecall; + property IsDomain: PRBool read GetIsDomain; + procedure GetHost(aHost: nsACString); safecall; + procedure GetPath(aPath: nsACString); safecall; + function GetIsSecure(): PRBool; safecall; + property IsSecure: PRBool read GetIsSecure; + function GetExpires(): PRUint64; safecall; + property Expires: PRUint64 read GetExpires; + function GetStatus(): nsCookieStatus; safecall; + property Status: nsCookieStatus read GetStatus; + function GetPolicy(): nsCookiePolicy; safecall; + property Policy: nsCookiePolicy read GetPolicy; + end; + + nsICookieManager_safe18 = interface(nsISupports_safe18) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + procedure RemoveAll(); safecall; + function GetEnumerator(): nsISimpleEnumerator_safe18; safecall; + property Enumerator: nsISimpleEnumerator_safe18 read GetEnumerator; + procedure Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool); safecall; + end; + + nsICRLInfo_safe18 = interface(nsISupports_safe18) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + function GetLastUpdate(): PRTime; safecall; + property LastUpdate: PRTime read GetLastUpdate; + function GetNextUpdate(): PRTime; safecall; + property NextUpdate: PRTime read GetNextUpdate; + procedure GetLastUpdateLocale(aLastUpdateLocale: nsAString); safecall; + procedure GetNextUpdateLocale(aNextUpdateLocale: nsAString); safecall; + procedure GetNameInDb(aNameInDb: nsAString); safecall; + procedure GetLastFetchURL(aLastFetchURL: nsACString); safecall; + end; + + nsIDebug_safe18 = interface(nsISupports_safe18) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + procedure Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Break(const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Abort(const aFile: PAnsiChar; aLine: PRInt32); safecall; + end; + + nsIFile_safe18 = interface(nsISupports_safe18) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + procedure Append(const node: nsAString); safecall; + procedure AppendNative(const node: nsACString); safecall; + procedure Normalize(); safecall; + procedure Create(_type: PRUint32; permissions: PRUint32); safecall; + procedure GetLeafName(aLeafName: nsAString); safecall; + procedure SetLeafName(const aLeafName: nsAString); safecall; + procedure GetNativeLeafName(aNativeLeafName: nsACString); safecall; + procedure SetNativeLeafName(const aNativeLeafName: nsACString); safecall; + procedure CopyTo(newParentDir: nsIFile_safe18; const newName: nsAString); safecall; + procedure CopyToNative(newParentDir: nsIFile_safe18; const newName: nsACString); safecall; + procedure CopyToFollowingLinks(newParentDir: nsIFile_safe18; const newName: nsAString); safecall; + procedure CopyToFollowingLinksNative(newParentDir: nsIFile_safe18; const newName: nsACString); safecall; + procedure MoveTo(newParentDir: nsIFile_safe18; const newName: nsAString); safecall; + procedure MoveToNative(newParentDir: nsIFile_safe18; const newName: nsACString); safecall; + procedure Remove(recursive: PRBool); safecall; + function GetPermissions(): PRUint32; safecall; + procedure SetPermissions(aPermissions: PRUint32); safecall; + property Permissions: PRUint32 read GetPermissions write SetPermissions; + function GetPermissionsOfLink(): PRUint32; safecall; + procedure SetPermissionsOfLink(aPermissionsOfLink: PRUint32); safecall; + property PermissionsOfLink: PRUint32 read GetPermissionsOfLink write SetPermissionsOfLink; + function GetLastModifiedTime(): PRInt64; safecall; + procedure SetLastModifiedTime(aLastModifiedTime: PRInt64); safecall; + property LastModifiedTime: PRInt64 read GetLastModifiedTime write SetLastModifiedTime; + function GetLastModifiedTimeOfLink(): PRInt64; safecall; + procedure SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64); safecall; + property LastModifiedTimeOfLink: PRInt64 read GetLastModifiedTimeOfLink write SetLastModifiedTimeOfLink; + function GetFileSize(): PRInt64; safecall; + procedure SetFileSize(aFileSize: PRInt64); safecall; + property FileSize: PRInt64 read GetFileSize write SetFileSize; + function GetFileSizeOfLink(): PRInt64; safecall; + property FileSizeOfLink: PRInt64 read GetFileSizeOfLink; + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetNativeTarget(aNativeTarget: nsACString); safecall; + procedure GetPath(aPath: nsAString); safecall; + procedure GetNativePath(aNativePath: nsACString); safecall; + function Exists(): PRBool; safecall; + function IsWritable(): PRBool; safecall; + function IsReadable(): PRBool; safecall; + function IsExecutable(): PRBool; safecall; + function IsHidden(): PRBool; safecall; + function IsDirectory(): PRBool; safecall; + function IsFile(): PRBool; safecall; + function IsSymlink(): PRBool; safecall; + function IsSpecial(): PRBool; safecall; + procedure CreateUnique(_type: PRUint32; permissions: PRUint32); safecall; + function Clone(): nsIFile_safe18; safecall; + function Equals(inFile: nsIFile_safe18): PRBool; safecall; + function _Contains(inFile: nsIFile_safe18; recur: PRBool): PRBool; safecall; + function GetParent(): nsIFile_safe18; safecall; + property Parent: nsIFile_safe18 read GetParent; + function GetDirectoryEntries(): nsISimpleEnumerator_safe18; safecall; + property DirectoryEntries: nsISimpleEnumerator_safe18 read GetDirectoryEntries; + end; + + nsIDirectoryServiceProvider_safe18 = interface(nsISupports_safe18) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile_safe18; safecall; + end; + + nsIDirectoryServiceProvider2_safe18 = interface(nsIDirectoryServiceProvider_safe18) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar): nsISimpleEnumerator_safe18; safecall; + end; + + nsIDirectoryService_safe18 = interface(nsISupports_safe18) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + procedure Init(); safecall; + procedure RegisterProvider(prov: nsIDirectoryServiceProvider_safe18); safecall; + procedure UnregisterProvider(prov: nsIDirectoryServiceProvider_safe18); safecall; + end; + + nsIDOM3DocumentEvent_safe18 = interface(nsISupports_safe18) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(): nsIDOMEventGroup_safe18; safecall; + end; + + nsIDOM3EventTarget_safe18 = interface(nsISupports_safe18) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + procedure AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe18; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe18); safecall; + procedure RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe18; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe18); safecall; + function CanTrigger(const _type: nsAString): PRBool; safecall; + function IsRegisteredHere(const _type: nsAString): PRBool; safecall; + end; + + nsIDOMAbstractView_safe18 = interface(nsISupports_safe18) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(): nsIDOMDocumentView_safe18; safecall; + property Document: nsIDOMDocumentView_safe18 read GetDocument; + end; + + nsIDOMNode_safe18 = interface(nsISupports_safe18) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + procedure GetNodeName(aNodeName: nsAString); safecall; + procedure GetNodeValue(aNodeValue: nsAString); safecall; + procedure SetNodeValue(const aNodeValue: nsAString); safecall; + function GetNodeType(): PRUint16; safecall; + property NodeType: PRUint16 read GetNodeType; + function GetParentNode(): nsIDOMNode_safe18; safecall; + property ParentNode: nsIDOMNode_safe18 read GetParentNode; + function GetChildNodes(): nsIDOMNodeList_safe18; safecall; + property ChildNodes: nsIDOMNodeList_safe18 read GetChildNodes; + function GetFirstChild(): nsIDOMNode_safe18; safecall; + property FirstChild: nsIDOMNode_safe18 read GetFirstChild; + function GetLastChild(): nsIDOMNode_safe18; safecall; + property LastChild: nsIDOMNode_safe18 read GetLastChild; + function GetPreviousSibling(): nsIDOMNode_safe18; safecall; + property PreviousSibling: nsIDOMNode_safe18 read GetPreviousSibling; + function GetNextSibling(): nsIDOMNode_safe18; safecall; + property NextSibling: nsIDOMNode_safe18 read GetNextSibling; + function GetAttributes(): nsIDOMNamedNodeMap_safe18; safecall; + property Attributes: nsIDOMNamedNodeMap_safe18 read GetAttributes; + function GetOwnerDocument(): nsIDOMDocument_safe18; safecall; + property OwnerDocument: nsIDOMDocument_safe18 read GetOwnerDocument; + function InsertBefore(newChild: nsIDOMNode_safe18; refChild: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function ReplaceChild(newChild: nsIDOMNode_safe18; oldChild: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function RemoveChild(oldChild: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function AppendChild(newChild: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function HasChildNodes(): PRBool; safecall; + function CloneNode(deep: PRBool): nsIDOMNode_safe18; safecall; + procedure Normalize(); safecall; + function IsSupported(const feature: nsAString; const version: nsAString): PRBool; safecall; + procedure GetNamespaceURI(aNamespaceURI: nsAString); safecall; + procedure GetPrefix(aPrefix: nsAString); safecall; + procedure SetPrefix(const aPrefix: nsAString); safecall; + procedure GetLocalName(aLocalName: nsAString); safecall; + function HasAttributes(): PRBool; safecall; + end; + + nsIDOMAttr_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetSpecified(): PRBool; safecall; + property Specified: PRBool read GetSpecified; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetOwnerElement(): nsIDOMElement_safe18; safecall; + property OwnerElement: nsIDOMElement_safe18 read GetOwnerElement; + end; + + nsIDOMBarProp_safe18 = interface(nsISupports_safe18) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(): PRBool; safecall; + procedure SetVisible(aVisible: PRBool); safecall; + property Visible: PRBool read GetVisible write SetVisible; + end; + + nsIDOMCharacterData_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString); safecall; + procedure AppendData(const arg: nsAString); safecall; + procedure InsertData(offset: PRUint32; const arg: nsAString); safecall; + procedure DeleteData(offset: PRUint32; count: PRUint32); safecall; + procedure ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString); safecall; + end; + + nsIDOMText_safe18 = interface(nsIDOMCharacterData_safe18) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32): nsIDOMText_safe18; safecall; + end; + + nsIDOMCDATASection_safe18 = interface(nsIDOMText_safe18) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_safe18 = interface(nsIDOMCharacterData_safe18) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_safe18 = interface(nsISupports_safe18) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + procedure GetIdentifier(aIdentifier: nsAString); safecall; + procedure GetListStyle(aListStyle: nsAString); safecall; + procedure GetSeparator(aSeparator: nsAString); safecall; + end; + + nsIDOMCSSValue_safe18 = interface(nsISupports_safe18) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetCssValueType(): PRUint16; safecall; + property CssValueType: PRUint16 read GetCssValueType; + end; + + nsIDOMCSSPrimitiveValue_safe18 = interface(nsIDOMCSSValue_safe18) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(): PRUint16; safecall; + property PrimitiveType: PRUint16 read GetPrimitiveType; + procedure SetFloatValue(unitType: PRUint16; floatValue: Single); safecall; + function GetFloatValue(unitType: PRUint16): Single; safecall; + procedure SetStringValue(stringType: PRUint16; const stringValue: nsAString); safecall; + procedure GetStringValue(_retval: nsAString); safecall; + function GetCounterValue(): nsIDOMCounter_safe18; safecall; + function GetRectValue(): nsIDOMRect_safe18; safecall; + function GetRGBColorValue(): nsIDOMRGBColor_safe18; safecall; + end; + + nsIDOMCSSRule_safe18 = interface(nsISupports_safe18) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetParentStyleSheet(): nsIDOMCSSStyleSheet_safe18; safecall; + property ParentStyleSheet: nsIDOMCSSStyleSheet_safe18 read GetParentStyleSheet; + function GetParentRule(): nsIDOMCSSRule_safe18; safecall; + property ParentRule: nsIDOMCSSRule_safe18 read GetParentRule; + end; + + nsIDOMCSSRuleList_safe18 = interface(nsISupports_safe18) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSRule_safe18; safecall; + end; + + nsIDOMCSSStyleDeclaration_safe18 = interface(nsISupports_safe18) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + procedure GetPropertyValue(const propertyName: nsAString; _retval: nsAString); safecall; + function GetPropertyCSSValue(const propertyName: nsAString): nsIDOMCSSValue_safe18; safecall; + procedure RemoveProperty(const propertyName: nsAString; _retval: nsAString); safecall; + procedure GetPropertyPriority(const propertyName: nsAString; _retval: nsAString); safecall; + procedure SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + function GetParentRule(): nsIDOMCSSRule_safe18; safecall; + property ParentRule: nsIDOMCSSRule_safe18 read GetParentRule; + end; + + nsIDOMStyleSheet_safe18 = interface(nsISupports_safe18) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetOwnerNode(): nsIDOMNode_safe18; safecall; + property OwnerNode: nsIDOMNode_safe18 read GetOwnerNode; + function GetParentStyleSheet(): nsIDOMStyleSheet_safe18; safecall; + property ParentStyleSheet: nsIDOMStyleSheet_safe18 read GetParentStyleSheet; + procedure GetHref(aHref: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + function GetMedia(): nsIDOMMediaList_safe18; safecall; + property Media: nsIDOMMediaList_safe18 read GetMedia; + end; + + nsIDOMCSSStyleSheet_safe18 = interface(nsIDOMStyleSheet_safe18) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(): nsIDOMCSSRule_safe18; safecall; + property OwnerRule: nsIDOMCSSRule_safe18 read GetOwnerRule; + function GetCssRules(): nsIDOMCSSRuleList_safe18; safecall; + property CssRules: nsIDOMCSSRuleList_safe18 read GetCssRules; + function InsertRule(const rule: nsAString; index: PRUint32): PRUint32; safecall; + procedure DeleteRule(index: PRUint32); safecall; + end; + + nsIDOMCSSValueList_safe18 = interface(nsIDOMCSSValue_safe18) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSValue_safe18; safecall; + end; + + nsIDOMEvent_safe18 = interface(nsISupports_safe18) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + procedure GetType(aType: nsAString); safecall; + function GetTarget(): nsIDOMEventTarget_safe18; safecall; + property Target: nsIDOMEventTarget_safe18 read GetTarget; + function GetCurrentTarget(): nsIDOMEventTarget_safe18; safecall; + property CurrentTarget: nsIDOMEventTarget_safe18 read GetCurrentTarget; + function GetEventPhase(): PRUint16; safecall; + property EventPhase: PRUint16 read GetEventPhase; + function GetBubbles(): PRBool; safecall; + property Bubbles: PRBool read GetBubbles; + function GetCancelable(): PRBool; safecall; + property Cancelable: PRBool read GetCancelable; + function GetTimeStamp(): DOMTimeStamp; safecall; + property TimeStamp: DOMTimeStamp read GetTimeStamp; + procedure StopPropagation(); safecall; + procedure PreventDefault(); safecall; + procedure InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool); safecall; + end; + + nsIDOMCustomEvent_safe18 = interface(nsIDOMEvent_safe18) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + procedure SetCurrentTarget(target: nsIDOMNode_safe18); safecall; + procedure SetEventPhase(phase: PRUint16); safecall; + end; + + nsIDOMDocument_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(): nsIDOMDocumentType_safe18; safecall; + property Doctype: nsIDOMDocumentType_safe18 read GetDoctype; + function GetImplementation(): nsIDOMDOMImplementation_safe18; safecall; + property _Implementation: nsIDOMDOMImplementation_safe18 read GetImplementation; + function GetDocumentElement(): nsIDOMElement_safe18; safecall; + property DocumentElement: nsIDOMElement_safe18 read GetDocumentElement; + function CreateElement(const tagName: nsAString): nsIDOMElement_safe18; safecall; + function CreateDocumentFragment(): nsIDOMDocumentFragment_safe18; safecall; + function CreateTextNode(const data: nsAString): nsIDOMText_safe18; safecall; + function CreateComment(const data: nsAString): nsIDOMComment_safe18; safecall; + function CreateCDATASection(const data: nsAString): nsIDOMCDATASection_safe18; safecall; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString): nsIDOMProcessingInstruction_safe18; safecall; + function CreateAttribute(const name: nsAString): nsIDOMAttr_safe18; safecall; + function CreateEntityReference(const name: nsAString): nsIDOMEntityReference_safe18; safecall; + function GetElementsByTagName(const tagname: nsAString): nsIDOMNodeList_safe18; safecall; + function ImportNode(importedNode: nsIDOMNode_safe18; deep: PRBool): nsIDOMNode_safe18; safecall; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMElement_safe18; safecall; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMAttr_safe18; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe18; safecall; + function GetElementById(const elementId: nsAString): nsIDOMElement_safe18; safecall; + end; + + nsIDOMDocumentEvent_safe18 = interface(nsISupports_safe18) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString): nsIDOMEvent_safe18; safecall; + end; + + nsIDOMDocumentFragment_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_safe18 = interface(nsISupports_safe18) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(): nsIDOMRange_safe18; safecall; + end; + + nsIDOMDocumentStyle_safe18 = interface(nsISupports_safe18) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(): nsIDOMStyleSheetList_safe18; safecall; + property StyleSheets: nsIDOMStyleSheetList_safe18 read GetStyleSheets; + end; + + nsIDOMDocumentType_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetEntities(): nsIDOMNamedNodeMap_safe18; safecall; + property Entities: nsIDOMNamedNodeMap_safe18 read GetEntities; + function GetNotations(): nsIDOMNamedNodeMap_safe18; safecall; + property Notations: nsIDOMNamedNodeMap_safe18 read GetNotations; + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetInternalSubset(aInternalSubset: nsAString); safecall; + end; + + nsIDOMDocumentView_safe18 = interface(nsISupports_safe18) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(): nsIDOMAbstractView_safe18; safecall; + property DefaultView: nsIDOMAbstractView_safe18 read GetDefaultView; + end; + + nsIDOMDOMException_safe18 = interface(nsISupports_safe18) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(): PRUint32; safecall; + property Code: PRUint32 read GetCode; + end; + + nsIDOMDOMImplementation_safe18 = interface(nsISupports_safe18) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString): PRBool; safecall; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString): nsIDOMDocumentType_safe18; safecall; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_safe18): nsIDOMDocument_safe18; safecall; + end; + + nsIDOMElement_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + procedure GetTagName(aTagName: nsAString); safecall; + procedure GetAttribute(const name: nsAString; _retval: nsAString); safecall; + procedure SetAttribute(const name: nsAString; const value: nsAString); safecall; + procedure RemoveAttribute(const name: nsAString); safecall; + function GetAttributeNode(const name: nsAString): nsIDOMAttr_safe18; safecall; + function SetAttributeNode(newAttr: nsIDOMAttr_safe18): nsIDOMAttr_safe18; safecall; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_safe18): nsIDOMAttr_safe18; safecall; + function GetElementsByTagName(const name: nsAString): nsIDOMNodeList_safe18; safecall; + procedure GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString); safecall; + procedure SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString); safecall; + procedure RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString); safecall; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMAttr_safe18; safecall; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_safe18): nsIDOMAttr_safe18; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe18; safecall; + function HasAttribute(const name: nsAString): PRBool; safecall; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString): PRBool; safecall; + end; + + nsIDOMElementCSSInlineStyle_safe18 = interface(nsISupports_safe18) + ['{99715845-95fc-4a56-aa53-214b65c26e22}'] + function GetStyle(): nsIDOMCSSStyleDeclaration_safe18; safecall; + property Style: nsIDOMCSSStyleDeclaration_safe18 read GetStyle; + end; + + nsIDOMEntity_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetNotationName(aNotationName: nsAString); safecall; + end; + + nsIDOMEntityReference_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_safe18 = interface(nsISupports_safe18) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_safe18): PRBool; safecall; + end; + + nsIDOMEventListener_safe18 = interface(nsISupports_safe18) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + procedure HandleEvent(event: nsIDOMEvent_safe18); safecall; + end; + + nsIDOMEventTarget_safe18 = interface(nsISupports_safe18) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + procedure AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe18; useCapture: PRBool); safecall; + procedure RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe18; useCapture: PRBool); safecall; + function DispatchEvent(evt: nsIDOMEvent_safe18): PRBool; safecall; + end; + + nsIDOMHTMLElement_safe18 = interface(nsIDOMElement_safe18) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + procedure GetId(aId: nsAString); safecall; + procedure SetId(const aId: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetLang(aLang: nsAString); safecall; + procedure SetLang(const aLang: nsAString); safecall; + procedure GetDir(aDir: nsAString); safecall; + procedure SetDir(const aDir: nsAString); safecall; + procedure GetClassName(aClassName: nsAString); safecall; + procedure SetClassName(const aClassName: nsAString); safecall; + end; + + nsIDOMHTMLAnchorElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLAppletElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetObject(aObject: nsAString); safecall; + procedure SetObject(const aObject: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLAreaElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + function GetNoHref(): PRBool; safecall; + procedure SetNoHref(aNoHref: PRBool); safecall; + property NoHref: PRBool read GetNoHref write SetNoHref; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseFontElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + end; + + nsIDOMHTMLBodyElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + procedure GetALink(aALink: nsAString); safecall; + procedure SetALink(const aALink: nsAString); safecall; + procedure GetBackground(aBackground: nsAString); safecall; + procedure SetBackground(const aBackground: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetLink(aLink: nsAString); safecall; + procedure SetLink(const aLink: nsAString); safecall; + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetVLink(aVLink: nsAString); safecall; + procedure SetVLink(const aVLink: nsAString); safecall; + end; + + nsIDOMHTMLBRElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + procedure GetClear(aClear: nsAString); safecall; + procedure SetClear(const aClear: nsAString); safecall; + end; + + nsIDOMHTMLButtonElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLCollection_safe18 = interface(nsISupports_safe18) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMNode_safe18; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe18; safecall; + end; + + nsIDOMHTMLDirectoryElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDivElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLDListElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDocument_safe18 = interface(nsIDOMDocument_safe18) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetReferrer(aReferrer: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure GetURL(aURL: nsAString); safecall; + function GetBody(): nsIDOMHTMLElement_safe18; safecall; + procedure SetBody(aBody: nsIDOMHTMLElement_safe18); safecall; + property Body: nsIDOMHTMLElement_safe18 read GetBody write SetBody; + function GetImages(): nsIDOMHTMLCollection_safe18; safecall; + property Images: nsIDOMHTMLCollection_safe18 read GetImages; + function GetApplets(): nsIDOMHTMLCollection_safe18; safecall; + property Applets: nsIDOMHTMLCollection_safe18 read GetApplets; + function GetLinks(): nsIDOMHTMLCollection_safe18; safecall; + property Links: nsIDOMHTMLCollection_safe18 read GetLinks; + function GetForms(): nsIDOMHTMLCollection_safe18; safecall; + property Forms: nsIDOMHTMLCollection_safe18 read GetForms; + function GetAnchors(): nsIDOMHTMLCollection_safe18; safecall; + property Anchors: nsIDOMHTMLCollection_safe18 read GetAnchors; + procedure GetCookie(aCookie: nsAString); safecall; + procedure SetCookie(const aCookie: nsAString); safecall; + procedure Open(); safecall; + procedure Close(); safecall; + procedure Write(const text: nsAString); safecall; + procedure Writeln(const text: nsAString); safecall; + function GetElementsByName(const elementName: nsAString): nsIDOMNodeList_safe18; safecall; + end; + + nsIDOMHTMLEmbedElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLFieldSetElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + end; + + nsIDOMHTMLFontElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + end; + + nsIDOMHTMLFormElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(): nsIDOMHTMLCollection_safe18; safecall; + property Elements: nsIDOMHTMLCollection_safe18 read GetElements; + function GetLength(): PRInt32; safecall; + property Length: PRInt32 read GetLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAcceptCharset(aAcceptCharset: nsAString); safecall; + procedure SetAcceptCharset(const aAcceptCharset: nsAString); safecall; + procedure GetAction(aAction: nsAString); safecall; + procedure SetAction(const aAction: nsAString); safecall; + procedure GetEnctype(aEnctype: nsAString); safecall; + procedure SetEnctype(const aEnctype: nsAString); safecall; + procedure GetMethod(aMethod: nsAString); safecall; + procedure SetMethod(const aMethod: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure Submit(); safecall; + procedure Reset(); safecall; + end; + + nsIDOMHTMLFrameElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetNoResize(): PRBool; safecall; + procedure SetNoResize(aNoResize: PRBool); safecall; + property NoResize: PRBool read GetNoResize write SetNoResize; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe18; safecall; + property ContentDocument: nsIDOMDocument_safe18 read GetContentDocument; + end; + + nsIDOMHTMLFrameSetElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + procedure GetCols(aCols: nsAString); safecall; + procedure SetCols(const aCols: nsAString); safecall; + procedure GetRows(aRows: nsAString); safecall; + procedure SetRows(const aRows: nsAString); safecall; + end; + + nsIDOMHTMLHeadElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + procedure GetProfile(aProfile: nsAString); safecall; + procedure SetProfile(const aProfile: nsAString); safecall; + end; + + nsIDOMHTMLHeadingElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLHRElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + function GetNoShade(): PRBool; safecall; + procedure SetNoShade(aNoShade: PRBool); safecall; + property NoShade: PRBool read GetNoShade write SetNoShade; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLHtmlElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + procedure GetVersion(aVersion: nsAString); safecall; + procedure SetVersion(const aVersion: nsAString); safecall; + end; + + nsIDOMHTMLIFrameElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe18; safecall; + property ContentDocument: nsIDOMDocument_safe18 read GetContentDocument; + end; + + nsIDOMHTMLImageElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + function GetHeight(): PRInt32; safecall; + procedure SetHeight(aHeight: PRInt32); safecall; + property Height: PRInt32 read GetHeight write SetHeight; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + function GetIsMap(): PRBool; safecall; + procedure SetIsMap(aIsMap: PRBool); safecall; + property IsMap: PRBool read GetIsMap write SetIsMap; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLInputElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetDefaultChecked(): PRBool; safecall; + procedure SetDefaultChecked(aDefaultChecked: PRBool); safecall; + property DefaultChecked: PRBool read GetDefaultChecked write SetDefaultChecked; + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetAccept(aAccept: nsAString); safecall; + procedure SetAccept(const aAccept: nsAString); safecall; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + function GetChecked(): PRBool; safecall; + procedure SetChecked(aChecked: PRBool); safecall; + property Checked: PRBool read GetChecked write SetChecked; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetSize(): PRUint32; safecall; + procedure SetSize(aSize: PRUint32); safecall; + property Size: PRUint32 read GetSize write SetSize; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + procedure Click(); safecall; + end; + + nsIDOMHTMLIsIndexElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetPrompt(aPrompt: nsAString); safecall; + procedure SetPrompt(const aPrompt: nsAString); safecall; + end; + + nsIDOMHTMLLabelElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + end; + + nsIDOMHTMLLegendElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLLIElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + function GetValue(): PRInt32; safecall; + procedure SetValue(aValue: PRInt32); safecall; + property Value: PRInt32 read GetValue write SetValue; + end; + + nsIDOMHTMLLinkElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLMapElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(): nsIDOMHTMLCollection_safe18; safecall; + property Areas: nsIDOMHTMLCollection_safe18 read GetAreas; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + end; + + nsIDOMHTMLMenuElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLMetaElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + procedure GetContent(aContent: nsAString); safecall; + procedure SetContent(const aContent: nsAString); safecall; + procedure GetHttpEquiv(aHttpEquiv: nsAString); safecall; + procedure SetHttpEquiv(const aHttpEquiv: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScheme(aScheme: nsAString); safecall; + procedure SetScheme(const aScheme: nsAString); safecall; + end; + + nsIDOMHTMLModElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + procedure GetDateTime(aDateTime: nsAString); safecall; + procedure SetDateTime(const aDateTime: nsAString); safecall; + end; + + nsIDOMHTMLObjectElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetCodeType(aCodeType: nsAString); safecall; + procedure SetCodeType(const aCodeType: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetDeclare(): PRBool; safecall; + procedure SetDeclare(aDeclare: PRBool); safecall; + property Declare: PRBool read GetDeclare write SetDeclare; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetStandby(aStandby: nsAString); safecall; + procedure SetStandby(const aStandby: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe18; safecall; + property ContentDocument: nsIDOMDocument_safe18 read GetContentDocument; + end; + + nsIDOMHTMLOListElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + function GetStart(): PRInt32; safecall; + procedure SetStart(aStart: PRInt32); safecall; + property Start: PRInt32 read GetStart write SetStart; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLOptGroupElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + end; + + nsIDOMHTMLOptionElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + function GetDefaultSelected(): PRBool; safecall; + procedure SetDefaultSelected(aDefaultSelected: PRBool); safecall; + property DefaultSelected: PRBool read GetDefaultSelected write SetDefaultSelected; + procedure GetText(aText: nsAString); safecall; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + function GetSelected(): PRBool; safecall; + procedure SetSelected(aSelected: PRBool); safecall; + property Selected: PRBool read GetSelected write SetSelected; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLOptionsCollection_safe18 = interface(nsISupports_safe18) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function Item(index: PRUint32): nsIDOMNode_safe18; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe18; safecall; + end; + + nsIDOMHTMLParagraphElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLParamElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure GetValueType(aValueType: nsAString); safecall; + procedure SetValueType(const aValueType: nsAString); safecall; + end; + + nsIDOMHTMLPreElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLQuoteElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + end; + + nsIDOMHTMLScriptElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + procedure GetEvent(aEvent: nsAString); safecall; + procedure SetEvent(const aEvent: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + function GetDefer(): PRBool; safecall; + procedure SetDefer(aDefer: PRBool); safecall; + property Defer: PRBool read GetDefer write SetDefer; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLSelectElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetSelectedIndex(): PRInt32; safecall; + procedure SetSelectedIndex(aSelectedIndex: PRInt32); safecall; + property SelectedIndex: PRInt32 read GetSelectedIndex write SetSelectedIndex; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + function GetOptions(): nsIDOMHTMLOptionsCollection_safe18; safecall; + property Options: nsIDOMHTMLOptionsCollection_safe18 read GetOptions; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMultiple(): PRBool; safecall; + procedure SetMultiple(aMultiple: PRBool); safecall; + property Multiple: PRBool read GetMultiple write SetMultiple; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure Add(element: nsIDOMHTMLElement_safe18; before: nsIDOMHTMLElement_safe18); safecall; + procedure Remove(index: PRInt32); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLStyleElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLTableCaptionElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLTableCellElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(): PRInt32; safecall; + property CellIndex: PRInt32 read GetCellIndex; + procedure GetAbbr(aAbbr: nsAString); safecall; + procedure SetAbbr(const aAbbr: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAxis(aAxis: nsAString); safecall; + procedure SetAxis(const aAxis: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetColSpan(): PRInt32; safecall; + procedure SetColSpan(aColSpan: PRInt32); safecall; + property ColSpan: PRInt32 read GetColSpan write SetColSpan; + procedure GetHeaders(aHeaders: nsAString); safecall; + procedure SetHeaders(const aHeaders: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetNoWrap(): PRBool; safecall; + procedure SetNoWrap(aNoWrap: PRBool); safecall; + property NoWrap: PRBool read GetNoWrap write SetNoWrap; + function GetRowSpan(): PRInt32; safecall; + procedure SetRowSpan(aRowSpan: PRInt32); safecall; + property RowSpan: PRInt32 read GetRowSpan write SetRowSpan; + procedure GetScope(aScope: nsAString); safecall; + procedure SetScope(const aScope: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableColElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetSpan(): PRInt32; safecall; + procedure SetSpan(aSpan: PRInt32); safecall; + property Span: PRInt32 read GetSpan write SetSpan; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(): nsIDOMHTMLTableCaptionElement_safe18; safecall; + procedure SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_safe18); safecall; + property Caption: nsIDOMHTMLTableCaptionElement_safe18 read GetCaption write SetCaption; + function GetTHead(): nsIDOMHTMLTableSectionElement_safe18; safecall; + procedure SetTHead(aTHead: nsIDOMHTMLTableSectionElement_safe18); safecall; + property THead: nsIDOMHTMLTableSectionElement_safe18 read GetTHead write SetTHead; + function GetTFoot(): nsIDOMHTMLTableSectionElement_safe18; safecall; + procedure SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_safe18); safecall; + property TFoot: nsIDOMHTMLTableSectionElement_safe18 read GetTFoot write SetTFoot; + function GetRows(): nsIDOMHTMLCollection_safe18; safecall; + property Rows: nsIDOMHTMLCollection_safe18 read GetRows; + function GetTBodies(): nsIDOMHTMLCollection_safe18; safecall; + property TBodies: nsIDOMHTMLCollection_safe18 read GetTBodies; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCellPadding(aCellPadding: nsAString); safecall; + procedure SetCellPadding(const aCellPadding: nsAString); safecall; + procedure GetCellSpacing(aCellSpacing: nsAString); safecall; + procedure SetCellSpacing(const aCellSpacing: nsAString); safecall; + procedure GetFrame(aFrame: nsAString); safecall; + procedure SetFrame(const aFrame: nsAString); safecall; + procedure GetRules(aRules: nsAString); safecall; + procedure SetRules(const aRules: nsAString); safecall; + procedure GetSummary(aSummary: nsAString); safecall; + procedure SetSummary(const aSummary: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function CreateTHead(): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteTHead(); safecall; + function CreateTFoot(): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteTFoot(); safecall; + function CreateCaption(): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteCaption(); safecall; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableRowElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(): PRInt32; safecall; + property RowIndex: PRInt32 read GetRowIndex; + function GetSectionRowIndex(): PRInt32; safecall; + property SectionRowIndex: PRInt32 read GetSectionRowIndex; + function GetCells(): nsIDOMHTMLCollection_safe18; safecall; + property Cells: nsIDOMHTMLCollection_safe18 read GetCells; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function InsertCell(index: PRInt32): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteCell(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableSectionElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function GetRows(): nsIDOMHTMLCollection_safe18; safecall; + property Rows: nsIDOMHTMLCollection_safe18 read GetRows; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe18; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTextAreaElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetForm(): nsIDOMHTMLFormElement_safe18; safecall; + property Form: nsIDOMHTMLFormElement_safe18 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetCols(): PRInt32; safecall; + procedure SetCols(aCols: PRInt32); safecall; + property Cols: PRInt32 read GetCols write SetCols; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetRows(): PRInt32; safecall; + procedure SetRows(aRows: PRInt32); safecall; + property Rows: PRInt32 read GetRows write SetRows; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + end; + + nsIDOMHTMLTitleElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + end; + + nsIDOMHTMLUListElement_safe18 = interface(nsIDOMHTMLElement_safe18) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMMediaList_safe18 = interface(nsISupports_safe18) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + procedure GetMediaText(aMediaText: nsAString); safecall; + procedure SetMediaText(const aMediaText: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure DeleteMedium(const oldMedium: nsAString); safecall; + procedure AppendMedium(const newMedium: nsAString); safecall; + end; + + nsIDOMUIEvent_safe18 = interface(nsIDOMEvent_safe18) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(): nsIDOMAbstractView_safe18; safecall; + property View: nsIDOMAbstractView_safe18 read GetView; + function GetDetail(): PRInt32; safecall; + property Detail: PRInt32 read GetDetail; + procedure InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe18; detailArg: PRInt32); safecall; + end; + + nsIDOMMouseEvent_safe18 = interface(nsIDOMUIEvent_safe18) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(): PRInt32; safecall; + property ScreenX: PRInt32 read GetScreenX; + function GetScreenY(): PRInt32; safecall; + property ScreenY: PRInt32 read GetScreenY; + function GetClientX(): PRInt32; safecall; + property ClientX: PRInt32 read GetClientX; + function GetClientY(): PRInt32; safecall; + property ClientY: PRInt32 read GetClientY; + function GetCtrlKey(): PRBool; safecall; + property CtrlKey: PRBool read GetCtrlKey; + function GetShiftKey(): PRBool; safecall; + property ShiftKey: PRBool read GetShiftKey; + function GetAltKey(): PRBool; safecall; + property AltKey: PRBool read GetAltKey; + function GetMetaKey(): PRBool; safecall; + property MetaKey: PRBool read GetMetaKey; + function GetButton(): PRUint16; safecall; + property Button: PRUint16 read GetButton; + function GetRelatedTarget(): nsIDOMEventTarget_safe18; safecall; + property RelatedTarget: nsIDOMEventTarget_safe18 read GetRelatedTarget; + procedure InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe18; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_safe18); safecall; + end; + + nsIDOMNamedNodeMap_safe18 = interface(nsISupports_safe18) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString): nsIDOMNode_safe18; safecall; + function SetNamedItem(arg: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function RemoveNamedItem(const name: nsAString): nsIDOMNode_safe18; safecall; + function Item(index: PRUint32): nsIDOMNode_safe18; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe18; safecall; + function SetNamedItemNS(arg: nsIDOMNode_safe18): nsIDOMNode_safe18; safecall; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe18; safecall; + end; + + nsIDOMNodeList_safe18 = interface(nsISupports_safe18) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32): nsIDOMNode_safe18; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + end; + + nsIDOMNotation_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + end; + + nsIDOMNSDocumentStyle_safe18 = interface(nsIDOMDocumentStyle_safe18) + ['{4ecdf254-a21e-47b0-8d72-55da8208299f}'] + procedure GetPreferredStylesheetSet(aPreferredStylesheetSet: nsAString); safecall; + end; + + nsIDOMProcessingInstruction_safe18 = interface(nsIDOMNode_safe18) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + end; + + nsIDOMRange_safe18 = interface(nsISupports_safe18) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(): nsIDOMNode_safe18; safecall; + property StartContainer: nsIDOMNode_safe18 read GetStartContainer; + function GetStartOffset(): PRInt32; safecall; + property StartOffset: PRInt32 read GetStartOffset; + function GetEndContainer(): nsIDOMNode_safe18; safecall; + property EndContainer: nsIDOMNode_safe18 read GetEndContainer; + function GetEndOffset(): PRInt32; safecall; + property EndOffset: PRInt32 read GetEndOffset; + function GetCollapsed(): PRBool; safecall; + property Collapsed: PRBool read GetCollapsed; + function GetCommonAncestorContainer(): nsIDOMNode_safe18; safecall; + property CommonAncestorContainer: nsIDOMNode_safe18 read GetCommonAncestorContainer; + procedure SetStart(refNode: nsIDOMNode_safe18; offset: PRInt32); safecall; + procedure SetEnd(refNode: nsIDOMNode_safe18; offset: PRInt32); safecall; + procedure SetStartBefore(refNode: nsIDOMNode_safe18); safecall; + procedure SetStartAfter(refNode: nsIDOMNode_safe18); safecall; + procedure SetEndBefore(refNode: nsIDOMNode_safe18); safecall; + procedure SetEndAfter(refNode: nsIDOMNode_safe18); safecall; + procedure Collapse(toStart: PRBool); safecall; + procedure SelectNode(refNode: nsIDOMNode_safe18); safecall; + procedure SelectNodeContents(refNode: nsIDOMNode_safe18); safecall; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_safe18): PRInt16; safecall; + procedure DeleteContents(); safecall; + function ExtractContents(): nsIDOMDocumentFragment_safe18; safecall; + function CloneContents(): nsIDOMDocumentFragment_safe18; safecall; + procedure InsertNode(newNode: nsIDOMNode_safe18); safecall; + procedure SurroundContents(newParent: nsIDOMNode_safe18); safecall; + function CloneRange(): nsIDOMRange_safe18; safecall; + procedure ToString(_retval: nsAString); safecall; + procedure Detach(); safecall; + end; + + nsIDOMRect_safe18 = interface(nsISupports_safe18) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Top: nsIDOMCSSPrimitiveValue_safe18 read GetTop; + function GetRight(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Right: nsIDOMCSSPrimitiveValue_safe18 read GetRight; + function GetBottom(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Bottom: nsIDOMCSSPrimitiveValue_safe18 read GetBottom; + function GetLeft(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Left: nsIDOMCSSPrimitiveValue_safe18 read GetLeft; + end; + + nsIDOMRGBColor_safe18 = interface(nsISupports_safe18) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Red: nsIDOMCSSPrimitiveValue_safe18 read GetRed; + function GetGreen(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Green: nsIDOMCSSPrimitiveValue_safe18 read GetGreen; + function GetBlue(): nsIDOMCSSPrimitiveValue_safe18; safecall; + property Blue: nsIDOMCSSPrimitiveValue_safe18 read GetBlue; + end; + + nsIDOMStyleSheetList_safe18 = interface(nsISupports_safe18) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMStyleSheet_safe18; safecall; + end; + + nsIDOMWindow_safe18 = interface(nsISupports_safe18) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(): nsIDOMDocument_safe18; safecall; + property Document: nsIDOMDocument_safe18 read GetDocument; + function GetParent(): nsIDOMWindow_safe18; safecall; + property Parent: nsIDOMWindow_safe18 read GetParent; + function GetTop(): nsIDOMWindow_safe18; safecall; + property Top: nsIDOMWindow_safe18 read GetTop; + function GetScrollbars(): nsIDOMBarProp_safe18; safecall; + property Scrollbars: nsIDOMBarProp_safe18 read GetScrollbars; + function GetFrames(): nsIDOMWindowCollection_safe18; safecall; + property Frames: nsIDOMWindowCollection_safe18 read GetFrames; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTextZoom(): Single; safecall; + procedure SetTextZoom(aTextZoom: Single); safecall; + property TextZoom: Single read GetTextZoom write SetTextZoom; + function GetScrollX(): PRInt32; safecall; + property ScrollX: PRInt32 read GetScrollX; + function GetScrollY(): PRInt32; safecall; + property ScrollY: PRInt32 read GetScrollY; + procedure ScrollTo(xScroll: PRInt32; yScroll: PRInt32); safecall; + procedure ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32); safecall; + function GetSelection(): nsISelection_safe18; safecall; + procedure ScrollByLines(numLines: PRInt32); safecall; + procedure ScrollByPages(numPages: PRInt32); safecall; + procedure SizeToContent(); safecall; + end; + + nsIDOMWindow2_safe18 = interface(nsIDOMWindow_safe18) + ['{65455132-b96a-40ec-adea-52fa22b1028c}'] + function GetWindowRoot(): nsIDOMEventTarget_safe18; safecall; + property WindowRoot: nsIDOMEventTarget_safe18 read GetWindowRoot; + end; + + nsIDOMWindowCollection_safe18 = interface(nsISupports_safe18) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMWindow_safe18; safecall; + function NamedItem(const name: nsAString): nsIDOMWindow_safe18; safecall; + end; + + nsIDOMWindowUtils_safe18 = interface(nsISupports_safe18) + ['{8a157a4f-a81e-489f-baf2-bc8970d60472}'] + function GetImageAnimationMode(): PRUint16; safecall; + procedure SetImageAnimationMode(aImageAnimationMode: PRUint16); safecall; + property ImageAnimationMode: PRUint16 read GetImageAnimationMode write SetImageAnimationMode; + procedure GetDocumentMetadata(const aName: nsAString; _retval: nsAString); safecall; + end; + + nsIEmbeddingSiteWindow_safe18 = interface(nsISupports_safe18) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); safecall; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); safecall; + procedure SetFocus(); safecall; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(aVisibility: PRBool); safecall; + property Visibility: PRBool read GetVisibility write SetVisibility; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetSiteWindow(): Pointer; safecall; + property SiteWindow: Pointer read GetSiteWindow; + end; + + nsIFactory_safe18 = interface(nsISupports_safe18) + ['{00000001-0000-0000-c000-000000000046}'] + procedure CreateInstance(aOuter: nsISupports_safe18; constref iid: TGUID; out _result); safecall; + procedure LockFactory(lock: PRBool); safecall; + end; + + nsIURI_safe18 = interface(nsISupports_safe18) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + procedure GetSpec(aSpec: nsACString); safecall; + procedure SetSpec(const aSpec: nsACString); safecall; + procedure GetPrePath(aPrePath: nsACString); safecall; + procedure GetScheme(aScheme: nsACString); safecall; + procedure SetScheme(const aScheme: nsACString); safecall; + procedure GetUserPass(aUserPass: nsACString); safecall; + procedure SetUserPass(const aUserPass: nsACString); safecall; + procedure GetUsername(aUsername: nsACString); safecall; + procedure SetUsername(const aUsername: nsACString); safecall; + procedure GetPassword(aPassword: nsACString); safecall; + procedure SetPassword(const aPassword: nsACString); safecall; + procedure GetHostPort(aHostPort: nsACString); safecall; + procedure SetHostPort(const aHostPort: nsACString); safecall; + procedure GetHost(aHost: nsACString); safecall; + procedure SetHost(const aHost: nsACString); safecall; + function GetPort(): PRInt32; safecall; + procedure SetPort(aPort: PRInt32); safecall; + property Port: PRInt32 read GetPort write SetPort; + procedure GetPath(aPath: nsACString); safecall; + procedure SetPath(const aPath: nsACString); safecall; + function Equals(other: nsIURI_safe18): PRBool; safecall; + function SchemeIs(const scheme: PAnsiChar): PRBool; safecall; + function Clone(): nsIURI_safe18; safecall; + procedure Resolve(const relativePath: nsACString; _retval: nsACString); safecall; + procedure GetAsciiSpec(aAsciiSpec: nsACString); safecall; + procedure GetAsciiHost(aAsciiHost: nsACString); safecall; + procedure GetOriginCharset(aOriginCharset: nsACString); safecall; + end; + + nsIURL_safe18 = interface(nsIURI_safe18) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + procedure GetFilePath(aFilePath: nsACString); safecall; + procedure SetFilePath(const aFilePath: nsACString); safecall; + procedure GetParam(aParam: nsACString); safecall; + procedure SetParam(const aParam: nsACString); safecall; + procedure GetQuery(aQuery: nsACString); safecall; + procedure SetQuery(const aQuery: nsACString); safecall; + procedure GetRef(aRef: nsACString); safecall; + procedure SetRef(const aRef: nsACString); safecall; + procedure GetDirectory(aDirectory: nsACString); safecall; + procedure SetDirectory(const aDirectory: nsACString); safecall; + procedure GetFileName(aFileName: nsACString); safecall; + procedure SetFileName(const aFileName: nsACString); safecall; + procedure GetFileBaseName(aFileBaseName: nsACString); safecall; + procedure SetFileBaseName(const aFileBaseName: nsACString); safecall; + procedure GetFileExtension(aFileExtension: nsACString); safecall; + procedure SetFileExtension(const aFileExtension: nsACString); safecall; + procedure GetCommonBaseSpec(aURIToCompare: nsIURI_safe18; _retval: nsACString); safecall; + procedure GetRelativeSpec(aURIToCompare: nsIURI_safe18; _retval: nsACString); safecall; + end; + + nsIFileURL_safe18 = interface(nsIURL_safe18) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(): nsIFile_safe18; safecall; + procedure SetFile(aFile: nsIFile_safe18); safecall; + property _File: nsIFile_safe18 read GetFile write SetFile; + end; + + nsIGlobalHistory_safe18 = interface(nsISupports_safe18) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + procedure AddPage(const aURL: PAnsiChar); safecall; + function IsVisited(const aURL: PAnsiChar): PRBool; safecall; + end; + + nsIHistoryEntry_safe18 = interface(nsISupports_safe18) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(): nsIURI_safe18; safecall; + property URI: nsIURI_safe18 read GetURI; + function GetTitle(): PWideChar; safecall; + property Title: PWideChar read GetTitle; + function GetIsSubFrame(): PRBool; safecall; + property IsSubFrame: PRBool read GetIsSubFrame; + end; + + nsIHttpChannel_safe18 = interface(nsIChannel_safe18) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + procedure GetRequestMethod(aRequestMethod: nsACString); safecall; + procedure SetRequestMethod(const aRequestMethod: nsACString); safecall; + function GetReferrer(): nsIURI_safe18; safecall; + procedure SetReferrer(aReferrer: nsIURI_safe18); safecall; + property Referrer: nsIURI_safe18 read GetReferrer write SetReferrer; + function GetRequestHeader(const aHeader: nsACString): nsACString; safecall; + procedure SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool); safecall; + procedure VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_safe18); safecall; + function GetAllowPipelining(): PRBool; safecall; + procedure SetAllowPipelining(aAllowPipelining: PRBool); safecall; + property AllowPipelining: PRBool read GetAllowPipelining write SetAllowPipelining; + function GetRedirectionLimit(): PRUint32; safecall; + procedure SetRedirectionLimit(aRedirectionLimit: PRUint32); safecall; + property RedirectionLimit: PRUint32 read GetRedirectionLimit write SetRedirectionLimit; + function GetResponseStatus(): PRUint32; safecall; + property ResponseStatus: PRUint32 read GetResponseStatus; + procedure GetResponseStatusText(aResponseStatusText: nsACString); safecall; + function GetRequestSucceeded(): PRBool; safecall; + property RequestSucceeded: PRBool read GetRequestSucceeded; + function GetResponseHeader(const header: nsACString): nsACString; safecall; + procedure SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool); safecall; + procedure VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_safe18); safecall; + function IsNoStoreResponse(): PRBool; safecall; + function IsNoCacheResponse(): PRBool; safecall; + end; + + nsIHttpHeaderVisitor_safe18 = interface(nsISupports_safe18) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + procedure VisitHeader(const aHeader: nsACString; const aValue: nsACString); safecall; + end; + + nsIInputStream_safe18 = interface(nsISupports_safe18) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: Pchar; aCount: PRUint32): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIInterfaceRequestor_safe18 = interface(nsISupports_safe18) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + procedure GetInterface(constref uuid: TGUID; out _result); safecall; + end; + + nsIIOService_safe18 = interface(nsISupports_safe18) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar): nsIProtocolHandler_safe18; safecall; + function GetProtocolFlags(const aScheme: PAnsiChar): PRUint32; safecall; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe18): nsIURI_safe18; safecall; + function NewFileURI(aFile: nsIFile_safe18): nsIURI_safe18; safecall; + function NewChannelFromURI(aURI: nsIURI_safe18): nsIChannel_safe18; safecall; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe18): nsIChannel_safe18; safecall; + function GetOffline(): PRBool; safecall; + procedure SetOffline(aOffline: PRBool); safecall; + property Offline: PRBool read GetOffline write SetOffline; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar): PRBool; safecall; + function ExtractScheme(const urlString: nsACString): nsACString; safecall; + end; + + nsILoadGroup_safe18 = interface(nsIRequest_safe18) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(): nsIRequestObserver_safe18; safecall; + procedure SetGroupObserver(aGroupObserver: nsIRequestObserver_safe18); safecall; + property GroupObserver: nsIRequestObserver_safe18 read GetGroupObserver write SetGroupObserver; + function GetDefaultLoadRequest(): nsIRequest_safe18; safecall; + procedure SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_safe18); safecall; + property DefaultLoadRequest: nsIRequest_safe18 read GetDefaultLoadRequest write SetDefaultLoadRequest; + procedure AddRequest(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18); safecall; + procedure RemoveRequest(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18; aStatus: nsresult); safecall; + function GetRequests(): nsISimpleEnumerator_safe18; safecall; + property Requests: nsISimpleEnumerator_safe18 read GetRequests; + function GetActiveCount(): PRUint32; safecall; + property ActiveCount: PRUint32 read GetActiveCount; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe18; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe18); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe18 read GetNotificationCallbacks write SetNotificationCallbacks; + end; + + nsILocalFile_safe18 = interface(nsIFile_safe18) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + procedure InitWithPath(const filePath: nsAString); safecall; + procedure InitWithNativePath(const filePath: nsACString); safecall; + procedure InitWithFile(aFile: nsILocalFile_safe18); safecall; + function GetFollowLinks(): PRBool; safecall; + procedure SetFollowLinks(aFollowLinks: PRBool); safecall; + property FollowLinks: PRBool read GetFollowLinks write SetFollowLinks; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32): PPRFileDesc; safecall; + function OpenANSIFileDesc(const mode: PAnsiChar): PFILE; safecall; + function Load(): PPRLibrary; safecall; + function GetDiskSpaceAvailable(): PRInt64; safecall; + property DiskSpaceAvailable: PRInt64 read GetDiskSpaceAvailable; + procedure AppendRelativePath(const relativeFilePath: nsAString); safecall; + procedure AppendRelativeNativePath(const relativeFilePath: nsACString); safecall; + procedure GetPersistentDescriptor(aPersistentDescriptor: nsACString); safecall; + procedure SetPersistentDescriptor(const aPersistentDescriptor: nsACString); safecall; + procedure Reveal(); safecall; + procedure Launch(); safecall; + function GetRelativeDescriptor(fromFile: nsILocalFile_safe18): nsACString; safecall; + procedure SetRelativeDescriptor(fromFile: nsILocalFile_safe18; const relativeDesc: nsACString); safecall; + end; + + nsIMemory_safe18 = interface(nsISupports_safe18) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + procedure HeapMinimize(immediate: PRBool); safecall; + function IsLowMemory(): PRBool; safecall; + end; + + nsIModule_safe18 = interface(nsISupports_safe18) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + procedure GetClassObject(aCompMgr: nsIComponentManager_safe18; constref aClass: TGUID; constref aIID: TGUID; out aResult); safecall; + procedure RegisterSelf(aCompMgr: nsIComponentManager_safe18; aLocation: nsIFile_safe18; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterSelf(aCompMgr: nsIComponentManager_safe18; aLocation: nsIFile_safe18; const aLoaderStr: PAnsiChar); safecall; + function CanUnload(aCompMgr: nsIComponentManager_safe18): PRBool; safecall; + end; + + nsIObserver_safe18 = interface(nsISupports_safe18) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + procedure Observe(aSubject: nsISupports_safe18; const aTopic: PAnsiChar; const aData: PWideChar); safecall; + end; + + nsIObserverService_safe18 = interface(nsISupports_safe18) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + procedure AddObserver(anObserver: nsIObserver_safe18; const aTopic: PAnsiChar; ownsWeak: PRBool); safecall; + procedure RemoveObserver(anObserver: nsIObserver_safe18; const aTopic: PAnsiChar); safecall; + procedure NotifyObservers(aSubject: nsISupports_safe18; const aTopic: PAnsiChar; const someData: PWideChar); safecall; + function EnumerateObservers(const aTopic: PAnsiChar): nsISimpleEnumerator_safe18; safecall; + end; + + nsIOutputStream_safe18 = interface(nsISupports_safe18) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + procedure Flush(); safecall; + function Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function WriteFrom(aFromStream: nsIInputStream_safe18; aCount: PRUint32): PRUint32; safecall; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIPrefBranch_safe18 = interface(nsISupports_safe18) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(): PAnsiChar; safecall; + property Root: PAnsiChar read GetRoot; + function GetPrefType(const aPrefName: PAnsiChar): PRInt32; safecall; + function GetBoolPref(const aPrefName: PAnsiChar): PRBool; safecall; + procedure SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + function GetCharPref(const aPrefName: PAnsiChar): PAnsiChar; safecall; + procedure SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar); safecall; + function GetIntPref(const aPrefName: PAnsiChar): PRInt32; safecall; + procedure SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + procedure GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue); safecall; + procedure SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_safe18); safecall; + procedure ClearUserPref(const aPrefName: PAnsiChar); safecall; + procedure LockPref(const aPrefName: PAnsiChar); safecall; + function PrefHasUserValue(const aPrefName: PAnsiChar): PRBool; safecall; + function PrefIsLocked(const aPrefName: PAnsiChar): PRBool; safecall; + procedure UnlockPref(const aPrefName: PAnsiChar); safecall; + procedure DeleteBranch(const aStartingAt: PAnsiChar); safecall; + procedure GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array); safecall; + procedure ResetBranch(const aStartingAt: PAnsiChar); safecall; + end; + + nsIPrefBranch2_safe18 = interface(nsIPrefBranch_safe18) + ['{74567534-eb94-4b1c-8f45-389643bfc555}'] + procedure AddObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_safe18; aHoldWeak: PRBool); safecall; + procedure RemoveObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_safe18); safecall; + end; + + nsIPrefLocalizedString_safe18 = interface(nsISupports_safe18) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(): PWideChar; safecall; + procedure SetData(const aData: PWideChar); safecall; + property Data: PWideChar read GetData write SetData; + function ToString(): PWideChar; safecall; + procedure SetDataWithLength(length: PRUint32; const data: PWideChar); safecall; + end; + + nsIPrefService_safe18 = interface(nsISupports_safe18) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + procedure ReadUserPrefs(aFile: nsIFile_safe18); safecall; + procedure ResetPrefs(); safecall; + procedure ResetUserPrefs(); safecall; + procedure SavePrefFile(aFile: nsIFile_safe18); safecall; + function GetBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe18; safecall; + function GetDefaultBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe18; safecall; + end; + + nsIPrintSession_safe18 = interface(nsISupports_safe18) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_safe18 = interface(nsISupports_safe18) + ['{f1094df6-ce0e-42c9-9847-2f663172c38d}'] + procedure SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool); safecall; + function GetPrintOptions(aType: PRInt32): PRBool; safecall; + function GetPrintOptionsBits(): PRInt32; safecall; + procedure GetPageSizeInTwips(out aWidth: PRInt32; out aHeight: PRInt32); safecall; + function Clone(): nsIPrintSettings_safe18; safecall; + procedure Assign(aPS: nsIPrintSettings_safe18); safecall; + function GetPrintSession(): nsIPrintSession_safe18; safecall; + procedure SetPrintSession(aPrintSession: nsIPrintSession_safe18); safecall; + property PrintSession: nsIPrintSession_safe18 read GetPrintSession write SetPrintSession; + function GetStartPageRange(): PRInt32; safecall; + procedure SetStartPageRange(aStartPageRange: PRInt32); safecall; + property StartPageRange: PRInt32 read GetStartPageRange write SetStartPageRange; + function GetEndPageRange(): PRInt32; safecall; + procedure SetEndPageRange(aEndPageRange: PRInt32); safecall; + property EndPageRange: PRInt32 read GetEndPageRange write SetEndPageRange; + 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 GetScaling(): Double; safecall; + procedure SetScaling(aScaling: Double); safecall; + property Scaling: Double read GetScaling write SetScaling; + function GetPrintBGColors(): PRBool; safecall; + procedure SetPrintBGColors(aPrintBGColors: PRBool); safecall; + property PrintBGColors: PRBool read GetPrintBGColors write SetPrintBGColors; + function GetPrintBGImages(): PRBool; safecall; + procedure SetPrintBGImages(aPrintBGImages: PRBool); safecall; + property PrintBGImages: PRBool read GetPrintBGImages write SetPrintBGImages; + function GetPrintRange(): PRInt16; safecall; + procedure SetPrintRange(aPrintRange: PRInt16); safecall; + property PrintRange: PRInt16 read GetPrintRange write SetPrintRange; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetDocURL(): PWideChar; safecall; + procedure SetDocURL(const aDocURL: PWideChar); safecall; + property DocURL: PWideChar read GetDocURL write SetDocURL; + function GetHeaderStrLeft(): PWideChar; safecall; + procedure SetHeaderStrLeft(const aHeaderStrLeft: PWideChar); safecall; + property HeaderStrLeft: PWideChar read GetHeaderStrLeft write SetHeaderStrLeft; + function GetHeaderStrCenter(): PWideChar; safecall; + procedure SetHeaderStrCenter(const aHeaderStrCenter: PWideChar); safecall; + property HeaderStrCenter: PWideChar read GetHeaderStrCenter write SetHeaderStrCenter; + function GetHeaderStrRight(): PWideChar; safecall; + procedure SetHeaderStrRight(const aHeaderStrRight: PWideChar); safecall; + property HeaderStrRight: PWideChar read GetHeaderStrRight write SetHeaderStrRight; + function GetFooterStrLeft(): PWideChar; safecall; + procedure SetFooterStrLeft(const aFooterStrLeft: PWideChar); safecall; + property FooterStrLeft: PWideChar read GetFooterStrLeft write SetFooterStrLeft; + function GetFooterStrCenter(): PWideChar; safecall; + procedure SetFooterStrCenter(const aFooterStrCenter: PWideChar); safecall; + property FooterStrCenter: PWideChar read GetFooterStrCenter write SetFooterStrCenter; + function GetFooterStrRight(): PWideChar; safecall; + procedure SetFooterStrRight(const aFooterStrRight: PWideChar); safecall; + property FooterStrRight: PWideChar read GetFooterStrRight write SetFooterStrRight; + function GetHowToEnableFrameUI(): PRInt16; safecall; + procedure SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16); safecall; + property HowToEnableFrameUI: PRInt16 read GetHowToEnableFrameUI write SetHowToEnableFrameUI; + function GetIsCancelled(): PRBool; safecall; + procedure SetIsCancelled(aIsCancelled: PRBool); safecall; + property IsCancelled: PRBool read GetIsCancelled write SetIsCancelled; + function GetPrintFrameTypeUsage(): PRInt16; safecall; + procedure SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16); safecall; + property PrintFrameTypeUsage: PRInt16 read GetPrintFrameTypeUsage write SetPrintFrameTypeUsage; + function GetPrintFrameType(): PRInt16; safecall; + procedure SetPrintFrameType(aPrintFrameType: PRInt16); safecall; + property PrintFrameType: PRInt16 read GetPrintFrameType write SetPrintFrameType; + function GetPrintSilent(): PRBool; safecall; + procedure SetPrintSilent(aPrintSilent: PRBool); safecall; + property PrintSilent: PRBool read GetPrintSilent write SetPrintSilent; + function GetShrinkToFit(): PRBool; safecall; + procedure SetShrinkToFit(aShrinkToFit: PRBool); safecall; + property ShrinkToFit: PRBool read GetShrinkToFit write SetShrinkToFit; + function GetShowPrintProgress(): PRBool; safecall; + procedure SetShowPrintProgress(aShowPrintProgress: PRBool); safecall; + property ShowPrintProgress: PRBool read GetShowPrintProgress write SetShowPrintProgress; + function GetPaperName(): PWideChar; safecall; + procedure SetPaperName(const aPaperName: PWideChar); safecall; + property PaperName: PWideChar read GetPaperName write SetPaperName; + function GetPaperSizeType(): PRInt16; safecall; + procedure SetPaperSizeType(aPaperSizeType: PRInt16); safecall; + property PaperSizeType: PRInt16 read GetPaperSizeType write SetPaperSizeType; + function GetPaperData(): PRInt16; safecall; + procedure SetPaperData(aPaperData: PRInt16); safecall; + property PaperData: PRInt16 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(): PRInt16; safecall; + procedure SetPaperSizeUnit(aPaperSizeUnit: PRInt16); safecall; + property PaperSizeUnit: PRInt16 read GetPaperSizeUnit write SetPaperSizeUnit; + function GetPlexName(): PWideChar; safecall; + procedure SetPlexName(const aPlexName: PWideChar); safecall; + property PlexName: PWideChar read GetPlexName write SetPlexName; + function GetColorspace(): PWideChar; safecall; + procedure SetColorspace(const aColorspace: PWideChar); safecall; + property Colorspace: PWideChar read GetColorspace write SetColorspace; + function GetResolutionName(): PWideChar; safecall; + procedure SetResolutionName(const aResolutionName: PWideChar); safecall; + property ResolutionName: PWideChar read GetResolutionName write SetResolutionName; + function GetDownloadFonts(): PRBool; safecall; + procedure SetDownloadFonts(aDownloadFonts: PRBool); safecall; + property DownloadFonts: PRBool read GetDownloadFonts write SetDownloadFonts; + function GetPrintReversed(): PRBool; safecall; + procedure SetPrintReversed(aPrintReversed: PRBool); safecall; + property PrintReversed: PRBool read GetPrintReversed write SetPrintReversed; + function GetPrintInColor(): PRBool; safecall; + procedure SetPrintInColor(aPrintInColor: PRBool); safecall; + property PrintInColor: PRBool read GetPrintInColor write SetPrintInColor; + function GetPaperSize(): PRInt32; safecall; + procedure SetPaperSize(aPaperSize: PRInt32); safecall; + property PaperSize: PRInt32 read GetPaperSize write SetPaperSize; + function GetOrientation(): PRInt32; safecall; + procedure SetOrientation(aOrientation: PRInt32); safecall; + property Orientation: PRInt32 read GetOrientation write SetOrientation; + function GetPrintCommand(): PWideChar; safecall; + procedure SetPrintCommand(const aPrintCommand: PWideChar); safecall; + property PrintCommand: PWideChar read GetPrintCommand write SetPrintCommand; + function GetNumCopies(): PRInt32; safecall; + procedure SetNumCopies(aNumCopies: PRInt32); safecall; + property NumCopies: PRInt32 read GetNumCopies write SetNumCopies; + function GetPrinterName(): PWideChar; safecall; + procedure SetPrinterName(const aPrinterName: PWideChar); safecall; + property PrinterName: PWideChar read GetPrinterName write SetPrinterName; + function GetPrintToFile(): PRBool; safecall; + procedure SetPrintToFile(aPrintToFile: PRBool); safecall; + property PrintToFile: PRBool read GetPrintToFile write SetPrintToFile; + function GetToFileName(): PWideChar; safecall; + procedure SetToFileName(const aToFileName: PWideChar); safecall; + property ToFileName: PWideChar read GetToFileName write SetToFileName; + function GetPrintPageDelay(): PRInt32; safecall; + procedure SetPrintPageDelay(aPrintPageDelay: PRInt32); safecall; + property PrintPageDelay: PRInt32 read GetPrintPageDelay write SetPrintPageDelay; + function GetIsInitializedFromPrinter(): PRBool; safecall; + procedure SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool); safecall; + property IsInitializedFromPrinter: PRBool read GetIsInitializedFromPrinter write SetIsInitializedFromPrinter; + function GetIsInitializedFromPrefs(): PRBool; safecall; + procedure SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool); safecall; + property IsInitializedFromPrefs: PRBool read GetIsInitializedFromPrefs write SetIsInitializedFromPrefs; + procedure SetMarginInTwips(var aMargin: nsMargin); safecall; + procedure GetMarginInTwips(var aMargin: nsMargin); safecall; + end; + + nsIProfile_safe18 = interface(nsISupports_safe18) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(): PRInt32; safecall; + property ProfileCount: PRInt32 read GetProfileCount; + procedure GetProfileList(out length: PRUint32; out profileNames_array); safecall; + function ProfileExists(const profileName: PWideChar): PRBool; safecall; + function GetCurrentProfile(): PWideChar; safecall; + procedure SetCurrentProfile(const aCurrentProfile: PWideChar); safecall; + property CurrentProfile: PWideChar read GetCurrentProfile write SetCurrentProfile; + procedure ShutDownCurrentProfile(shutDownType: PRUint32); safecall; + procedure CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool); safecall; + procedure RenameProfile(const oldName: PWideChar; const newName: PWideChar); safecall; + procedure DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool); safecall; + procedure CloneProfile(const profileName: PWideChar); safecall; + end; + + nsIProfileChangeStatus_safe18 = interface(nsISupports_safe18) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + procedure VetoChange(); safecall; + procedure ChangeFailed(); safecall; + end; + + nsIPrompt_safe18 = interface(nsISupports_safe18) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + procedure Alert(const dialogTitle: PWideChar; const text: PWideChar); safecall; + procedure AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool); safecall; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar): PRBool; safecall; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRInt32; safecall; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32): PRBool; safecall; + end; + + nsIPromptService_safe18 = interface(nsISupports_safe18) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + procedure Alert(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar); safecall; + procedure AlertCheck(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; + function Confirm(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; + function ConfirmCheck(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function ConfirmEx(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; + function Prompt(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptPassword(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function Select(aParent: nsIDOMWindow_safe18; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; + end; + + nsIProperties_safe18 = interface(nsISupports_safe18) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + procedure Get(const prop: PAnsiChar; constref iid: TGUID; out _result); safecall; + procedure _Set(const prop: PAnsiChar; value: nsISupports_safe18); safecall; + function Has(const prop: PAnsiChar): PRBool; safecall; + procedure Undefine(const prop: PAnsiChar); safecall; + procedure GetKeys(out count: PRUint32; out keys_array); safecall; + end; + + nsIProtocolHandler_safe18 = interface(nsISupports_safe18) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + procedure GetScheme(aScheme: nsACString); safecall; + function GetDefaultPort(): PRInt32; safecall; + property DefaultPort: PRInt32 read GetDefaultPort; + function GetProtocolFlags(): PRUint32; safecall; + property ProtocolFlags: PRUint32 read GetProtocolFlags; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe18): nsIURI_safe18; safecall; + function NewChannel(aURI: nsIURI_safe18): nsIChannel_safe18; safecall; + function AllowPort(port: PRInt32; const scheme: PAnsiChar): PRBool; safecall; + end; + + nsIRequestObserver_safe18 = interface(nsISupports_safe18) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + procedure OnStartRequest(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18); safecall; + procedure OnStopRequest(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18; aStatusCode: nsresult); safecall; + end; + + nsIScriptableInputStream_safe18 = interface(nsISupports_safe18) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + procedure Close(); safecall; + procedure Init(aInputStream: nsIInputStream_safe18); safecall; + function Available(): PRUint32; safecall; + function Read(aCount: PRUint32): PAnsiChar; safecall; + end; + + nsISecurityWarningDialogs_safe18 = interface(nsISupports_safe18) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_safe18): PRBool; safecall; + end; + + nsISelection_safe18 = interface(nsISupports_safe18) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(): nsIDOMNode_safe18; safecall; + property AnchorNode: nsIDOMNode_safe18 read GetAnchorNode; + function GetAnchorOffset(): PRInt32; safecall; + property AnchorOffset: PRInt32 read GetAnchorOffset; + function GetFocusNode(): nsIDOMNode_safe18; safecall; + property FocusNode: nsIDOMNode_safe18 read GetFocusNode; + function GetFocusOffset(): PRInt32; safecall; + property FocusOffset: PRInt32 read GetFocusOffset; + function GetIsCollapsed(): PRBool; safecall; + property IsCollapsed: PRBool read GetIsCollapsed; + function GetRangeCount(): PRInt32; safecall; + property RangeCount: PRInt32 read GetRangeCount; + function GetRangeAt(index: PRInt32): nsIDOMRange_safe18; safecall; + procedure Collapse(parentNode: nsIDOMNode_safe18; offset: PRInt32); safecall; + procedure Extend(parentNode: nsIDOMNode_safe18; offset: PRInt32); safecall; + procedure CollapseToStart(); safecall; + procedure CollapseToEnd(); safecall; + function ContainsNode(node: nsIDOMNode_safe18; entirelyContained: PRBool): PRBool; safecall; + procedure SelectAllChildren(parentNode: nsIDOMNode_safe18); safecall; + procedure AddRange(range: nsIDOMRange_safe18); safecall; + procedure RemoveRange(range: nsIDOMRange_safe18); safecall; + procedure RemoveAllRanges(); safecall; + procedure DeleteFromDocument(); safecall; + procedure SelectionLanguageChange(langRTL: PRBool); safecall; + function ToString(): PWideChar; safecall; + end; + + nsIServiceManager_safe18 = interface(nsISupports_safe18) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + procedure GetService(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID): PRBool; safecall; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID): PRBool; safecall; + end; + + nsISHistory_safe18 = interface(nsISupports_safe18) + ['{7294fe9b-14d8-11d5-9882-00c04fa02f40}'] + function GetCount(): PRInt32; safecall; + property Count: PRInt32 read GetCount; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool): nsIHistoryEntry_safe18; safecall; + procedure PurgeHistory(numEntries: PRInt32); safecall; + procedure AddSHistoryListener(aListener: nsISHistoryListener_safe18); safecall; + procedure RemoveSHistoryListener(aListener: nsISHistoryListener_safe18); safecall; + function GetSHistoryEnumerator(): nsISimpleEnumerator_safe18; safecall; + property SHistoryEnumerator: nsISimpleEnumerator_safe18 read GetSHistoryEnumerator; + end; + + nsISHistoryListener_safe18 = interface(nsISupports_safe18) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + procedure OnHistoryNewEntry(aNewURI: nsIURI_safe18); safecall; + function OnHistoryGoBack(aBackURI: nsIURI_safe18): PRBool; safecall; + function OnHistoryGoForward(aForwardURI: nsIURI_safe18): PRBool; safecall; + function OnHistoryReload(aReloadURI: nsIURI_safe18; aReloadFlags: PRUint32): PRBool; safecall; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_safe18): PRBool; safecall; + function OnHistoryPurge(aNumEntries: PRInt32): PRBool; safecall; + end; + + nsIStreamListener_safe18 = interface(nsIRequestObserver_safe18) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + procedure OnDataAvailable(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18; aInputStream: nsIInputStream_safe18; aOffset: PRUint32; aCount: PRUint32); safecall; + end; + + nsISupportsPrimitive_safe18 = interface(nsISupports_safe18) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + end; + + nsISupportsID_safe18 = interface(nsISupportsPrimitive_safe18) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(): PGUID; safecall; + procedure SetData(const aData: PGUID); safecall; + property Data: PGUID read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsCString_safe18 = interface(nsISupportsPrimitive_safe18) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsACString); safecall; + procedure SetData(const aData: nsACString); safecall; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsString_safe18 = interface(nsISupportsPrimitive_safe18) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function ToString(): PWideChar; safecall; + end; + + nsISupportsPRBool_safe18 = interface(nsISupportsPrimitive_safe18) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(): PRBool; safecall; + procedure SetData(aData: PRBool); safecall; + property Data: PRBool read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint8_safe18 = interface(nsISupportsPrimitive_safe18) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint8; safecall; + procedure SetData(aData: PRUint8); safecall; + property Data: PRUint8 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint16_safe18 = interface(nsISupportsPrimitive_safe18) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint16; safecall; + procedure SetData(aData: PRUint16); safecall; + property Data: PRUint16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint32_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint32; safecall; + procedure SetData(aData: PRUint32); safecall; + property Data: PRUint32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint64_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint64; safecall; + procedure SetData(aData: PRUint64); safecall; + property Data: PRUint64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRTime_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(): PRTime; safecall; + procedure SetData(aData: PRTime); safecall; + property Data: PRTime read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsChar_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(): AnsiChar; safecall; + procedure SetData(aData: AnsiChar); safecall; + property Data: AnsiChar read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt16_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt16; safecall; + procedure SetData(aData: PRInt16); safecall; + property Data: PRInt16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt32_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt32; safecall; + procedure SetData(aData: PRInt32); safecall; + property Data: PRInt32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt64_safe18 = interface(nsISupportsPrimitive_safe18) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt64; safecall; + procedure SetData(aData: PRInt64); safecall; + property Data: PRInt64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsFloat_safe18 = interface(nsISupportsPrimitive_safe18) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Single; safecall; + procedure SetData(aData: Single); safecall; + property Data: Single read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsDouble_safe18 = interface(nsISupportsPrimitive_safe18) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Double; safecall; + procedure SetData(aData: Double); safecall; + property Data: Double read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsVoid_safe18 = interface(nsISupportsPrimitive_safe18) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(): Pointer; safecall; + procedure SetData(aData: Pointer); safecall; + property Data: Pointer read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsInterfacePointer_safe18 = interface(nsISupportsPrimitive_safe18) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(): nsISupports_safe18; safecall; + procedure SetData(aData: nsISupports_safe18); safecall; + property Data: nsISupports_safe18 read GetData write SetData; + function GetDataIID(): PGUID; safecall; + procedure SetDataIID(const aDataIID: PGUID); safecall; + property DataIID: PGUID read GetDataIID write SetDataIID; + function ToString(): PAnsiChar; safecall; + end; + + nsITooltipListener_safe18 = interface(nsISupports_safe18) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; + procedure OnHideTooltip(); safecall; + end; + + nsITooltipTextProvider_safe18 = interface(nsISupports_safe18) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_safe18; out aText: PWideChar): PRBool; safecall; + end; + + nsITraceRefcnt_safe18 = interface(nsISupports_safe18) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + procedure LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar); safecall; + procedure LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_safe18); safecall; + procedure LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_safe18); safecall; + end; + + nsIUnicharStreamListener_safe18 = interface(nsIRequestObserver_safe18) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + procedure OnUnicharDataAvailable(aRequest: nsIRequest_safe18; aContext: nsISupports_safe18; const aData: nsAString); safecall; + end; + + nsIUploadChannel_safe18 = interface(nsISupports_safe18) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + procedure SetUploadStream(aStream: nsIInputStream_safe18; const aContentType: nsACString; aContentLength: PRInt32); safecall; + function GetUploadStream(): nsIInputStream_safe18; safecall; + property UploadStream: nsIInputStream_safe18 read GetUploadStream; + end; + + nsIURIContentListener_safe18 = interface(nsISupports_safe18) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_safe18): PRBool; safecall; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_safe18; out aContentHandler: nsIStreamListener_safe18): PRBool; safecall; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function GetLoadCookie(): nsISupports_safe18; safecall; + procedure SetLoadCookie(aLoadCookie: nsISupports_safe18); safecall; + property LoadCookie: nsISupports_safe18 read GetLoadCookie write SetLoadCookie; + function GetParentContentListener(): nsIURIContentListener_safe18; safecall; + procedure SetParentContentListener(aParentContentListener: nsIURIContentListener_safe18); safecall; + property ParentContentListener: nsIURIContentListener_safe18 read GetParentContentListener write SetParentContentListener; + end; + + nsIWeakReference_safe18 = interface(nsISupports_safe18) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + procedure QueryReferent(constref uuid: TGUID; out _result); safecall; + end; + + nsISupportsWeakReference_safe18 = interface(nsISupports_safe18) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(): nsIWeakReference_safe18; safecall; + end; + + nsIWebBrowser_safe18 = interface(nsISupports_safe18) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + procedure AddWebBrowserListener(aListener: nsIWeakReference_safe18; constref aIID: TGUID); safecall; + procedure RemoveWebBrowserListener(aListener: nsIWeakReference_safe18; constref aIID: TGUID); safecall; + function GetContainerWindow(): nsIWebBrowserChrome_safe18; safecall; + procedure SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_safe18); safecall; + property ContainerWindow: nsIWebBrowserChrome_safe18 read GetContainerWindow write SetContainerWindow; + function GetParentURIContentListener(): nsIURIContentListener_safe18; safecall; + procedure SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_safe18); safecall; + property ParentURIContentListener: nsIURIContentListener_safe18 read GetParentURIContentListener write SetParentURIContentListener; + function GetContentDOMWindow(): nsIDOMWindow_safe18; safecall; + property ContentDOMWindow: nsIDOMWindow_safe18 read GetContentDOMWindow; + end; + + nsIWebBrowserChrome_safe18 = interface(nsISupports_safe18) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall; + function GetWebBrowser(): nsIWebBrowser_safe18; safecall; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser_safe18); safecall; + property WebBrowser: nsIWebBrowser_safe18 read GetWebBrowser write SetWebBrowser; + function GetChromeFlags(): PRUint32; safecall; + procedure SetChromeFlags(aChromeFlags: PRUint32); safecall; + property ChromeFlags: PRUint32 read GetChromeFlags write SetChromeFlags; + procedure DestroyBrowserWindow(); safecall; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall; + procedure ShowAsModal(); safecall; + function IsWindowModal(): PRBool; safecall; + procedure ExitModalEventLoop(aStatus: nsresult); safecall; + end; + + nsIWebBrowserChromeFocus_safe18 = interface(nsISupports_safe18) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + procedure FocusNextElement(); safecall; + procedure FocusPrevElement(); safecall; + end; + + nsIWebBrowserFind_safe18 = interface(nsISupports_safe18) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(): PRBool; safecall; + function GetSearchString(): PWideChar; safecall; + procedure SetSearchString(const aSearchString: PWideChar); safecall; + property SearchString: PWideChar read GetSearchString write SetSearchString; + function GetFindBackwards(): PRBool; safecall; + procedure SetFindBackwards(aFindBackwards: PRBool); safecall; + property FindBackwards: PRBool read GetFindBackwards write SetFindBackwards; + function GetWrapFind(): PRBool; safecall; + procedure SetWrapFind(aWrapFind: PRBool); safecall; + property WrapFind: PRBool read GetWrapFind write SetWrapFind; + function GetEntireWord(): PRBool; safecall; + procedure SetEntireWord(aEntireWord: PRBool); safecall; + property EntireWord: PRBool read GetEntireWord write SetEntireWord; + function GetMatchCase(): PRBool; safecall; + procedure SetMatchCase(aMatchCase: PRBool); safecall; + property MatchCase: PRBool read GetMatchCase write SetMatchCase; + function GetSearchFrames(): PRBool; safecall; + procedure SetSearchFrames(aSearchFrames: PRBool); safecall; + property SearchFrames: PRBool read GetSearchFrames write SetSearchFrames; + end; + + nsIWebBrowserFindInFrames_safe18 = interface(nsISupports_safe18) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(): nsIDOMWindow_safe18; safecall; + procedure SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_safe18); safecall; + property CurrentSearchFrame: nsIDOMWindow_safe18 read GetCurrentSearchFrame write SetCurrentSearchFrame; + function GetRootSearchFrame(): nsIDOMWindow_safe18; safecall; + procedure SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_safe18); safecall; + property RootSearchFrame: nsIDOMWindow_safe18 read GetRootSearchFrame write SetRootSearchFrame; + function GetSearchSubframes(): PRBool; safecall; + procedure SetSearchSubframes(aSearchSubframes: PRBool); safecall; + property SearchSubframes: PRBool read GetSearchSubframes write SetSearchSubframes; + function GetSearchParentFrames(): PRBool; safecall; + procedure SetSearchParentFrames(aSearchParentFrames: PRBool); safecall; + property SearchParentFrames: PRBool read GetSearchParentFrames write SetSearchParentFrames; + end; + + nsIWebBrowserFocus_safe18 = interface(nsISupports_safe18) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + procedure Activate(); safecall; + procedure Deactivate(); safecall; + procedure SetFocusAtFirstElement(); safecall; + procedure SetFocusAtLastElement(); safecall; + function GetFocusedWindow(): nsIDOMWindow_safe18; safecall; + procedure SetFocusedWindow(aFocusedWindow: nsIDOMWindow_safe18); safecall; + property FocusedWindow: nsIDOMWindow_safe18 read GetFocusedWindow write SetFocusedWindow; + function GetFocusedElement(): nsIDOMElement_safe18; safecall; + procedure SetFocusedElement(aFocusedElement: nsIDOMElement_safe18); safecall; + property FocusedElement: nsIDOMElement_safe18 read GetFocusedElement write SetFocusedElement; + end; + + nsIWebBrowserPrint_safe18 = interface(nsISupports_safe18) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(): nsIPrintSettings_safe18; safecall; + property GlobalPrintSettings: nsIPrintSettings_safe18 read GetGlobalPrintSettings; + function GetCurrentPrintSettings(): nsIPrintSettings_safe18; safecall; + property CurrentPrintSettings: nsIPrintSettings_safe18 read GetCurrentPrintSettings; + function GetCurrentChildDOMWindow(): nsIDOMWindow_safe18; safecall; + property CurrentChildDOMWindow: nsIDOMWindow_safe18 read GetCurrentChildDOMWindow; + function GetDoingPrint(): PRBool; safecall; + property DoingPrint: PRBool read GetDoingPrint; + function GetDoingPrintPreview(): PRBool; safecall; + property DoingPrintPreview: PRBool read GetDoingPrintPreview; + function GetIsFramesetDocument(): PRBool; safecall; + property IsFramesetDocument: PRBool read GetIsFramesetDocument; + function GetIsFramesetFrameSelected(): PRBool; safecall; + property IsFramesetFrameSelected: PRBool read GetIsFramesetFrameSelected; + function GetIsIFrameSelected(): PRBool; safecall; + property IsIFrameSelected: PRBool read GetIsIFrameSelected; + function GetIsRangeSelection(): PRBool; safecall; + property IsRangeSelection: PRBool read GetIsRangeSelection; + function GetPrintPreviewNumPages(): PRInt32; safecall; + property PrintPreviewNumPages: PRInt32 read GetPrintPreviewNumPages; + procedure Print(aThePrintSettings: nsIPrintSettings_safe18; aWPListener: nsIWebProgressListener_safe18); safecall; + procedure PrintPreview(aThePrintSettings: nsIPrintSettings_safe18; aChildDOMWin: nsIDOMWindow_safe18; aWPListener: nsIWebProgressListener_safe18); safecall; + procedure PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32); safecall; + procedure Cancel(); safecall; + procedure EnumerateDocumentNames(out aCount: PRUint32; out aResult_array); safecall; + procedure ExitPrintPreview(); safecall; + end; + + nsIWebBrowserSetup_safe18 = interface(nsISupports_safe18) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + procedure SetProperty(aId: PRUint32; aValue: PRUint32); safecall; + end; + + nsIWebBrowserStream_safe18 = interface(nsISupports_safe18) + ['{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'] + procedure OpenStream(aBaseURI: nsIURI_safe18; const aContentType: nsACString); safecall; + procedure AppendToStream(const aData_array; aLen: PRUint32); safecall; + procedure CloseStream(); safecall; + end; + + nsIWebProgress_safe18 = interface(nsISupports_safe18) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + procedure AddProgressListener(aListener: nsIWebProgressListener_safe18; aNotifyMask: PRUint32); safecall; + procedure RemoveProgressListener(aListener: nsIWebProgressListener_safe18); safecall; + function GetDOMWindow(): nsIDOMWindow_safe18; safecall; + property DOMWindow: nsIDOMWindow_safe18 read GetDOMWindow; + function GetIsLoadingDocument(): PRBool; safecall; + property IsLoadingDocument: PRBool read GetIsLoadingDocument; + end; + + nsIWebProgressListener_safe18 = interface(nsISupports_safe18) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + procedure OnStateChange(aWebProgress: nsIWebProgress_safe18; aRequest: nsIRequest_safe18; aStateFlags: PRUint32; aStatus: nsresult); safecall; + procedure OnProgressChange(aWebProgress: nsIWebProgress_safe18; aRequest: nsIRequest_safe18; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); safecall; + procedure OnLocationChange(aWebProgress: nsIWebProgress_safe18; aRequest: nsIRequest_safe18; aLocation: nsIURI_safe18); safecall; + procedure OnStatusChange(aWebProgress: nsIWebProgress_safe18; aRequest: nsIRequest_safe18; aStatus: nsresult; const aMessage: PWideChar); safecall; + procedure OnSecurityChange(aWebProgress: nsIWebProgress_safe18; aRequest: nsIRequest_safe18; aState: PRUint32); safecall; + end; + + nsIWindowCreator_safe18 = interface(nsISupports_safe18) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_safe18; chromeFlags: PRUint32): nsIWebBrowserChrome_safe18; safecall; + end; + + nsIWindowWatcher_safe18 = interface(nsISupports_safe18) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_safe18; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_safe18): nsIDOMWindow_safe18; safecall; + procedure RegisterNotification(aObserver: nsIObserver_safe18); safecall; + procedure UnregisterNotification(aObserver: nsIObserver_safe18); safecall; + function GetWindowEnumerator(): nsISimpleEnumerator_safe18; safecall; + function GetNewPrompter(aParent: nsIDOMWindow_safe18): nsIPrompt_safe18; safecall; + function GetNewAuthPrompter(aParent: nsIDOMWindow_safe18): nsIAuthPrompt_safe18; safecall; + procedure SetWindowCreator(creator: nsIWindowCreator_safe18); safecall; + function GetChromeForWindow(aWindow: nsIDOMWindow_safe18): nsIWebBrowserChrome_safe18; safecall; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_safe18): nsIDOMWindow_safe18; safecall; + function GetActiveWindow(): nsIDOMWindow_safe18; safecall; + procedure SetActiveWindow(aActiveWindow: nsIDOMWindow_safe18); safecall; + property ActiveWindow: nsIDOMWindow_safe18 read GetActiveWindow write SetActiveWindow; + end; + + nsIX509Cert_safe18 = interface(nsISupports_safe18) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + procedure GetNickname(aNickname: nsAString); safecall; + procedure GetEmailAddress(aEmailAddress: nsAString); safecall; + procedure GetEmailAddresses(out length: PRUint32; out addresses_array); safecall; + function ContainsEmailAddress(const aEmailAddress: nsAString): PRBool; safecall; + procedure GetSubjectName(aSubjectName: nsAString); safecall; + procedure GetCommonName(aCommonName: nsAString); safecall; + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + procedure GetSha1Fingerprint(aSha1Fingerprint: nsAString); safecall; + procedure GetMd5Fingerprint(aMd5Fingerprint: nsAString); safecall; + procedure GetTokenName(aTokenName: nsAString); safecall; + procedure GetIssuerName(aIssuerName: nsAString); safecall; + procedure GetSerialNumber(aSerialNumber: nsAString); safecall; + procedure GetIssuerCommonName(aIssuerCommonName: nsAString); safecall; + procedure GetIssuerOrganization(aIssuerOrganization: nsAString); safecall; + procedure GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString); safecall; + function GetIssuer(): nsIX509Cert_safe18; safecall; + property Issuer: nsIX509Cert_safe18 read GetIssuer; + function GetValidity(): nsIX509CertValidity_safe18; safecall; + property Validity: nsIX509CertValidity_safe18 read GetValidity; + function GetDbKey(): PAnsiChar; safecall; + property DbKey: PAnsiChar read GetDbKey; + function GetWindowTitle(): PAnsiChar; safecall; + property WindowTitle: PAnsiChar read GetWindowTitle; + function GetChain(): nsIArray_safe18; safecall; + procedure GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array); safecall; + procedure GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString); safecall; + function VerifyForUsage(usage: PRUint32): PRUint32; safecall; + function GetASN1Structure(): nsIASN1Object_safe18; safecall; + property ASN1Structure: nsIASN1Object_safe18 read GetASN1Structure; + procedure GetRawDER(out length: PRUint32; out data_array); safecall; + function Equals(other: nsIX509Cert_safe18): PRBool; safecall; + end; + + nsIX509CertDB_safe18 = interface(nsISupports_safe18) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_safe18; const aNickname: nsAString): nsIX509Cert_safe18; safecall; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_safe18): nsIX509Cert_safe18; safecall; + procedure FindCertNicknames(aToken: nsISupports_safe18; aType: PRUint32; out count: PRUint32; out certNameList_array); safecall; + function FindEmailEncryptionCert(const aNickname: nsAString): nsIX509Cert_safe18; safecall; + function FindEmailSigningCert(const aNickname: nsAString): nsIX509Cert_safe18; safecall; + function FindCertByEmailAddress(aToken: nsISupports_safe18; const aEmailAddress: PAnsiChar): nsIX509Cert_safe18; safecall; + procedure ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_safe18); safecall; + procedure ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe18); safecall; + procedure ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe18); safecall; + procedure ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe18); safecall; + procedure DeleteCertificate(aCert: nsIX509Cert_safe18); safecall; + procedure SetCertTrust(cert: nsIX509Cert_safe18; _type: PRUint32; trust: PRUint32); safecall; + function IsCertTrusted(cert: nsIX509Cert_safe18; certType: PRUint32; trustType: PRUint32): PRBool; safecall; + procedure ImportCertsFromFile(aToken: nsISupports_safe18; aFile: nsILocalFile_safe18; aType: PRUint32); safecall; + procedure ImportPKCS12File(aToken: nsISupports_safe18; aFile: nsILocalFile_safe18); safecall; + procedure ExportPKCS12File(aToken: nsISupports_safe18; aFile: nsILocalFile_safe18; count: PRUint32; const aCerts_array); safecall; + function GetOCSPResponders(): nsIArray_safe18; safecall; + function GetIsOcspOn(): PRBool; safecall; + property IsOcspOn: PRBool read GetIsOcspOn; + function ConstructX509FromBase64(const base64: PAnsiChar): nsIX509Cert_safe18; safecall; + end; + + nsIX509CertValidity_safe18 = interface(nsISupports_safe18) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(): PRTime; safecall; + property NotBefore: PRTime read GetNotBefore; + procedure GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString); safecall; + procedure GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString); safecall; + procedure GetNotBeforeGMT(aNotBeforeGMT: nsAString); safecall; + function GetNotAfter(): PRTime; safecall; + property NotAfter: PRTime read GetNotAfter; + procedure GetNotAfterLocalTime(aNotAfterLocalTime: nsAString); safecall; + procedure GetNotAfterLocalDay(aNotAfterLocalDay: nsAString); safecall; + procedure GetNotAfterGMT(aNotAfterGMT: nsAString); safecall; + end; + +implementation + +end. diff --git a/components/geckoport/version2/each-version/nsXPCOM_safe19.pas b/components/geckoport/version2/each-version/nsXPCOM_safe19.pas new file mode 100644 index 000000000..6ea68584c --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_safe19.pas @@ -0,0 +1,4075 @@ +unit nsXPCOM_safe19; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsConsts, nsGeckoStrings, nsTypes; + +const + NS_ISUPPORTS_SAFE19_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_SAFE19_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_SAFE19_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IASN1OBJECT_SAFE19_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_SAFE19_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_SAFE19_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_SAFE19_ASN1_INTEGER = 2; + NS_IASN1OBJECT_SAFE19_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_SAFE19_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_SAFE19_ASN1_NULL = 5; + NS_IASN1OBJECT_SAFE19_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_SAFE19_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_SAFE19_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_SAFE19_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_SAFE19_ASN1_SET = 17; + NS_IASN1OBJECT_SAFE19_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_SAFE19_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_SAFE19_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_SAFE19_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_SAFE19_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_SAFE19_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_SAFE19_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_SAFE19_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_SAFE19_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_SAFE19_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_SAFE19_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_SAFE19_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_SAFE19_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_SAFE19_IID: TGUID = '{358089f9-ee4b-4711-82fd-bcd07fc62061}'; + NS_IAUTHPROMPT_SAFE19_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_SAFE19_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_SAFE19_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_SAFE19_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_SAFE19_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_SAFE19_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_SAFE19_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_SAFE19_LOAD_NORMAL = 0; + NS_IREQUEST_SAFE19_LOAD_BACKGROUND = 1; + NS_IREQUEST_SAFE19_INHIBIT_CACHING = 128; + NS_IREQUEST_SAFE19_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_SAFE19_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_SAFE19_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_SAFE19_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_SAFE19_VALIDATE_NEVER = 4096; + NS_IREQUEST_SAFE19_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_SAFE19_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_SAFE19_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_SAFE19_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_SAFE19_LOAD_REPLACE = 262144; + NS_ICHANNEL_SAFE19_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_SAFE19_LOAD_TARGETED = 1048576; + NS_ICHANNEL_SAFE19_LOAD_CALL_CONTENT_SNIFFERS = 2097152; + + NS_ICLASSINFO_SAFE19_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_SAFE19_SINGLETON = 1; + NS_ICLASSINFO_SAFE19_THREADSAFE = 2; + NS_ICLASSINFO_SAFE19_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_SAFE19_DOM_OBJECT = 8; + NS_ICLASSINFO_SAFE19_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_SAFE19_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_SAFE19_CONTENT_NODE = 64; + NS_ICLASSINFO_SAFE19_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_SAFE19_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_SAFE19_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_SAFE19_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_SAFE19_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_SAFE19_CONTEXT_INPUT = 16; + + NS_ICOOKIE_SAFE19_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_SAFE19_STATUS_UNKNOWN = 0; + NS_ICOOKIE_SAFE19_STATUS_ACCEPTED = 1; + NS_ICOOKIE_SAFE19_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_SAFE19_STATUS_FLAGGED = 3; + NS_ICOOKIE_SAFE19_STATUS_REJECTED = 4; + NS_ICOOKIE_SAFE19_POLICY_UNKNOWN = 0; + NS_ICOOKIE_SAFE19_POLICY_NONE = 1; + NS_ICOOKIE_SAFE19_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_SAFE19_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_SAFE19_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_SAFE19_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_SAFE19_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_SAFE19_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_SAFE19_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_SAFE19_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_SAFE19_NORMAL_FILE_TYPE = 0; + NS_IFILE_SAFE19_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_SAFE19_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_SAFE19_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_SAFE19_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_SAFE19_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_SAFE19_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_SAFE19_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_SAFE19_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_SAFE19_ELEMENT_NODE = 1; + NS_IDOMNODE_SAFE19_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_SAFE19_TEXT_NODE = 3; + NS_IDOMNODE_SAFE19_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_SAFE19_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_SAFE19_ENTITY_NODE = 6; + NS_IDOMNODE_SAFE19_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_SAFE19_COMMENT_NODE = 8; + NS_IDOMNODE_SAFE19_DOCUMENT_NODE = 9; + NS_IDOMNODE_SAFE19_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_SAFE19_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_SAFE19_NOTATION_NODE = 12; + + NS_IDOMATTR_SAFE19_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_SAFE19_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_SAFE19_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_SAFE19_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_SAFE19_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_SAFE19_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_SAFE19_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_SAFE19_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_SAFE19_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_SAFE19_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_SAFE19_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_SAFE19_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_SAFE19_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_SAFE19_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_SAFE19_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_SAFE19_STYLE_RULE = 1; + NS_IDOMCSSRULE_SAFE19_CHARSET_RULE = 2; + NS_IDOMCSSRULE_SAFE19_IMPORT_RULE = 3; + NS_IDOMCSSRULE_SAFE19_MEDIA_RULE = 4; + NS_IDOMCSSRULE_SAFE19_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_SAFE19_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_SAFE19_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_SAFE19_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_SAFE19_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_SAFE19_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_SAFE19_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_SAFE19_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_SAFE19_CAPTURING_PHASE = 1; + NS_IDOMEVENT_SAFE19_AT_TARGET = 2; + NS_IDOMEVENT_SAFE19_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_SAFE19_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_SAFE19_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_SAFE19_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_SAFE19_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_SAFE19_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_SAFE19_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_SAFE19_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_SAFE19_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_SAFE19_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_SAFE19_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_SAFE19_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_SAFE19_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_SAFE19_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_SAFE19_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_SAFE19_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_SAFE19_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_SAFE19_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_SAFE19_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_SAFE19_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_SAFE19_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_SAFE19_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_SAFE19_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_SAFE19_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_SAFE19_INVALID_ACCESS_ERR = 15; + NS_IDOMDOMEXCEPTION_SAFE19_VALIDATION_ERR = 16; + NS_IDOMDOMEXCEPTION_SAFE19_TYPE_MISMATCH_ERR = 17; + + NS_IDOMDOMIMPLEMENTATION_SAFE19_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_SAFE19_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENTCSSINLINESTYLE_SAFE19_IID: TGUID = '{99715845-95fc-4a56-aa53-214b65c26e22}'; + + NS_IDOMENTITY_SAFE19_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_SAFE19_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_SAFE19_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_SAFE19_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_SAFE19_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_SAFE19_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_SAFE19_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_SAFE19_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_SAFE19_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_SAFE19_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_SAFE19_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_SAFE19_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_SAFE19_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_SAFE19_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_SAFE19_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_SAFE19_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_SAFE19_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_SAFE19_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_SAFE19_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_SAFE19_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_SAFE19_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_SAFE19_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_SAFE19_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_SAFE19_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_SAFE19_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_SAFE19_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_SAFE19_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_SAFE19_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_SAFE19_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_SAFE19_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_SAFE19_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_SAFE19_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_SAFE19_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_SAFE19_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_SAFE19_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_SAFE19_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_SAFE19_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_SAFE19_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_SAFE19_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_SAFE19_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_SAFE19_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_SAFE19_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_SAFE19_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_SAFE19_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_SAFE19_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_SAFE19_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_SAFE19_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_SAFE19_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_SAFE19_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_SAFE19_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_SAFE19_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_SAFE19_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_SAFE19_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_SAFE19_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_SAFE19_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_SAFE19_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_SAFE19_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_SAFE19_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_SAFE19_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_SAFE19_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_SAFE19_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_SAFE19_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_SAFE19_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_SAFE19_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_SAFE19_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_SAFE19_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_SAFE19_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_SAFE19_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMOFFLINERESOURCELIST_SAFE19_IID: TGUID = '{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'; + NS_IDOMOFFLINERESOURCELIST_SAFE19_UNCACHED = 0; + NS_IDOMOFFLINERESOURCELIST_SAFE19_IDLE = 1; + NS_IDOMOFFLINERESOURCELIST_SAFE19_CHECKING = 2; + NS_IDOMOFFLINERESOURCELIST_SAFE19_DOWNLOADING = 3; + NS_IDOMOFFLINERESOURCELIST_SAFE19_UPDATEREADY = 4; + + NS_IDOMPROCESSINGINSTRUCTION_SAFE19_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_SAFE19_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_SAFE19_START_TO_START = 0; + NS_IDOMRANGE_SAFE19_START_TO_END = 1; + NS_IDOMRANGE_SAFE19_END_TO_END = 2; + NS_IDOMRANGE_SAFE19_END_TO_START = 3; + + NS_IDOMRECT_SAFE19_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_SAFE19_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTORAGE_SAFE19_IID: TGUID = '{95cc1383-3b62-4b89-aaef-1004a513ef47}'; + + NS_IDOMSTORAGEEVENT_SAFE19_IID: TGUID = '{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'; + + NS_IDOMSTORAGEITEM_SAFE19_IID: TGUID = '{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'; + + NS_IDOMSTORAGELIST_SAFE19_IID: TGUID = '{f2166929-91b6-4372-8d5f-c366f47a5f54}'; + + NS_IDOMSTORAGEWINDOW_SAFE19_IID: TGUID = '{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'; + + NS_IDOMSTYLESHEETLIST_SAFE19_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_SAFE19_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_SAFE19_IID: TGUID = '{73c5fa35-3add-4c87-a303-a850ccf4d65a}'; + + NS_IDOMWINDOWCOLLECTION_SAFE19_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOWUTILS_SAFE19_IID: TGUID = '{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'; + + NS_IEMBEDDINGSITEWINDOW_SAFE19_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_SAFE19_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_SAFE19_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_SAFE19_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_SAFE19_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_SAFE19_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_SAFE19_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_SAFE19_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_SAFE19_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHASHABLE_SAFE19_IID: TGUID = '{17e595fa-b57a-4933-bd0f-b1812e8ab188}'; + + NS_IHISTORYENTRY_SAFE19_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_SAFE19_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_SAFE19_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_SAFE19_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_SAFE19_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_SAFE19_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_IJSON_SAFE19_IID: TGUID = '{45464c36-efde-4cb5-8e00-07480533ff35}'; + + NS_ILOADGROUP_SAFE19_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_SAFE19_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_SAFE19_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_SAFE19_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IMUTABLEARRAY_SAFE19_IID: TGUID = '{af059da0-c85b-40ec-af07-ae4bfdc192cc}'; + + NS_IOBSERVER_SAFE19_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_SAFE19_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_SAFE19_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPREFBRANCH_SAFE19_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_SAFE19_PREF_INVALID = 0; + NS_IPREFBRANCH_SAFE19_PREF_STRING = 32; + NS_IPREFBRANCH_SAFE19_PREF_INT = 64; + NS_IPREFBRANCH_SAFE19_PREF_BOOL = 128; + + NS_IPREFBRANCH2_SAFE19_IID: TGUID = '{74567534-eb94-4b1c-8f45-389643bfc555}'; + + NS_IPREFLOCALIZEDSTRING_SAFE19_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_SAFE19_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_SAFE19_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_SAFE19_IID: TGUID = '{5af07661-6477-4235-8814-4a45215855b8}'; + NS_IPRINTSETTINGS_SAFE19_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_SAFE19_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_SAFE19_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_SAFE19_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_SAFE19_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_SAFE19_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_SAFE19_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_SAFE19_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_SAFE19_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_SAFE19_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_SAFE19_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_SAFE19_kInitSaveUnwriteableMargins = 16384; + NS_IPRINTSETTINGS_SAFE19_kInitSaveEdges = 32768; + NS_IPRINTSETTINGS_SAFE19_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_SAFE19_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_SAFE19_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_SAFE19_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_SAFE19_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_SAFE19_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_SAFE19_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_SAFE19_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_SAFE19_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_SAFE19_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_SAFE19_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_SAFE19_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_SAFE19_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_SAFE19_kInitSaveColorspace = 536870912; + NS_IPRINTSETTINGS_SAFE19_kInitSaveResolutionName = 1073741824; + NS_IPRINTSETTINGS_SAFE19_kInitSaveDownloadFonts = 2147483648; + NS_IPRINTSETTINGS_SAFE19_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_SAFE19_kPrintOddPages = 1; + NS_IPRINTSETTINGS_SAFE19_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_SAFE19_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_SAFE19_kRangeAllPages = 0; + NS_IPRINTSETTINGS_SAFE19_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_SAFE19_kRangeSelection = 2; + NS_IPRINTSETTINGS_SAFE19_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_SAFE19_kJustLeft = 0; + NS_IPRINTSETTINGS_SAFE19_kJustCenter = 1; + NS_IPRINTSETTINGS_SAFE19_kJustRight = 2; + NS_IPRINTSETTINGS_SAFE19_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_SAFE19_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_SAFE19_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_SAFE19_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_SAFE19_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_SAFE19_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_SAFE19_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_SAFE19_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_SAFE19_kNoFrames = 0; + NS_IPRINTSETTINGS_SAFE19_kFramesAsIs = 1; + NS_IPRINTSETTINGS_SAFE19_kSelectedFrame = 2; + NS_IPRINTSETTINGS_SAFE19_kEachFrameSep = 3; + NS_IPRINTSETTINGS_SAFE19_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_SAFE19_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_SAFE19_kFrameEnableAsIsAndEach = 2; + NS_IPRINTSETTINGS_SAFE19_kOutputFormatNative = 0; + NS_IPRINTSETTINGS_SAFE19_kOutputFormatPS = 1; + NS_IPRINTSETTINGS_SAFE19_kOutputFormatPDF = 2; + + NS_IPROFILE_SAFE19_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_SAFE19_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_SAFE19_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_SAFE19_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROGRAMMINGLANGUAGE_SAFE19_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_SAFE19_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_SAFE19_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_SAFE19_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_SAFE19_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_SAFE19_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_SAFE19_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_SAFE19_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_SAFE19_JAVASCRIPT2 = 7; + NS_IPROGRAMMINGLANGUAGE_SAFE19_RUBY = 8; + NS_IPROGRAMMINGLANGUAGE_SAFE19_PHP = 9; + NS_IPROGRAMMINGLANGUAGE_SAFE19_TCL = 10; + NS_IPROGRAMMINGLANGUAGE_SAFE19_MAX = 10; + + NS_IPROMPT_SAFE19_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_SAFE19_BUTTON_POS_0 = 1; + NS_IPROMPT_SAFE19_BUTTON_POS_1 = 256; + NS_IPROMPT_SAFE19_BUTTON_POS_2 = 65536; + NS_IPROMPT_SAFE19_BUTTON_TITLE_OK = 1; + NS_IPROMPT_SAFE19_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_SAFE19_BUTTON_TITLE_YES = 3; + NS_IPROMPT_SAFE19_BUTTON_TITLE_NO = 4; + NS_IPROMPT_SAFE19_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_SAFE19_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_SAFE19_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_SAFE19_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_SAFE19_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_SAFE19_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_SAFE19_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_SAFE19_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_SAFE19_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPT_SAFE19_STD_YES_NO_BUTTONS = 1027; + + NS_IPROMPTSERVICE_SAFE19_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_SAFE19_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_SAFE19_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_SAFE19_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_SAFE19_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_SAFE19_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_SAFE19_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_SAFE19_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_SAFE19_URI_STD = 0; + NS_IPROTOCOLHANDLER_SAFE19_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_SAFE19_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_SAFE19_URI_INHERITS_SECURITY_CONTEXT = 16; + NS_IPROTOCOLHANDLER_SAFE19_URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = 32; + NS_IPROTOCOLHANDLER_SAFE19_URI_LOADABLE_BY_ANYONE = 64; + NS_IPROTOCOLHANDLER_SAFE19_URI_DANGEROUS_TO_LOAD = 128; + NS_IPROTOCOLHANDLER_SAFE19_URI_IS_UI_RESOURCE = 256; + NS_IPROTOCOLHANDLER_SAFE19_URI_IS_LOCAL_FILE = 512; + NS_IPROTOCOLHANDLER_SAFE19_URI_NON_PERSISTABLE = 1024; + NS_IPROTOCOLHANDLER_SAFE19_URI_DOES_NOT_RETURN_DATA = 2048; + NS_IPROTOCOLHANDLER_SAFE19_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_SAFE19_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_SAFE19_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_SAFE19_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_SAFE19_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_SAFE19_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_SAFE19_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_SAFE19_IID: TGUID = '{9883609f-cdd8-4d83-9b55-868ff08ad433}'; + + NS_ISHISTORYLISTENER_SAFE19_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_SAFE19_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_SAFE19_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_SAFE19_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_SAFE19_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_SAFE19_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_SAFE19_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_SAFE19_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_SAFE19_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_SAFE19_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_SAFE19_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_SAFE19_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_SAFE19_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_SAFE19_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_SAFE19_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_SAFE19_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_SAFE19_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_SAFE19_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_SAFE19_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_SAFE19_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_SAFE19_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_SAFE19_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_SAFE19_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_SAFE19_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_SAFE19_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_SAFE19_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_SAFE19_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_SAFE19_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_SAFE19_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_SAFE19_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_SAFE19_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_SAFE19_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_SAFE19_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_SAFE19_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_SAFE19_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_SAFE19_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_SAFE19_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_SAFE19_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_SAFE19_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_SAFE19_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_SAFE19_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_SAFE19_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_SAFE19_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_SAFE19_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_SAFE19_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_SAFE19_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_SAFE19_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBBROWSERSTREAM_SAFE19_IID: TGUID = '{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'; + + NS_IWEBPROGRESS_SAFE19_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_SAFE19_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_SAFE19_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_SAFE19_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_SAFE19_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_SAFE19_NOTIFY_REFRESH = 256; + NS_IWEBPROGRESS_SAFE19_NOTIFY_ALL = 511; + + NS_IWEBPROGRESSLISTENER_SAFE19_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_RESTORING = 16777216; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_SECURE_LOW = 131072; + NS_IWEBPROGRESSLISTENER_SAFE19_STATE_IDENTITY_EV_TOPLEVEL = 1048576; + + NS_IWINDOWCREATOR_SAFE19_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_SAFE19_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_SAFE19_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_SAFE19_UNKNOWN_CERT = 0; + NS_IX509CERT_SAFE19_CA_CERT = 1; + NS_IX509CERT_SAFE19_USER_CERT = 2; + NS_IX509CERT_SAFE19_EMAIL_CERT = 4; + NS_IX509CERT_SAFE19_SERVER_CERT = 8; + NS_IX509CERT_SAFE19_VERIFIED_OK = 0; + NS_IX509CERT_SAFE19_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_SAFE19_CERT_REVOKED = 2; + NS_IX509CERT_SAFE19_CERT_EXPIRED = 4; + NS_IX509CERT_SAFE19_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_SAFE19_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_SAFE19_ISSUER_UNKNOWN = 32; + NS_IX509CERT_SAFE19_INVALID_CA = 64; + NS_IX509CERT_SAFE19_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_SAFE19_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_SAFE19_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_SAFE19_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_SAFE19_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_SAFE19_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_SAFE19_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_SAFE19_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_SAFE19_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_SAFE19_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_SAFE19_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_SAFE19_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_SAFE19_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_SAFE19_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_SAFE19_UNTRUSTED = 0; + NS_IX509CERTDB_SAFE19_TRUSTED_SSL = 1; + NS_IX509CERTDB_SAFE19_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_SAFE19_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_SAFE19_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_safe19 = interface; + mozIJSSubScriptLoader_safe19 = interface; + nsIArray_safe19 = interface; + nsIASN1Object_safe19 = interface; + nsIASN1Sequence_safe19 = interface; + nsIAuthPrompt_safe19 = interface; + nsISimpleEnumerator_safe19 = interface; + nsICategoryManager_safe19 = interface; + nsICertificateDialogs_safe19 = interface; + nsIRequest_safe19 = interface; + nsIChannel_safe19 = interface; + nsIClassInfo_safe19 = interface; + nsIClipboardCommands_safe19 = interface; + nsIComponentManager_safe19 = interface; + nsIComponentRegistrar_safe19 = interface; + nsIContextMenuListener_safe19 = interface; + nsICookie_safe19 = interface; + nsICookieManager_safe19 = interface; + nsICRLInfo_safe19 = interface; + nsIDebug_safe19 = interface; + nsIFile_safe19 = interface; + nsIDirectoryServiceProvider_safe19 = interface; + nsIDirectoryServiceProvider2_safe19 = interface; + nsIDirectoryService_safe19 = interface; + nsIDOM3DocumentEvent_safe19 = interface; + nsIDOM3EventTarget_safe19 = interface; + nsIDOMAbstractView_safe19 = interface; + nsIDOMNode_safe19 = interface; + nsIDOMAttr_safe19 = interface; + nsIDOMBarProp_safe19 = interface; + nsIDOMCharacterData_safe19 = interface; + nsIDOMText_safe19 = interface; + nsIDOMCDATASection_safe19 = interface; + nsIDOMComment_safe19 = interface; + nsIDOMCounter_safe19 = interface; + nsIDOMCSSValue_safe19 = interface; + nsIDOMCSSPrimitiveValue_safe19 = interface; + nsIDOMCSSRule_safe19 = interface; + nsIDOMCSSRuleList_safe19 = interface; + nsIDOMCSSStyleDeclaration_safe19 = interface; + nsIDOMStyleSheet_safe19 = interface; + nsIDOMCSSStyleSheet_safe19 = interface; + nsIDOMCSSValueList_safe19 = interface; + nsIDOMEvent_safe19 = interface; + nsIDOMCustomEvent_safe19 = interface; + nsIDOMDocument_safe19 = interface; + nsIDOMDocumentEvent_safe19 = interface; + nsIDOMDocumentFragment_safe19 = interface; + nsIDOMDocumentRange_safe19 = interface; + nsIDOMDocumentStyle_safe19 = interface; + nsIDOMDocumentType_safe19 = interface; + nsIDOMDocumentView_safe19 = interface; + nsIDOMDOMException_safe19 = interface; + nsIDOMDOMImplementation_safe19 = interface; + nsIDOMElement_safe19 = interface; + nsIDOMElementCSSInlineStyle_safe19 = interface; + nsIDOMEntity_safe19 = interface; + nsIDOMEntityReference_safe19 = interface; + nsIDOMEventGroup_safe19 = interface; + nsIDOMEventListener_safe19 = interface; + nsIDOMEventTarget_safe19 = interface; + nsIDOMHTMLElement_safe19 = interface; + nsIDOMHTMLAnchorElement_safe19 = interface; + nsIDOMHTMLAppletElement_safe19 = interface; + nsIDOMHTMLAreaElement_safe19 = interface; + nsIDOMHTMLBaseElement_safe19 = interface; + nsIDOMHTMLBaseFontElement_safe19 = interface; + nsIDOMHTMLBodyElement_safe19 = interface; + nsIDOMHTMLBRElement_safe19 = interface; + nsIDOMHTMLButtonElement_safe19 = interface; + nsIDOMHTMLCollection_safe19 = interface; + nsIDOMHTMLDirectoryElement_safe19 = interface; + nsIDOMHTMLDivElement_safe19 = interface; + nsIDOMHTMLDListElement_safe19 = interface; + nsIDOMHTMLDocument_safe19 = interface; + nsIDOMHTMLEmbedElement_safe19 = interface; + nsIDOMHTMLFieldSetElement_safe19 = interface; + nsIDOMHTMLFontElement_safe19 = interface; + nsIDOMHTMLFormElement_safe19 = interface; + nsIDOMHTMLFrameElement_safe19 = interface; + nsIDOMHTMLFrameSetElement_safe19 = interface; + nsIDOMHTMLHeadElement_safe19 = interface; + nsIDOMHTMLHeadingElement_safe19 = interface; + nsIDOMHTMLHRElement_safe19 = interface; + nsIDOMHTMLHtmlElement_safe19 = interface; + nsIDOMHTMLIFrameElement_safe19 = interface; + nsIDOMHTMLImageElement_safe19 = interface; + nsIDOMHTMLInputElement_safe19 = interface; + nsIDOMHTMLIsIndexElement_safe19 = interface; + nsIDOMHTMLLabelElement_safe19 = interface; + nsIDOMHTMLLegendElement_safe19 = interface; + nsIDOMHTMLLIElement_safe19 = interface; + nsIDOMHTMLLinkElement_safe19 = interface; + nsIDOMHTMLMapElement_safe19 = interface; + nsIDOMHTMLMenuElement_safe19 = interface; + nsIDOMHTMLMetaElement_safe19 = interface; + nsIDOMHTMLModElement_safe19 = interface; + nsIDOMHTMLObjectElement_safe19 = interface; + nsIDOMHTMLOListElement_safe19 = interface; + nsIDOMHTMLOptGroupElement_safe19 = interface; + nsIDOMHTMLOptionElement_safe19 = interface; + nsIDOMHTMLOptionsCollection_safe19 = interface; + nsIDOMHTMLParagraphElement_safe19 = interface; + nsIDOMHTMLParamElement_safe19 = interface; + nsIDOMHTMLPreElement_safe19 = interface; + nsIDOMHTMLQuoteElement_safe19 = interface; + nsIDOMHTMLScriptElement_safe19 = interface; + nsIDOMHTMLSelectElement_safe19 = interface; + nsIDOMHTMLStyleElement_safe19 = interface; + nsIDOMHTMLTableCaptionElement_safe19 = interface; + nsIDOMHTMLTableCellElement_safe19 = interface; + nsIDOMHTMLTableColElement_safe19 = interface; + nsIDOMHTMLTableElement_safe19 = interface; + nsIDOMHTMLTableRowElement_safe19 = interface; + nsIDOMHTMLTableSectionElement_safe19 = interface; + nsIDOMHTMLTextAreaElement_safe19 = interface; + nsIDOMHTMLTitleElement_safe19 = interface; + nsIDOMHTMLUListElement_safe19 = interface; + nsIDOMMediaList_safe19 = interface; + nsIDOMUIEvent_safe19 = interface; + nsIDOMMouseEvent_safe19 = interface; + nsIDOMNamedNodeMap_safe19 = interface; + nsIDOMNodeList_safe19 = interface; + nsIDOMNotation_safe19 = interface; + nsIDOMOfflineResourceList_safe19 = interface; + nsIDOMProcessingInstruction_safe19 = interface; + nsIDOMRange_safe19 = interface; + nsIDOMRect_safe19 = interface; + nsIDOMRGBColor_safe19 = interface; + nsIDOMStorage_safe19 = interface; + nsIDOMStorageEvent_safe19 = interface; + nsIDOMStorageItem_safe19 = interface; + nsIDOMStorageList_safe19 = interface; + nsIDOMStorageWindow_safe19 = interface; + nsIDOMStyleSheetList_safe19 = interface; + nsIDOMWindow_safe19 = interface; + nsIDOMWindow2_safe19 = interface; + nsIDOMWindowCollection_safe19 = interface; + nsIDOMWindowUtils_safe19 = interface; + nsIEmbeddingSiteWindow_safe19 = interface; + nsIFactory_safe19 = interface; + nsIURI_safe19 = interface; + nsIURL_safe19 = interface; + nsIFileURL_safe19 = interface; + nsIGlobalHistory_safe19 = interface; + nsIHashable_safe19 = interface; + nsIHistoryEntry_safe19 = interface; + nsIHttpChannel_safe19 = interface; + nsIHttpHeaderVisitor_safe19 = interface; + nsIInputStream_safe19 = interface; + nsIInterfaceRequestor_safe19 = interface; + nsIIOService_safe19 = interface; + nsIJSON_safe19 = interface; + nsILoadGroup_safe19 = interface; + nsILocalFile_safe19 = interface; + nsIMemory_safe19 = interface; + nsIModule_safe19 = interface; + nsIMutableArray_safe19 = interface; + nsIObserver_safe19 = interface; + nsIObserverService_safe19 = interface; + nsIOutputStream_safe19 = interface; + nsIPrefBranch_safe19 = interface; + nsIPrefBranch2_safe19 = interface; + nsIPrefLocalizedString_safe19 = interface; + nsIPrefService_safe19 = interface; + nsIPrintSession_safe19 = interface; + nsIPrintSettings_safe19 = interface; + nsIProfile_safe19 = interface; + nsIProfileChangeStatus_safe19 = interface; + nsIProgrammingLanguage_safe19 = interface; + nsIPrompt_safe19 = interface; + nsIPromptService_safe19 = interface; + nsIProperties_safe19 = interface; + nsIProtocolHandler_safe19 = interface; + nsIRequestObserver_safe19 = interface; + nsIScriptableInputStream_safe19 = interface; + nsISecurityWarningDialogs_safe19 = interface; + nsISelection_safe19 = interface; + nsIServiceManager_safe19 = interface; + nsISHistory_safe19 = interface; + nsISHistoryListener_safe19 = interface; + nsIStreamListener_safe19 = interface; + nsISupportsPrimitive_safe19 = interface; + nsISupportsID_safe19 = interface; + nsISupportsCString_safe19 = interface; + nsISupportsString_safe19 = interface; + nsISupportsPRBool_safe19 = interface; + nsISupportsPRUint8_safe19 = interface; + nsISupportsPRUint16_safe19 = interface; + nsISupportsPRUint32_safe19 = interface; + nsISupportsPRUint64_safe19 = interface; + nsISupportsPRTime_safe19 = interface; + nsISupportsChar_safe19 = interface; + nsISupportsPRInt16_safe19 = interface; + nsISupportsPRInt32_safe19 = interface; + nsISupportsPRInt64_safe19 = interface; + nsISupportsFloat_safe19 = interface; + nsISupportsDouble_safe19 = interface; + nsISupportsVoid_safe19 = interface; + nsISupportsInterfacePointer_safe19 = interface; + nsITooltipListener_safe19 = interface; + nsITooltipTextProvider_safe19 = interface; + nsITraceRefcnt_safe19 = interface; + nsIUnicharStreamListener_safe19 = interface; + nsIUploadChannel_safe19 = interface; + nsIURIContentListener_safe19 = interface; + nsIWeakReference_safe19 = interface; + nsISupportsWeakReference_safe19 = interface; + nsIWebBrowser_safe19 = interface; + nsIWebBrowserChrome_safe19 = interface; + nsIWebBrowserChromeFocus_safe19 = interface; + nsIWebBrowserFind_safe19 = interface; + nsIWebBrowserFindInFrames_safe19 = interface; + nsIWebBrowserFocus_safe19 = interface; + nsIWebBrowserPrint_safe19 = interface; + nsIWebBrowserSetup_safe19 = interface; + nsIWebBrowserStream_safe19 = interface; + nsIWebProgress_safe19 = interface; + nsIWebProgressListener_safe19 = interface; + nsIWindowCreator_safe19 = interface; + nsIWindowWatcher_safe19 = interface; + nsIX509Cert_safe19 = interface; + nsIX509CertDB_safe19 = interface; + nsIX509CertValidity_safe19 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_safe19; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe19; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_safe19 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_safe19 = interface(nsISupports_safe19) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + procedure LoadSubScript(const url: PWideChar); safecall; + end; + + nsIArray_safe19 = interface(nsISupports_safe19) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result); safecall; + function IndexOf(startIndex: PRUint32; element: nsISupports_safe19): PRUint32; safecall; + function Enumerate(): nsISimpleEnumerator_safe19; safecall; + end; + + nsIASN1Object_safe19 = interface(nsISupports_safe19) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(): PRUint32; safecall; + procedure SetType(aType: PRUint32); safecall; + property _Type: PRUint32 read GetType write SetType; + function GetTag(): PRUint32; safecall; + procedure SetTag(aTag: PRUint32); safecall; + property Tag: PRUint32 read GetTag write SetTag; + procedure GetDisplayName(aDisplayName: nsAString); safecall; + procedure SetDisplayName(const aDisplayName: nsAString); safecall; + procedure GetDisplayValue(aDisplayValue: nsAString); safecall; + procedure SetDisplayValue(const aDisplayValue: nsAString); safecall; + end; + + nsIASN1Sequence_safe19 = interface(nsIASN1Object_safe19) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(): nsIMutableArray_safe19; safecall; + procedure SetASN1Objects(aASN1Objects: nsIMutableArray_safe19); safecall; + property ASN1Objects: nsIMutableArray_safe19 read GetASN1Objects write SetASN1Objects; + function GetIsValidContainer(): PRBool; safecall; + procedure SetIsValidContainer(aIsValidContainer: PRBool); safecall; + property IsValidContainer: PRBool read GetIsValidContainer write SetIsValidContainer; + function GetIsExpanded(): PRBool; safecall; + procedure SetIsExpanded(aIsExpanded: PRBool); safecall; + property IsExpanded: PRBool read GetIsExpanded write SetIsExpanded; + end; + + nsIAuthPrompt_safe19 = interface(nsISupports_safe19) + ['{358089f9-ee4b-4711-82fd-bcd07fc62061}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar): PRBool; safecall; + end; + + nsISimpleEnumerator_safe19 = interface(nsISupports_safe19) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(): PRBool; safecall; + function GetNext(): nsISupports_safe19; safecall; + end; + + nsICategoryManager_safe19 = interface(nsISupports_safe19) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar): PAnsiChar; safecall; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool): PAnsiChar; safecall; + procedure DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool); safecall; + procedure DeleteCategory(const aCategory: PAnsiChar); safecall; + function EnumerateCategory(const aCategory: PAnsiChar): nsISimpleEnumerator_safe19; safecall; + function EnumerateCategories(): nsISimpleEnumerator_safe19; safecall; + end; + + nsICertificateDialogs_safe19 = interface(nsISupports_safe19) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_safe19; cert: nsIX509Cert_safe19; out trust: PRUint32): PRBool; safecall; + procedure NotifyCACertExists(ctx: nsIInterfaceRequestor_safe19); safecall; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe19; password: nsAString): PRBool; safecall; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_safe19; password: nsAString): PRBool; safecall; + procedure ViewCert(ctx: nsIInterfaceRequestor_safe19; cert: nsIX509Cert_safe19); safecall; + procedure CrlImportStatusDialog(ctx: nsIInterfaceRequestor_safe19; crl: nsICRLInfo_safe19); safecall; + end; + + nsIRequest_safe19 = interface(nsISupports_safe19) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + procedure GetName(aName: nsACString); safecall; + function IsPending(): PRBool; safecall; + function GetStatus(): nsresult; safecall; + property Status: nsresult read GetStatus; + procedure Cancel(aStatus: nsresult); safecall; + procedure Suspend(); safecall; + procedure Resume(); safecall; + function GetLoadGroup(): nsILoadGroup_safe19; safecall; + procedure SetLoadGroup(aLoadGroup: nsILoadGroup_safe19); safecall; + property LoadGroup: nsILoadGroup_safe19 read GetLoadGroup write SetLoadGroup; + function GetLoadFlags(): nsLoadFlags; safecall; + procedure SetLoadFlags(aLoadFlags: nsLoadFlags); safecall; + property LoadFlags: nsLoadFlags read GetLoadFlags write SetLoadFlags; + end; + + nsIChannel_safe19 = interface(nsIRequest_safe19) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(): nsIURI_safe19; safecall; + procedure SetOriginalURI(aOriginalURI: nsIURI_safe19); safecall; + property OriginalURI: nsIURI_safe19 read GetOriginalURI write SetOriginalURI; + function GetURI(): nsIURI_safe19; safecall; + property URI: nsIURI_safe19 read GetURI; + function GetOwner(): nsISupports_safe19; safecall; + procedure SetOwner(aOwner: nsISupports_safe19); safecall; + property Owner: nsISupports_safe19 read GetOwner write SetOwner; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe19; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe19); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe19 read GetNotificationCallbacks write SetNotificationCallbacks; + function GetSecurityInfo(): nsISupports_safe19; safecall; + property SecurityInfo: nsISupports_safe19 read GetSecurityInfo; + procedure GetContentType(aContentType: nsACString); safecall; + procedure SetContentType(const aContentType: nsACString); safecall; + procedure GetContentCharset(aContentCharset: nsACString); safecall; + procedure SetContentCharset(const aContentCharset: nsACString); safecall; + function GetContentLength(): PRInt32; safecall; + procedure SetContentLength(aContentLength: PRInt32); safecall; + property ContentLength: PRInt32 read GetContentLength write SetContentLength; + function Open(): nsIInputStream_safe19; safecall; + procedure AsyncOpen(aListener: nsIStreamListener_safe19; aContext: nsISupports_safe19); safecall; + end; + + nsIClassInfo_safe19 = interface(nsISupports_safe19) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + procedure GetInterfaces(out count: PRUint32; out _array_array); safecall; + function GetHelperForLanguage(language: PRUint32): nsISupports_safe19; safecall; + function GetContractID(): PAnsiChar; safecall; + property ContractID: PAnsiChar read GetContractID; + function GetClassDescription(): PAnsiChar; safecall; + property ClassDescription: PAnsiChar read GetClassDescription; + function GetClassID(): PGUID; safecall; + property ClassID: PGUID read GetClassID; + function GetImplementationLanguage(): PRUint32; safecall; + property ImplementationLanguage: PRUint32 read GetImplementationLanguage; + function GetFlags(): PRUint32; safecall; + property Flags: PRUint32 read GetFlags; + function GetClassIDNoAlloc(): TGUID; safecall; + property ClassIDNoAlloc: TGUID read GetClassIDNoAlloc; + end; + + nsIClipboardCommands_safe19 = interface(nsISupports_safe19) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(): PRBool; safecall; + function CanCopySelection(): PRBool; safecall; + function CanCopyLinkLocation(): PRBool; safecall; + function CanCopyImageLocation(): PRBool; safecall; + function CanCopyImageContents(): PRBool; safecall; + function CanPaste(): PRBool; safecall; + procedure CutSelection(); safecall; + procedure CopySelection(); safecall; + procedure CopyLinkLocation(); safecall; + procedure CopyImageLocation(); safecall; + procedure CopyImageContents(); safecall; + procedure Paste(); safecall; + procedure SelectAll(); safecall; + procedure SelectNone(); safecall; + end; + + nsIComponentManager_safe19 = interface(nsISupports_safe19) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + procedure GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + procedure CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_safe19; constref aIID: TGUID; out _result); safecall; + procedure CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_safe19; constref aIID: TGUID; out _result); safecall; + end; + + nsIComponentRegistrar_safe19 = interface(nsISupports_safe19) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + procedure AutoRegister(aSpec: nsIFile_safe19); safecall; + procedure AutoUnregister(aSpec: nsIFile_safe19); safecall; + procedure RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_safe19); safecall; + procedure UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_safe19); safecall; + procedure RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_safe19; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_safe19); safecall; + function IsCIDRegistered(constref aClass: TGUID): PRBool; safecall; + function IsContractIDRegistered(const aContractID: PAnsiChar): PRBool; safecall; + function EnumerateCIDs(): nsISimpleEnumerator_safe19; safecall; + function EnumerateContractIDs(): nsISimpleEnumerator_safe19; safecall; + function CIDToContractID(constref aClass: TGUID): PAnsiChar; safecall; + function ContractIDToCID(const aContractID: PAnsiChar): PGUID; safecall; + end; + + nsIContextMenuListener_safe19 = interface(nsISupports_safe19) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + procedure OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_safe19; aNode: nsIDOMNode_safe19); safecall; + end; + + nsICookie_safe19 = interface(nsISupports_safe19) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + procedure GetName(aName: nsACString); safecall; + procedure GetValue(aValue: nsACString); safecall; + function GetIsDomain(): PRBool; safecall; + property IsDomain: PRBool read GetIsDomain; + procedure GetHost(aHost: nsACString); safecall; + procedure GetPath(aPath: nsACString); safecall; + function GetIsSecure(): PRBool; safecall; + property IsSecure: PRBool read GetIsSecure; + function GetExpires(): PRUint64; safecall; + property Expires: PRUint64 read GetExpires; + function GetStatus(): nsCookieStatus; safecall; + property Status: nsCookieStatus read GetStatus; + function GetPolicy(): nsCookiePolicy; safecall; + property Policy: nsCookiePolicy read GetPolicy; + end; + + nsICookieManager_safe19 = interface(nsISupports_safe19) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + procedure RemoveAll(); safecall; + function GetEnumerator(): nsISimpleEnumerator_safe19; safecall; + property Enumerator: nsISimpleEnumerator_safe19 read GetEnumerator; + procedure Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool); safecall; + end; + + nsICRLInfo_safe19 = interface(nsISupports_safe19) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + function GetLastUpdate(): PRTime; safecall; + property LastUpdate: PRTime read GetLastUpdate; + function GetNextUpdate(): PRTime; safecall; + property NextUpdate: PRTime read GetNextUpdate; + procedure GetLastUpdateLocale(aLastUpdateLocale: nsAString); safecall; + procedure GetNextUpdateLocale(aNextUpdateLocale: nsAString); safecall; + procedure GetNameInDb(aNameInDb: nsAString); safecall; + procedure GetLastFetchURL(aLastFetchURL: nsACString); safecall; + end; + + nsIDebug_safe19 = interface(nsISupports_safe19) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + procedure Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Break(const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Abort(const aFile: PAnsiChar; aLine: PRInt32); safecall; + end; + + nsIFile_safe19 = interface(nsISupports_safe19) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + procedure Append(const node: nsAString); safecall; + procedure AppendNative(const node: nsACString); safecall; + procedure Normalize(); safecall; + procedure Create(_type: PRUint32; permissions: PRUint32); safecall; + procedure GetLeafName(aLeafName: nsAString); safecall; + procedure SetLeafName(const aLeafName: nsAString); safecall; + procedure GetNativeLeafName(aNativeLeafName: nsACString); safecall; + procedure SetNativeLeafName(const aNativeLeafName: nsACString); safecall; + procedure CopyTo(newParentDir: nsIFile_safe19; const newName: nsAString); safecall; + procedure CopyToNative(newParentDir: nsIFile_safe19; const newName: nsACString); safecall; + procedure CopyToFollowingLinks(newParentDir: nsIFile_safe19; const newName: nsAString); safecall; + procedure CopyToFollowingLinksNative(newParentDir: nsIFile_safe19; const newName: nsACString); safecall; + procedure MoveTo(newParentDir: nsIFile_safe19; const newName: nsAString); safecall; + procedure MoveToNative(newParentDir: nsIFile_safe19; const newName: nsACString); safecall; + procedure Remove(recursive: PRBool); safecall; + function GetPermissions(): PRUint32; safecall; + procedure SetPermissions(aPermissions: PRUint32); safecall; + property Permissions: PRUint32 read GetPermissions write SetPermissions; + function GetPermissionsOfLink(): PRUint32; safecall; + procedure SetPermissionsOfLink(aPermissionsOfLink: PRUint32); safecall; + property PermissionsOfLink: PRUint32 read GetPermissionsOfLink write SetPermissionsOfLink; + function GetLastModifiedTime(): PRInt64; safecall; + procedure SetLastModifiedTime(aLastModifiedTime: PRInt64); safecall; + property LastModifiedTime: PRInt64 read GetLastModifiedTime write SetLastModifiedTime; + function GetLastModifiedTimeOfLink(): PRInt64; safecall; + procedure SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64); safecall; + property LastModifiedTimeOfLink: PRInt64 read GetLastModifiedTimeOfLink write SetLastModifiedTimeOfLink; + function GetFileSize(): PRInt64; safecall; + procedure SetFileSize(aFileSize: PRInt64); safecall; + property FileSize: PRInt64 read GetFileSize write SetFileSize; + function GetFileSizeOfLink(): PRInt64; safecall; + property FileSizeOfLink: PRInt64 read GetFileSizeOfLink; + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetNativeTarget(aNativeTarget: nsACString); safecall; + procedure GetPath(aPath: nsAString); safecall; + procedure GetNativePath(aNativePath: nsACString); safecall; + function Exists(): PRBool; safecall; + function IsWritable(): PRBool; safecall; + function IsReadable(): PRBool; safecall; + function IsExecutable(): PRBool; safecall; + function IsHidden(): PRBool; safecall; + function IsDirectory(): PRBool; safecall; + function IsFile(): PRBool; safecall; + function IsSymlink(): PRBool; safecall; + function IsSpecial(): PRBool; safecall; + procedure CreateUnique(_type: PRUint32; permissions: PRUint32); safecall; + function Clone(): nsIFile_safe19; safecall; + function Equals(inFile: nsIFile_safe19): PRBool; safecall; + function _Contains(inFile: nsIFile_safe19; recur: PRBool): PRBool; safecall; + function GetParent(): nsIFile_safe19; safecall; + property Parent: nsIFile_safe19 read GetParent; + function GetDirectoryEntries(): nsISimpleEnumerator_safe19; safecall; + property DirectoryEntries: nsISimpleEnumerator_safe19 read GetDirectoryEntries; + end; + + nsIDirectoryServiceProvider_safe19 = interface(nsISupports_safe19) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile_safe19; safecall; + end; + + nsIDirectoryServiceProvider2_safe19 = interface(nsIDirectoryServiceProvider_safe19) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar): nsISimpleEnumerator_safe19; safecall; + end; + + nsIDirectoryService_safe19 = interface(nsISupports_safe19) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + procedure Init(); safecall; + procedure RegisterProvider(prov: nsIDirectoryServiceProvider_safe19); safecall; + procedure UnregisterProvider(prov: nsIDirectoryServiceProvider_safe19); safecall; + end; + + nsIDOM3DocumentEvent_safe19 = interface(nsISupports_safe19) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(): nsIDOMEventGroup_safe19; safecall; + end; + + nsIDOM3EventTarget_safe19 = interface(nsISupports_safe19) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + procedure AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe19; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe19); safecall; + procedure RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe19; useCapture: PRBool; evtGroup: nsIDOMEventGroup_safe19); safecall; + function CanTrigger(const _type: nsAString): PRBool; safecall; + function IsRegisteredHere(const _type: nsAString): PRBool; safecall; + end; + + nsIDOMAbstractView_safe19 = interface(nsISupports_safe19) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(): nsIDOMDocumentView_safe19; safecall; + property Document: nsIDOMDocumentView_safe19 read GetDocument; + end; + + nsIDOMNode_safe19 = interface(nsISupports_safe19) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + procedure GetNodeName(aNodeName: nsAString); safecall; + procedure GetNodeValue(aNodeValue: nsAString); safecall; + procedure SetNodeValue(const aNodeValue: nsAString); safecall; + function GetNodeType(): PRUint16; safecall; + property NodeType: PRUint16 read GetNodeType; + function GetParentNode(): nsIDOMNode_safe19; safecall; + property ParentNode: nsIDOMNode_safe19 read GetParentNode; + function GetChildNodes(): nsIDOMNodeList_safe19; safecall; + property ChildNodes: nsIDOMNodeList_safe19 read GetChildNodes; + function GetFirstChild(): nsIDOMNode_safe19; safecall; + property FirstChild: nsIDOMNode_safe19 read GetFirstChild; + function GetLastChild(): nsIDOMNode_safe19; safecall; + property LastChild: nsIDOMNode_safe19 read GetLastChild; + function GetPreviousSibling(): nsIDOMNode_safe19; safecall; + property PreviousSibling: nsIDOMNode_safe19 read GetPreviousSibling; + function GetNextSibling(): nsIDOMNode_safe19; safecall; + property NextSibling: nsIDOMNode_safe19 read GetNextSibling; + function GetAttributes(): nsIDOMNamedNodeMap_safe19; safecall; + property Attributes: nsIDOMNamedNodeMap_safe19 read GetAttributes; + function GetOwnerDocument(): nsIDOMDocument_safe19; safecall; + property OwnerDocument: nsIDOMDocument_safe19 read GetOwnerDocument; + function InsertBefore(newChild: nsIDOMNode_safe19; refChild: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function ReplaceChild(newChild: nsIDOMNode_safe19; oldChild: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function RemoveChild(oldChild: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function AppendChild(newChild: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function HasChildNodes(): PRBool; safecall; + function CloneNode(deep: PRBool): nsIDOMNode_safe19; safecall; + procedure Normalize(); safecall; + function IsSupported(const feature: nsAString; const version: nsAString): PRBool; safecall; + procedure GetNamespaceURI(aNamespaceURI: nsAString); safecall; + procedure GetPrefix(aPrefix: nsAString); safecall; + procedure SetPrefix(const aPrefix: nsAString); safecall; + procedure GetLocalName(aLocalName: nsAString); safecall; + function HasAttributes(): PRBool; safecall; + end; + + nsIDOMAttr_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetSpecified(): PRBool; safecall; + property Specified: PRBool read GetSpecified; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetOwnerElement(): nsIDOMElement_safe19; safecall; + property OwnerElement: nsIDOMElement_safe19 read GetOwnerElement; + end; + + nsIDOMBarProp_safe19 = interface(nsISupports_safe19) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(): PRBool; safecall; + procedure SetVisible(aVisible: PRBool); safecall; + property Visible: PRBool read GetVisible write SetVisible; + end; + + nsIDOMCharacterData_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString); safecall; + procedure AppendData(const arg: nsAString); safecall; + procedure InsertData(offset: PRUint32; const arg: nsAString); safecall; + procedure DeleteData(offset: PRUint32; count: PRUint32); safecall; + procedure ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString); safecall; + end; + + nsIDOMText_safe19 = interface(nsIDOMCharacterData_safe19) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32): nsIDOMText_safe19; safecall; + end; + + nsIDOMCDATASection_safe19 = interface(nsIDOMText_safe19) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_safe19 = interface(nsIDOMCharacterData_safe19) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_safe19 = interface(nsISupports_safe19) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + procedure GetIdentifier(aIdentifier: nsAString); safecall; + procedure GetListStyle(aListStyle: nsAString); safecall; + procedure GetSeparator(aSeparator: nsAString); safecall; + end; + + nsIDOMCSSValue_safe19 = interface(nsISupports_safe19) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetCssValueType(): PRUint16; safecall; + property CssValueType: PRUint16 read GetCssValueType; + end; + + nsIDOMCSSPrimitiveValue_safe19 = interface(nsIDOMCSSValue_safe19) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(): PRUint16; safecall; + property PrimitiveType: PRUint16 read GetPrimitiveType; + procedure SetFloatValue(unitType: PRUint16; floatValue: Single); safecall; + function GetFloatValue(unitType: PRUint16): Single; safecall; + procedure SetStringValue(stringType: PRUint16; const stringValue: nsAString); safecall; + procedure GetStringValue(_retval: nsAString); safecall; + function GetCounterValue(): nsIDOMCounter_safe19; safecall; + function GetRectValue(): nsIDOMRect_safe19; safecall; + function GetRGBColorValue(): nsIDOMRGBColor_safe19; safecall; + end; + + nsIDOMCSSRule_safe19 = interface(nsISupports_safe19) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetParentStyleSheet(): nsIDOMCSSStyleSheet_safe19; safecall; + property ParentStyleSheet: nsIDOMCSSStyleSheet_safe19 read GetParentStyleSheet; + function GetParentRule(): nsIDOMCSSRule_safe19; safecall; + property ParentRule: nsIDOMCSSRule_safe19 read GetParentRule; + end; + + nsIDOMCSSRuleList_safe19 = interface(nsISupports_safe19) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSRule_safe19; safecall; + end; + + nsIDOMCSSStyleDeclaration_safe19 = interface(nsISupports_safe19) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + procedure GetPropertyValue(const propertyName: nsAString; _retval: nsAString); safecall; + function GetPropertyCSSValue(const propertyName: nsAString): nsIDOMCSSValue_safe19; safecall; + procedure RemoveProperty(const propertyName: nsAString; _retval: nsAString); safecall; + procedure GetPropertyPriority(const propertyName: nsAString; _retval: nsAString); safecall; + procedure SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + function GetParentRule(): nsIDOMCSSRule_safe19; safecall; + property ParentRule: nsIDOMCSSRule_safe19 read GetParentRule; + end; + + nsIDOMStyleSheet_safe19 = interface(nsISupports_safe19) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetOwnerNode(): nsIDOMNode_safe19; safecall; + property OwnerNode: nsIDOMNode_safe19 read GetOwnerNode; + function GetParentStyleSheet(): nsIDOMStyleSheet_safe19; safecall; + property ParentStyleSheet: nsIDOMStyleSheet_safe19 read GetParentStyleSheet; + procedure GetHref(aHref: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + function GetMedia(): nsIDOMMediaList_safe19; safecall; + property Media: nsIDOMMediaList_safe19 read GetMedia; + end; + + nsIDOMCSSStyleSheet_safe19 = interface(nsIDOMStyleSheet_safe19) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(): nsIDOMCSSRule_safe19; safecall; + property OwnerRule: nsIDOMCSSRule_safe19 read GetOwnerRule; + function GetCssRules(): nsIDOMCSSRuleList_safe19; safecall; + property CssRules: nsIDOMCSSRuleList_safe19 read GetCssRules; + function InsertRule(const rule: nsAString; index: PRUint32): PRUint32; safecall; + procedure DeleteRule(index: PRUint32); safecall; + end; + + nsIDOMCSSValueList_safe19 = interface(nsIDOMCSSValue_safe19) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSValue_safe19; safecall; + end; + + nsIDOMEvent_safe19 = interface(nsISupports_safe19) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + procedure GetType(aType: nsAString); safecall; + function GetTarget(): nsIDOMEventTarget_safe19; safecall; + property Target: nsIDOMEventTarget_safe19 read GetTarget; + function GetCurrentTarget(): nsIDOMEventTarget_safe19; safecall; + property CurrentTarget: nsIDOMEventTarget_safe19 read GetCurrentTarget; + function GetEventPhase(): PRUint16; safecall; + property EventPhase: PRUint16 read GetEventPhase; + function GetBubbles(): PRBool; safecall; + property Bubbles: PRBool read GetBubbles; + function GetCancelable(): PRBool; safecall; + property Cancelable: PRBool read GetCancelable; + function GetTimeStamp(): DOMTimeStamp; safecall; + property TimeStamp: DOMTimeStamp read GetTimeStamp; + procedure StopPropagation(); safecall; + procedure PreventDefault(); safecall; + procedure InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool); safecall; + end; + + nsIDOMCustomEvent_safe19 = interface(nsIDOMEvent_safe19) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + procedure SetCurrentTarget(target: nsIDOMNode_safe19); safecall; + procedure SetEventPhase(phase: PRUint16); safecall; + end; + + nsIDOMDocument_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(): nsIDOMDocumentType_safe19; safecall; + property Doctype: nsIDOMDocumentType_safe19 read GetDoctype; + function GetImplementation(): nsIDOMDOMImplementation_safe19; safecall; + property _Implementation: nsIDOMDOMImplementation_safe19 read GetImplementation; + function GetDocumentElement(): nsIDOMElement_safe19; safecall; + property DocumentElement: nsIDOMElement_safe19 read GetDocumentElement; + function CreateElement(const tagName: nsAString): nsIDOMElement_safe19; safecall; + function CreateDocumentFragment(): nsIDOMDocumentFragment_safe19; safecall; + function CreateTextNode(const data: nsAString): nsIDOMText_safe19; safecall; + function CreateComment(const data: nsAString): nsIDOMComment_safe19; safecall; + function CreateCDATASection(const data: nsAString): nsIDOMCDATASection_safe19; safecall; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString): nsIDOMProcessingInstruction_safe19; safecall; + function CreateAttribute(const name: nsAString): nsIDOMAttr_safe19; safecall; + function CreateEntityReference(const name: nsAString): nsIDOMEntityReference_safe19; safecall; + function GetElementsByTagName(const tagname: nsAString): nsIDOMNodeList_safe19; safecall; + function ImportNode(importedNode: nsIDOMNode_safe19; deep: PRBool): nsIDOMNode_safe19; safecall; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMElement_safe19; safecall; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMAttr_safe19; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe19; safecall; + function GetElementById(const elementId: nsAString): nsIDOMElement_safe19; safecall; + end; + + nsIDOMDocumentEvent_safe19 = interface(nsISupports_safe19) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString): nsIDOMEvent_safe19; safecall; + end; + + nsIDOMDocumentFragment_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_safe19 = interface(nsISupports_safe19) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(): nsIDOMRange_safe19; safecall; + end; + + nsIDOMDocumentStyle_safe19 = interface(nsISupports_safe19) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(): nsIDOMStyleSheetList_safe19; safecall; + property StyleSheets: nsIDOMStyleSheetList_safe19 read GetStyleSheets; + end; + + nsIDOMDocumentType_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetEntities(): nsIDOMNamedNodeMap_safe19; safecall; + property Entities: nsIDOMNamedNodeMap_safe19 read GetEntities; + function GetNotations(): nsIDOMNamedNodeMap_safe19; safecall; + property Notations: nsIDOMNamedNodeMap_safe19 read GetNotations; + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetInternalSubset(aInternalSubset: nsAString); safecall; + end; + + nsIDOMDocumentView_safe19 = interface(nsISupports_safe19) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(): nsIDOMAbstractView_safe19; safecall; + property DefaultView: nsIDOMAbstractView_safe19 read GetDefaultView; + end; + + nsIDOMDOMException_safe19 = interface(nsISupports_safe19) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(): PRUint32; safecall; + property Code: PRUint32 read GetCode; + end; + + nsIDOMDOMImplementation_safe19 = interface(nsISupports_safe19) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString): PRBool; safecall; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString): nsIDOMDocumentType_safe19; safecall; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_safe19): nsIDOMDocument_safe19; safecall; + end; + + nsIDOMElement_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + procedure GetTagName(aTagName: nsAString); safecall; + procedure GetAttribute(const name: nsAString; _retval: nsAString); safecall; + procedure SetAttribute(const name: nsAString; const value: nsAString); safecall; + procedure RemoveAttribute(const name: nsAString); safecall; + function GetAttributeNode(const name: nsAString): nsIDOMAttr_safe19; safecall; + function SetAttributeNode(newAttr: nsIDOMAttr_safe19): nsIDOMAttr_safe19; safecall; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_safe19): nsIDOMAttr_safe19; safecall; + function GetElementsByTagName(const name: nsAString): nsIDOMNodeList_safe19; safecall; + procedure GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString); safecall; + procedure SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString); safecall; + procedure RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString); safecall; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMAttr_safe19; safecall; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_safe19): nsIDOMAttr_safe19; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList_safe19; safecall; + function HasAttribute(const name: nsAString): PRBool; safecall; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString): PRBool; safecall; + end; + + nsIDOMElementCSSInlineStyle_safe19 = interface(nsISupports_safe19) + ['{99715845-95fc-4a56-aa53-214b65c26e22}'] + function GetStyle(): nsIDOMCSSStyleDeclaration_safe19; safecall; + property Style: nsIDOMCSSStyleDeclaration_safe19 read GetStyle; + end; + + nsIDOMEntity_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetNotationName(aNotationName: nsAString); safecall; + end; + + nsIDOMEntityReference_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_safe19 = interface(nsISupports_safe19) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_safe19): PRBool; safecall; + end; + + nsIDOMEventListener_safe19 = interface(nsISupports_safe19) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + procedure HandleEvent(event: nsIDOMEvent_safe19); safecall; + end; + + nsIDOMEventTarget_safe19 = interface(nsISupports_safe19) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + procedure AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe19; useCapture: PRBool); safecall; + procedure RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_safe19; useCapture: PRBool); safecall; + function DispatchEvent(evt: nsIDOMEvent_safe19): PRBool; safecall; + end; + + nsIDOMHTMLElement_safe19 = interface(nsIDOMElement_safe19) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + procedure GetId(aId: nsAString); safecall; + procedure SetId(const aId: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetLang(aLang: nsAString); safecall; + procedure SetLang(const aLang: nsAString); safecall; + procedure GetDir(aDir: nsAString); safecall; + procedure SetDir(const aDir: nsAString); safecall; + procedure GetClassName(aClassName: nsAString); safecall; + procedure SetClassName(const aClassName: nsAString); safecall; + end; + + nsIDOMHTMLAnchorElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLAppletElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetObject(aObject: nsAString); safecall; + procedure SetObject(const aObject: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLAreaElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + function GetNoHref(): PRBool; safecall; + procedure SetNoHref(aNoHref: PRBool); safecall; + property NoHref: PRBool read GetNoHref write SetNoHref; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseFontElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + end; + + nsIDOMHTMLBodyElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + procedure GetALink(aALink: nsAString); safecall; + procedure SetALink(const aALink: nsAString); safecall; + procedure GetBackground(aBackground: nsAString); safecall; + procedure SetBackground(const aBackground: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetLink(aLink: nsAString); safecall; + procedure SetLink(const aLink: nsAString); safecall; + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetVLink(aVLink: nsAString); safecall; + procedure SetVLink(const aVLink: nsAString); safecall; + end; + + nsIDOMHTMLBRElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + procedure GetClear(aClear: nsAString); safecall; + procedure SetClear(const aClear: nsAString); safecall; + end; + + nsIDOMHTMLButtonElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLCollection_safe19 = interface(nsISupports_safe19) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMNode_safe19; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe19; safecall; + end; + + nsIDOMHTMLDirectoryElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDivElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLDListElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDocument_safe19 = interface(nsIDOMDocument_safe19) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetReferrer(aReferrer: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure GetURL(aURL: nsAString); safecall; + function GetBody(): nsIDOMHTMLElement_safe19; safecall; + procedure SetBody(aBody: nsIDOMHTMLElement_safe19); safecall; + property Body: nsIDOMHTMLElement_safe19 read GetBody write SetBody; + function GetImages(): nsIDOMHTMLCollection_safe19; safecall; + property Images: nsIDOMHTMLCollection_safe19 read GetImages; + function GetApplets(): nsIDOMHTMLCollection_safe19; safecall; + property Applets: nsIDOMHTMLCollection_safe19 read GetApplets; + function GetLinks(): nsIDOMHTMLCollection_safe19; safecall; + property Links: nsIDOMHTMLCollection_safe19 read GetLinks; + function GetForms(): nsIDOMHTMLCollection_safe19; safecall; + property Forms: nsIDOMHTMLCollection_safe19 read GetForms; + function GetAnchors(): nsIDOMHTMLCollection_safe19; safecall; + property Anchors: nsIDOMHTMLCollection_safe19 read GetAnchors; + procedure GetCookie(aCookie: nsAString); safecall; + procedure SetCookie(const aCookie: nsAString); safecall; + procedure Open(); safecall; + procedure Close(); safecall; + procedure Write(const text: nsAString); safecall; + procedure Writeln(const text: nsAString); safecall; + function GetElementsByName(const elementName: nsAString): nsIDOMNodeList_safe19; safecall; + end; + + nsIDOMHTMLEmbedElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLFieldSetElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + end; + + nsIDOMHTMLFontElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + end; + + nsIDOMHTMLFormElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(): nsIDOMHTMLCollection_safe19; safecall; + property Elements: nsIDOMHTMLCollection_safe19 read GetElements; + function GetLength(): PRInt32; safecall; + property Length: PRInt32 read GetLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAcceptCharset(aAcceptCharset: nsAString); safecall; + procedure SetAcceptCharset(const aAcceptCharset: nsAString); safecall; + procedure GetAction(aAction: nsAString); safecall; + procedure SetAction(const aAction: nsAString); safecall; + procedure GetEnctype(aEnctype: nsAString); safecall; + procedure SetEnctype(const aEnctype: nsAString); safecall; + procedure GetMethod(aMethod: nsAString); safecall; + procedure SetMethod(const aMethod: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure Submit(); safecall; + procedure Reset(); safecall; + end; + + nsIDOMHTMLFrameElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetNoResize(): PRBool; safecall; + procedure SetNoResize(aNoResize: PRBool); safecall; + property NoResize: PRBool read GetNoResize write SetNoResize; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe19; safecall; + property ContentDocument: nsIDOMDocument_safe19 read GetContentDocument; + end; + + nsIDOMHTMLFrameSetElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + procedure GetCols(aCols: nsAString); safecall; + procedure SetCols(const aCols: nsAString); safecall; + procedure GetRows(aRows: nsAString); safecall; + procedure SetRows(const aRows: nsAString); safecall; + end; + + nsIDOMHTMLHeadElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + procedure GetProfile(aProfile: nsAString); safecall; + procedure SetProfile(const aProfile: nsAString); safecall; + end; + + nsIDOMHTMLHeadingElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLHRElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + function GetNoShade(): PRBool; safecall; + procedure SetNoShade(aNoShade: PRBool); safecall; + property NoShade: PRBool read GetNoShade write SetNoShade; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLHtmlElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + procedure GetVersion(aVersion: nsAString); safecall; + procedure SetVersion(const aVersion: nsAString); safecall; + end; + + nsIDOMHTMLIFrameElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe19; safecall; + property ContentDocument: nsIDOMDocument_safe19 read GetContentDocument; + end; + + nsIDOMHTMLImageElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + function GetHeight(): PRInt32; safecall; + procedure SetHeight(aHeight: PRInt32); safecall; + property Height: PRInt32 read GetHeight write SetHeight; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + function GetIsMap(): PRBool; safecall; + procedure SetIsMap(aIsMap: PRBool); safecall; + property IsMap: PRBool read GetIsMap write SetIsMap; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLInputElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetDefaultChecked(): PRBool; safecall; + procedure SetDefaultChecked(aDefaultChecked: PRBool); safecall; + property DefaultChecked: PRBool read GetDefaultChecked write SetDefaultChecked; + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetAccept(aAccept: nsAString); safecall; + procedure SetAccept(const aAccept: nsAString); safecall; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + function GetChecked(): PRBool; safecall; + procedure SetChecked(aChecked: PRBool); safecall; + property Checked: PRBool read GetChecked write SetChecked; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetSize(): PRUint32; safecall; + procedure SetSize(aSize: PRUint32); safecall; + property Size: PRUint32 read GetSize write SetSize; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + procedure Click(); safecall; + end; + + nsIDOMHTMLIsIndexElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetPrompt(aPrompt: nsAString); safecall; + procedure SetPrompt(const aPrompt: nsAString); safecall; + end; + + nsIDOMHTMLLabelElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + end; + + nsIDOMHTMLLegendElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLLIElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + function GetValue(): PRInt32; safecall; + procedure SetValue(aValue: PRInt32); safecall; + property Value: PRInt32 read GetValue write SetValue; + end; + + nsIDOMHTMLLinkElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLMapElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(): nsIDOMHTMLCollection_safe19; safecall; + property Areas: nsIDOMHTMLCollection_safe19 read GetAreas; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + end; + + nsIDOMHTMLMenuElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLMetaElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + procedure GetContent(aContent: nsAString); safecall; + procedure SetContent(const aContent: nsAString); safecall; + procedure GetHttpEquiv(aHttpEquiv: nsAString); safecall; + procedure SetHttpEquiv(const aHttpEquiv: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScheme(aScheme: nsAString); safecall; + procedure SetScheme(const aScheme: nsAString); safecall; + end; + + nsIDOMHTMLModElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + procedure GetDateTime(aDateTime: nsAString); safecall; + procedure SetDateTime(const aDateTime: nsAString); safecall; + end; + + nsIDOMHTMLObjectElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetCodeType(aCodeType: nsAString); safecall; + procedure SetCodeType(const aCodeType: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetDeclare(): PRBool; safecall; + procedure SetDeclare(aDeclare: PRBool); safecall; + property Declare: PRBool read GetDeclare write SetDeclare; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetStandby(aStandby: nsAString); safecall; + procedure SetStandby(const aStandby: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument_safe19; safecall; + property ContentDocument: nsIDOMDocument_safe19 read GetContentDocument; + end; + + nsIDOMHTMLOListElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + function GetStart(): PRInt32; safecall; + procedure SetStart(aStart: PRInt32); safecall; + property Start: PRInt32 read GetStart write SetStart; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLOptGroupElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + end; + + nsIDOMHTMLOptionElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + function GetDefaultSelected(): PRBool; safecall; + procedure SetDefaultSelected(aDefaultSelected: PRBool); safecall; + property DefaultSelected: PRBool read GetDefaultSelected write SetDefaultSelected; + procedure GetText(aText: nsAString); safecall; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + function GetSelected(): PRBool; safecall; + procedure SetSelected(aSelected: PRBool); safecall; + property Selected: PRBool read GetSelected write SetSelected; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLOptionsCollection_safe19 = interface(nsISupports_safe19) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function Item(index: PRUint32): nsIDOMNode_safe19; safecall; + function NamedItem(const name: nsAString): nsIDOMNode_safe19; safecall; + end; + + nsIDOMHTMLParagraphElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLParamElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure GetValueType(aValueType: nsAString); safecall; + procedure SetValueType(const aValueType: nsAString); safecall; + end; + + nsIDOMHTMLPreElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLQuoteElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + end; + + nsIDOMHTMLScriptElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + procedure GetEvent(aEvent: nsAString); safecall; + procedure SetEvent(const aEvent: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + function GetDefer(): PRBool; safecall; + procedure SetDefer(aDefer: PRBool); safecall; + property Defer: PRBool read GetDefer write SetDefer; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLSelectElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetSelectedIndex(): PRInt32; safecall; + procedure SetSelectedIndex(aSelectedIndex: PRInt32); safecall; + property SelectedIndex: PRInt32 read GetSelectedIndex write SetSelectedIndex; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + function GetOptions(): nsIDOMHTMLOptionsCollection_safe19; safecall; + property Options: nsIDOMHTMLOptionsCollection_safe19 read GetOptions; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMultiple(): PRBool; safecall; + procedure SetMultiple(aMultiple: PRBool); safecall; + property Multiple: PRBool read GetMultiple write SetMultiple; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure Add(element: nsIDOMHTMLElement_safe19; before: nsIDOMHTMLElement_safe19); safecall; + procedure Remove(index: PRInt32); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLStyleElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLTableCaptionElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLTableCellElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(): PRInt32; safecall; + property CellIndex: PRInt32 read GetCellIndex; + procedure GetAbbr(aAbbr: nsAString); safecall; + procedure SetAbbr(const aAbbr: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAxis(aAxis: nsAString); safecall; + procedure SetAxis(const aAxis: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetColSpan(): PRInt32; safecall; + procedure SetColSpan(aColSpan: PRInt32); safecall; + property ColSpan: PRInt32 read GetColSpan write SetColSpan; + procedure GetHeaders(aHeaders: nsAString); safecall; + procedure SetHeaders(const aHeaders: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetNoWrap(): PRBool; safecall; + procedure SetNoWrap(aNoWrap: PRBool); safecall; + property NoWrap: PRBool read GetNoWrap write SetNoWrap; + function GetRowSpan(): PRInt32; safecall; + procedure SetRowSpan(aRowSpan: PRInt32); safecall; + property RowSpan: PRInt32 read GetRowSpan write SetRowSpan; + procedure GetScope(aScope: nsAString); safecall; + procedure SetScope(const aScope: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableColElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetSpan(): PRInt32; safecall; + procedure SetSpan(aSpan: PRInt32); safecall; + property Span: PRInt32 read GetSpan write SetSpan; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(): nsIDOMHTMLTableCaptionElement_safe19; safecall; + procedure SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_safe19); safecall; + property Caption: nsIDOMHTMLTableCaptionElement_safe19 read GetCaption write SetCaption; + function GetTHead(): nsIDOMHTMLTableSectionElement_safe19; safecall; + procedure SetTHead(aTHead: nsIDOMHTMLTableSectionElement_safe19); safecall; + property THead: nsIDOMHTMLTableSectionElement_safe19 read GetTHead write SetTHead; + function GetTFoot(): nsIDOMHTMLTableSectionElement_safe19; safecall; + procedure SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_safe19); safecall; + property TFoot: nsIDOMHTMLTableSectionElement_safe19 read GetTFoot write SetTFoot; + function GetRows(): nsIDOMHTMLCollection_safe19; safecall; + property Rows: nsIDOMHTMLCollection_safe19 read GetRows; + function GetTBodies(): nsIDOMHTMLCollection_safe19; safecall; + property TBodies: nsIDOMHTMLCollection_safe19 read GetTBodies; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCellPadding(aCellPadding: nsAString); safecall; + procedure SetCellPadding(const aCellPadding: nsAString); safecall; + procedure GetCellSpacing(aCellSpacing: nsAString); safecall; + procedure SetCellSpacing(const aCellSpacing: nsAString); safecall; + procedure GetFrame(aFrame: nsAString); safecall; + procedure SetFrame(const aFrame: nsAString); safecall; + procedure GetRules(aRules: nsAString); safecall; + procedure SetRules(const aRules: nsAString); safecall; + procedure GetSummary(aSummary: nsAString); safecall; + procedure SetSummary(const aSummary: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function CreateTHead(): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteTHead(); safecall; + function CreateTFoot(): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteTFoot(); safecall; + function CreateCaption(): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteCaption(); safecall; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableRowElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(): PRInt32; safecall; + property RowIndex: PRInt32 read GetRowIndex; + function GetSectionRowIndex(): PRInt32; safecall; + property SectionRowIndex: PRInt32 read GetSectionRowIndex; + function GetCells(): nsIDOMHTMLCollection_safe19; safecall; + property Cells: nsIDOMHTMLCollection_safe19 read GetCells; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function InsertCell(index: PRInt32): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteCell(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableSectionElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function GetRows(): nsIDOMHTMLCollection_safe19; safecall; + property Rows: nsIDOMHTMLCollection_safe19 read GetRows; + function InsertRow(index: PRInt32): nsIDOMHTMLElement_safe19; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTextAreaElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetForm(): nsIDOMHTMLFormElement_safe19; safecall; + property Form: nsIDOMHTMLFormElement_safe19 read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetCols(): PRInt32; safecall; + procedure SetCols(aCols: PRInt32); safecall; + property Cols: PRInt32 read GetCols write SetCols; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetRows(): PRInt32; safecall; + procedure SetRows(aRows: PRInt32); safecall; + property Rows: PRInt32 read GetRows write SetRows; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + end; + + nsIDOMHTMLTitleElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + end; + + nsIDOMHTMLUListElement_safe19 = interface(nsIDOMHTMLElement_safe19) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMMediaList_safe19 = interface(nsISupports_safe19) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + procedure GetMediaText(aMediaText: nsAString); safecall; + procedure SetMediaText(const aMediaText: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure DeleteMedium(const oldMedium: nsAString); safecall; + procedure AppendMedium(const newMedium: nsAString); safecall; + end; + + nsIDOMUIEvent_safe19 = interface(nsIDOMEvent_safe19) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(): nsIDOMAbstractView_safe19; safecall; + property View: nsIDOMAbstractView_safe19 read GetView; + function GetDetail(): PRInt32; safecall; + property Detail: PRInt32 read GetDetail; + procedure InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe19; detailArg: PRInt32); safecall; + end; + + nsIDOMMouseEvent_safe19 = interface(nsIDOMUIEvent_safe19) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(): PRInt32; safecall; + property ScreenX: PRInt32 read GetScreenX; + function GetScreenY(): PRInt32; safecall; + property ScreenY: PRInt32 read GetScreenY; + function GetClientX(): PRInt32; safecall; + property ClientX: PRInt32 read GetClientX; + function GetClientY(): PRInt32; safecall; + property ClientY: PRInt32 read GetClientY; + function GetCtrlKey(): PRBool; safecall; + property CtrlKey: PRBool read GetCtrlKey; + function GetShiftKey(): PRBool; safecall; + property ShiftKey: PRBool read GetShiftKey; + function GetAltKey(): PRBool; safecall; + property AltKey: PRBool read GetAltKey; + function GetMetaKey(): PRBool; safecall; + property MetaKey: PRBool read GetMetaKey; + function GetButton(): PRUint16; safecall; + property Button: PRUint16 read GetButton; + function GetRelatedTarget(): nsIDOMEventTarget_safe19; safecall; + property RelatedTarget: nsIDOMEventTarget_safe19 read GetRelatedTarget; + procedure InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_safe19; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_safe19); safecall; + end; + + nsIDOMNamedNodeMap_safe19 = interface(nsISupports_safe19) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString): nsIDOMNode_safe19; safecall; + function SetNamedItem(arg: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function RemoveNamedItem(const name: nsAString): nsIDOMNode_safe19; safecall; + function Item(index: PRUint32): nsIDOMNode_safe19; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe19; safecall; + function SetNamedItemNS(arg: nsIDOMNode_safe19): nsIDOMNode_safe19; safecall; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode_safe19; safecall; + end; + + nsIDOMNodeList_safe19 = interface(nsISupports_safe19) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32): nsIDOMNode_safe19; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + end; + + nsIDOMNotation_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + end; + + nsIDOMOfflineResourceList_safe19 = interface(nsISupports_safe19) + ['{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure Add(const uri: nsAString); safecall; + procedure Remove(const uri: nsAString); safecall; + function GetStatus(): PRUint16; safecall; + property Status: PRUint16 read GetStatus; + procedure Update(); safecall; + procedure SwapCache(); safecall; + function GetOnchecking(): nsIDOMEventListener_safe19; safecall; + procedure SetOnchecking(aOnchecking: nsIDOMEventListener_safe19); safecall; + property Onchecking: nsIDOMEventListener_safe19 read GetOnchecking write SetOnchecking; + function GetOnerror(): nsIDOMEventListener_safe19; safecall; + procedure SetOnerror(aOnerror: nsIDOMEventListener_safe19); safecall; + property Onerror: nsIDOMEventListener_safe19 read GetOnerror write SetOnerror; + function GetOnnoupdate(): nsIDOMEventListener_safe19; safecall; + procedure SetOnnoupdate(aOnnoupdate: nsIDOMEventListener_safe19); safecall; + property Onnoupdate: nsIDOMEventListener_safe19 read GetOnnoupdate write SetOnnoupdate; + function GetOndownloading(): nsIDOMEventListener_safe19; safecall; + procedure SetOndownloading(aOndownloading: nsIDOMEventListener_safe19); safecall; + property Ondownloading: nsIDOMEventListener_safe19 read GetOndownloading write SetOndownloading; + function GetOnprogress(): nsIDOMEventListener_safe19; safecall; + procedure SetOnprogress(aOnprogress: nsIDOMEventListener_safe19); safecall; + property Onprogress: nsIDOMEventListener_safe19 read GetOnprogress write SetOnprogress; + function GetOnupdateready(): nsIDOMEventListener_safe19; safecall; + procedure SetOnupdateready(aOnupdateready: nsIDOMEventListener_safe19); safecall; + property Onupdateready: nsIDOMEventListener_safe19 read GetOnupdateready write SetOnupdateready; + function GetOncached(): nsIDOMEventListener_safe19; safecall; + procedure SetOncached(aOncached: nsIDOMEventListener_safe19); safecall; + property Oncached: nsIDOMEventListener_safe19 read GetOncached write SetOncached; + end; + + nsIDOMProcessingInstruction_safe19 = interface(nsIDOMNode_safe19) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + end; + + nsIDOMRange_safe19 = interface(nsISupports_safe19) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(): nsIDOMNode_safe19; safecall; + property StartContainer: nsIDOMNode_safe19 read GetStartContainer; + function GetStartOffset(): PRInt32; safecall; + property StartOffset: PRInt32 read GetStartOffset; + function GetEndContainer(): nsIDOMNode_safe19; safecall; + property EndContainer: nsIDOMNode_safe19 read GetEndContainer; + function GetEndOffset(): PRInt32; safecall; + property EndOffset: PRInt32 read GetEndOffset; + function GetCollapsed(): PRBool; safecall; + property Collapsed: PRBool read GetCollapsed; + function GetCommonAncestorContainer(): nsIDOMNode_safe19; safecall; + property CommonAncestorContainer: nsIDOMNode_safe19 read GetCommonAncestorContainer; + procedure SetStart(refNode: nsIDOMNode_safe19; offset: PRInt32); safecall; + procedure SetEnd(refNode: nsIDOMNode_safe19; offset: PRInt32); safecall; + procedure SetStartBefore(refNode: nsIDOMNode_safe19); safecall; + procedure SetStartAfter(refNode: nsIDOMNode_safe19); safecall; + procedure SetEndBefore(refNode: nsIDOMNode_safe19); safecall; + procedure SetEndAfter(refNode: nsIDOMNode_safe19); safecall; + procedure Collapse(toStart: PRBool); safecall; + procedure SelectNode(refNode: nsIDOMNode_safe19); safecall; + procedure SelectNodeContents(refNode: nsIDOMNode_safe19); safecall; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_safe19): PRInt16; safecall; + procedure DeleteContents(); safecall; + function ExtractContents(): nsIDOMDocumentFragment_safe19; safecall; + function CloneContents(): nsIDOMDocumentFragment_safe19; safecall; + procedure InsertNode(newNode: nsIDOMNode_safe19); safecall; + procedure SurroundContents(newParent: nsIDOMNode_safe19); safecall; + function CloneRange(): nsIDOMRange_safe19; safecall; + procedure ToString(_retval: nsAString); safecall; + procedure Detach(); safecall; + end; + + nsIDOMRect_safe19 = interface(nsISupports_safe19) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Top: nsIDOMCSSPrimitiveValue_safe19 read GetTop; + function GetRight(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Right: nsIDOMCSSPrimitiveValue_safe19 read GetRight; + function GetBottom(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Bottom: nsIDOMCSSPrimitiveValue_safe19 read GetBottom; + function GetLeft(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Left: nsIDOMCSSPrimitiveValue_safe19 read GetLeft; + end; + + nsIDOMRGBColor_safe19 = interface(nsISupports_safe19) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Red: nsIDOMCSSPrimitiveValue_safe19 read GetRed; + function GetGreen(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Green: nsIDOMCSSPrimitiveValue_safe19 read GetGreen; + function GetBlue(): nsIDOMCSSPrimitiveValue_safe19; safecall; + property Blue: nsIDOMCSSPrimitiveValue_safe19 read GetBlue; + end; + + nsIDOMStorage_safe19 = interface(nsISupports_safe19) + ['{95cc1383-3b62-4b89-aaef-1004a513ef47}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Key(index: PRUint32; _retval: nsAString); safecall; + function GetItem(const key: nsAString): nsIDOMStorageItem_safe19; safecall; + procedure SetItem(const key: nsAString; const data: nsAString); safecall; + procedure RemoveItem(const key: nsAString); safecall; + end; + + nsIDOMStorageEvent_safe19 = interface(nsIDOMEvent_safe19) + ['{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'] + procedure GetDomain(aDomain: nsAString); safecall; + procedure InitStorageEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString); safecall; + procedure InitStorageEventNS(const namespaceURIArg: nsAString; const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString); safecall; + end; + + nsIDOMStorageItem_safe19 = interface(nsISupports_safe19) + ['{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'] + function GetSecure(): PRBool; safecall; + procedure SetSecure(aSecure: PRBool); safecall; + property Secure: PRBool read GetSecure write SetSecure; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMStorageList_safe19 = interface(nsISupports_safe19) + ['{f2166929-91b6-4372-8d5f-c366f47a5f54}'] + function NamedItem(const domain: nsAString): nsIDOMStorage_safe19; safecall; + end; + + nsIDOMStorageWindow_safe19 = interface(nsISupports_safe19) + ['{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'] + function GetSessionStorage(): nsIDOMStorage_safe19; safecall; + property SessionStorage: nsIDOMStorage_safe19 read GetSessionStorage; + function GetGlobalStorage(): nsIDOMStorageList_safe19; safecall; + property GlobalStorage: nsIDOMStorageList_safe19 read GetGlobalStorage; + end; + + nsIDOMStyleSheetList_safe19 = interface(nsISupports_safe19) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMStyleSheet_safe19; safecall; + end; + + nsIDOMWindow_safe19 = interface(nsISupports_safe19) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(): nsIDOMDocument_safe19; safecall; + property Document: nsIDOMDocument_safe19 read GetDocument; + function GetParent(): nsIDOMWindow_safe19; safecall; + property Parent: nsIDOMWindow_safe19 read GetParent; + function GetTop(): nsIDOMWindow_safe19; safecall; + property Top: nsIDOMWindow_safe19 read GetTop; + function GetScrollbars(): nsIDOMBarProp_safe19; safecall; + property Scrollbars: nsIDOMBarProp_safe19 read GetScrollbars; + function GetFrames(): nsIDOMWindowCollection_safe19; safecall; + property Frames: nsIDOMWindowCollection_safe19 read GetFrames; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTextZoom(): Single; safecall; + procedure SetTextZoom(aTextZoom: Single); safecall; + property TextZoom: Single read GetTextZoom write SetTextZoom; + function GetScrollX(): PRInt32; safecall; + property ScrollX: PRInt32 read GetScrollX; + function GetScrollY(): PRInt32; safecall; + property ScrollY: PRInt32 read GetScrollY; + procedure ScrollTo(xScroll: PRInt32; yScroll: PRInt32); safecall; + procedure ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32); safecall; + function GetSelection(): nsISelection_safe19; safecall; + procedure ScrollByLines(numLines: PRInt32); safecall; + procedure ScrollByPages(numPages: PRInt32); safecall; + procedure SizeToContent(); safecall; + end; + + nsIDOMWindow2_safe19 = interface(nsIDOMWindow_safe19) + ['{73c5fa35-3add-4c87-a303-a850ccf4d65a}'] + function GetWindowRoot(): nsIDOMEventTarget_safe19; safecall; + property WindowRoot: nsIDOMEventTarget_safe19 read GetWindowRoot; + function GetApplicationCache(): nsIDOMOfflineResourceList_safe19; safecall; + property ApplicationCache: nsIDOMOfflineResourceList_safe19 read GetApplicationCache; + end; + + nsIDOMWindowCollection_safe19 = interface(nsISupports_safe19) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMWindow_safe19; safecall; + function NamedItem(const name: nsAString): nsIDOMWindow_safe19; safecall; + end; + + nsIDOMWindowUtils_safe19 = interface(nsISupports_safe19) + ['{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'] + function GetImageAnimationMode(): PRUint16; safecall; + procedure SetImageAnimationMode(aImageAnimationMode: PRUint16); safecall; + property ImageAnimationMode: PRUint16 read GetImageAnimationMode write SetImageAnimationMode; + function GetDocCharsetIsForced(): PRBool; safecall; + property DocCharsetIsForced: PRBool read GetDocCharsetIsForced; + procedure GetDocumentMetadata(const aName: nsAString; _retval: nsAString); safecall; + procedure Redraw(); safecall; + procedure SendMouseEvent(const aType: nsAString; aX: PRInt32; aY: PRInt32; aButton: PRInt32; aClickCount: PRInt32; aModifiers: PRInt32); safecall; + procedure SendKeyEvent(const aType: nsAString; aKeyCode: PRInt32; aCharCode: PRInt32; aModifiers: PRInt32); safecall; + procedure SendNativeKeyEvent(aNativeKeyboardLayout: PRInt32; aNativeKeyCode: PRInt32; aModifierFlags: PRInt32; const aCharacters: nsAString; const aUnmodifiedCharacters: nsAString); safecall; + procedure Focus(aElement: nsIDOMElement_safe19); safecall; + procedure GarbageCollect(); safecall; + end; + + nsIEmbeddingSiteWindow_safe19 = interface(nsISupports_safe19) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); safecall; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); safecall; + procedure SetFocus(); safecall; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(aVisibility: PRBool); safecall; + property Visibility: PRBool read GetVisibility write SetVisibility; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetSiteWindow(): Pointer; safecall; + property SiteWindow: Pointer read GetSiteWindow; + end; + + nsIFactory_safe19 = interface(nsISupports_safe19) + ['{00000001-0000-0000-c000-000000000046}'] + procedure CreateInstance(aOuter: nsISupports_safe19; constref iid: TGUID; out _result); safecall; + procedure LockFactory(lock: PRBool); safecall; + end; + + nsIURI_safe19 = interface(nsISupports_safe19) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + procedure GetSpec(aSpec: nsACString); safecall; + procedure SetSpec(const aSpec: nsACString); safecall; + procedure GetPrePath(aPrePath: nsACString); safecall; + procedure GetScheme(aScheme: nsACString); safecall; + procedure SetScheme(const aScheme: nsACString); safecall; + procedure GetUserPass(aUserPass: nsACString); safecall; + procedure SetUserPass(const aUserPass: nsACString); safecall; + procedure GetUsername(aUsername: nsACString); safecall; + procedure SetUsername(const aUsername: nsACString); safecall; + procedure GetPassword(aPassword: nsACString); safecall; + procedure SetPassword(const aPassword: nsACString); safecall; + procedure GetHostPort(aHostPort: nsACString); safecall; + procedure SetHostPort(const aHostPort: nsACString); safecall; + procedure GetHost(aHost: nsACString); safecall; + procedure SetHost(const aHost: nsACString); safecall; + function GetPort(): PRInt32; safecall; + procedure SetPort(aPort: PRInt32); safecall; + property Port: PRInt32 read GetPort write SetPort; + procedure GetPath(aPath: nsACString); safecall; + procedure SetPath(const aPath: nsACString); safecall; + function Equals(other: nsIURI_safe19): PRBool; safecall; + function SchemeIs(const scheme: PAnsiChar): PRBool; safecall; + function Clone(): nsIURI_safe19; safecall; + procedure Resolve(const relativePath: nsACString; _retval: nsACString); safecall; + procedure GetAsciiSpec(aAsciiSpec: nsACString); safecall; + procedure GetAsciiHost(aAsciiHost: nsACString); safecall; + procedure GetOriginCharset(aOriginCharset: nsACString); safecall; + end; + + nsIURL_safe19 = interface(nsIURI_safe19) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + procedure GetFilePath(aFilePath: nsACString); safecall; + procedure SetFilePath(const aFilePath: nsACString); safecall; + procedure GetParam(aParam: nsACString); safecall; + procedure SetParam(const aParam: nsACString); safecall; + procedure GetQuery(aQuery: nsACString); safecall; + procedure SetQuery(const aQuery: nsACString); safecall; + procedure GetRef(aRef: nsACString); safecall; + procedure SetRef(const aRef: nsACString); safecall; + procedure GetDirectory(aDirectory: nsACString); safecall; + procedure SetDirectory(const aDirectory: nsACString); safecall; + procedure GetFileName(aFileName: nsACString); safecall; + procedure SetFileName(const aFileName: nsACString); safecall; + procedure GetFileBaseName(aFileBaseName: nsACString); safecall; + procedure SetFileBaseName(const aFileBaseName: nsACString); safecall; + procedure GetFileExtension(aFileExtension: nsACString); safecall; + procedure SetFileExtension(const aFileExtension: nsACString); safecall; + procedure GetCommonBaseSpec(aURIToCompare: nsIURI_safe19; _retval: nsACString); safecall; + procedure GetRelativeSpec(aURIToCompare: nsIURI_safe19; _retval: nsACString); safecall; + end; + + nsIFileURL_safe19 = interface(nsIURL_safe19) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(): nsIFile_safe19; safecall; + procedure SetFile(aFile: nsIFile_safe19); safecall; + property _File: nsIFile_safe19 read GetFile write SetFile; + end; + + nsIGlobalHistory_safe19 = interface(nsISupports_safe19) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + procedure AddPage(const aURL: PAnsiChar); safecall; + function IsVisited(const aURL: PAnsiChar): PRBool; safecall; + end; + + nsIHashable_safe19 = interface(nsISupports_safe19) + ['{17e595fa-b57a-4933-bd0f-b1812e8ab188}'] + function Equals(aOther: nsIHashable_safe19): PRBool; safecall; + function GetHashCode(): PRUint32; safecall; + property HashCode: PRUint32 read GetHashCode; + end; + + nsIHistoryEntry_safe19 = interface(nsISupports_safe19) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(): nsIURI_safe19; safecall; + property URI: nsIURI_safe19 read GetURI; + function GetTitle(): PWideChar; safecall; + property Title: PWideChar read GetTitle; + function GetIsSubFrame(): PRBool; safecall; + property IsSubFrame: PRBool read GetIsSubFrame; + end; + + nsIHttpChannel_safe19 = interface(nsIChannel_safe19) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + procedure GetRequestMethod(aRequestMethod: nsACString); safecall; + procedure SetRequestMethod(const aRequestMethod: nsACString); safecall; + function GetReferrer(): nsIURI_safe19; safecall; + procedure SetReferrer(aReferrer: nsIURI_safe19); safecall; + property Referrer: nsIURI_safe19 read GetReferrer write SetReferrer; + function GetRequestHeader(const aHeader: nsACString): nsACString; safecall; + procedure SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool); safecall; + procedure VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_safe19); safecall; + function GetAllowPipelining(): PRBool; safecall; + procedure SetAllowPipelining(aAllowPipelining: PRBool); safecall; + property AllowPipelining: PRBool read GetAllowPipelining write SetAllowPipelining; + function GetRedirectionLimit(): PRUint32; safecall; + procedure SetRedirectionLimit(aRedirectionLimit: PRUint32); safecall; + property RedirectionLimit: PRUint32 read GetRedirectionLimit write SetRedirectionLimit; + function GetResponseStatus(): PRUint32; safecall; + property ResponseStatus: PRUint32 read GetResponseStatus; + procedure GetResponseStatusText(aResponseStatusText: nsACString); safecall; + function GetRequestSucceeded(): PRBool; safecall; + property RequestSucceeded: PRBool read GetRequestSucceeded; + function GetResponseHeader(const header: nsACString): nsACString; safecall; + procedure SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool); safecall; + procedure VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_safe19); safecall; + function IsNoStoreResponse(): PRBool; safecall; + function IsNoCacheResponse(): PRBool; safecall; + end; + + nsIHttpHeaderVisitor_safe19 = interface(nsISupports_safe19) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + procedure VisitHeader(const aHeader: nsACString; const aValue: nsACString); safecall; + end; + + nsIInputStream_safe19 = interface(nsISupports_safe19) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: Pchar; aCount: PRUint32): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIInterfaceRequestor_safe19 = interface(nsISupports_safe19) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + procedure GetInterface(constref uuid: TGUID; out _result); safecall; + end; + + nsIIOService_safe19 = interface(nsISupports_safe19) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar): nsIProtocolHandler_safe19; safecall; + function GetProtocolFlags(const aScheme: PAnsiChar): PRUint32; safecall; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe19): nsIURI_safe19; safecall; + function NewFileURI(aFile: nsIFile_safe19): nsIURI_safe19; safecall; + function NewChannelFromURI(aURI: nsIURI_safe19): nsIChannel_safe19; safecall; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe19): nsIChannel_safe19; safecall; + function GetOffline(): PRBool; safecall; + procedure SetOffline(aOffline: PRBool); safecall; + property Offline: PRBool read GetOffline write SetOffline; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar): PRBool; safecall; + function ExtractScheme(const urlString: nsACString): nsACString; safecall; + end; + + nsIJSON_safe19 = interface(nsISupports_safe19) + ['{45464c36-efde-4cb5-8e00-07480533ff35}'] + procedure Encode(_retval: nsAString); safecall; + procedure EncodeToStream(stream: nsIOutputStream_safe19; const charset: PAnsiChar; writeBOM: PRBool); safecall; + procedure Decode(const str: nsAString); safecall; + procedure DecodeFromStream(stream: nsIInputStream_safe19; contentLength: PRInt32); safecall; + end; + + nsILoadGroup_safe19 = interface(nsIRequest_safe19) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(): nsIRequestObserver_safe19; safecall; + procedure SetGroupObserver(aGroupObserver: nsIRequestObserver_safe19); safecall; + property GroupObserver: nsIRequestObserver_safe19 read GetGroupObserver write SetGroupObserver; + function GetDefaultLoadRequest(): nsIRequest_safe19; safecall; + procedure SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_safe19); safecall; + property DefaultLoadRequest: nsIRequest_safe19 read GetDefaultLoadRequest write SetDefaultLoadRequest; + procedure AddRequest(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19); safecall; + procedure RemoveRequest(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19; aStatus: nsresult); safecall; + function GetRequests(): nsISimpleEnumerator_safe19; safecall; + property Requests: nsISimpleEnumerator_safe19 read GetRequests; + function GetActiveCount(): PRUint32; safecall; + property ActiveCount: PRUint32 read GetActiveCount; + function GetNotificationCallbacks(): nsIInterfaceRequestor_safe19; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_safe19); safecall; + property NotificationCallbacks: nsIInterfaceRequestor_safe19 read GetNotificationCallbacks write SetNotificationCallbacks; + end; + + nsILocalFile_safe19 = interface(nsIFile_safe19) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + procedure InitWithPath(const filePath: nsAString); safecall; + procedure InitWithNativePath(const filePath: nsACString); safecall; + procedure InitWithFile(aFile: nsILocalFile_safe19); safecall; + function GetFollowLinks(): PRBool; safecall; + procedure SetFollowLinks(aFollowLinks: PRBool); safecall; + property FollowLinks: PRBool read GetFollowLinks write SetFollowLinks; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32): PPRFileDesc; safecall; + function OpenANSIFileDesc(const mode: PAnsiChar): PFILE; safecall; + function Load(): PPRLibrary; safecall; + function GetDiskSpaceAvailable(): PRInt64; safecall; + property DiskSpaceAvailable: PRInt64 read GetDiskSpaceAvailable; + procedure AppendRelativePath(const relativeFilePath: nsAString); safecall; + procedure AppendRelativeNativePath(const relativeFilePath: nsACString); safecall; + procedure GetPersistentDescriptor(aPersistentDescriptor: nsACString); safecall; + procedure SetPersistentDescriptor(const aPersistentDescriptor: nsACString); safecall; + procedure Reveal(); safecall; + procedure Launch(); safecall; + function GetRelativeDescriptor(fromFile: nsILocalFile_safe19): nsACString; safecall; + procedure SetRelativeDescriptor(fromFile: nsILocalFile_safe19; const relativeDesc: nsACString); safecall; + end; + + nsIMemory_safe19 = interface(nsISupports_safe19) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + procedure HeapMinimize(immediate: PRBool); safecall; + function IsLowMemory(): PRBool; safecall; + end; + + nsIModule_safe19 = interface(nsISupports_safe19) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + procedure GetClassObject(aCompMgr: nsIComponentManager_safe19; constref aClass: TGUID; constref aIID: TGUID; out aResult); safecall; + procedure RegisterSelf(aCompMgr: nsIComponentManager_safe19; aLocation: nsIFile_safe19; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterSelf(aCompMgr: nsIComponentManager_safe19; aLocation: nsIFile_safe19; const aLoaderStr: PAnsiChar); safecall; + function CanUnload(aCompMgr: nsIComponentManager_safe19): PRBool; safecall; + end; + + nsIMutableArray_safe19 = interface(nsIArray_safe19) + ['{af059da0-c85b-40ec-af07-ae4bfdc192cc}'] + procedure AppendElement(element: nsISupports_safe19; weak: PRBool); safecall; + procedure RemoveElementAt(index: PRUint32); safecall; + procedure InsertElementAt(element: nsISupports_safe19; index: PRUint32; weak: PRBool); safecall; + procedure ReplaceElementAt(element: nsISupports_safe19; index: PRUint32; weak: PRBool); safecall; + procedure Clear(); safecall; + end; + + nsIObserver_safe19 = interface(nsISupports_safe19) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + procedure Observe(aSubject: nsISupports_safe19; const aTopic: PAnsiChar; const aData: PWideChar); safecall; + end; + + nsIObserverService_safe19 = interface(nsISupports_safe19) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + procedure AddObserver(anObserver: nsIObserver_safe19; const aTopic: PAnsiChar; ownsWeak: PRBool); safecall; + procedure RemoveObserver(anObserver: nsIObserver_safe19; const aTopic: PAnsiChar); safecall; + procedure NotifyObservers(aSubject: nsISupports_safe19; const aTopic: PAnsiChar; const someData: PWideChar); safecall; + function EnumerateObservers(const aTopic: PAnsiChar): nsISimpleEnumerator_safe19; safecall; + end; + + nsIOutputStream_safe19 = interface(nsISupports_safe19) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + procedure Flush(); safecall; + function Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function WriteFrom(aFromStream: nsIInputStream_safe19; aCount: PRUint32): PRUint32; safecall; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIPrefBranch_safe19 = interface(nsISupports_safe19) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(): PAnsiChar; safecall; + property Root: PAnsiChar read GetRoot; + function GetPrefType(const aPrefName: PAnsiChar): PRInt32; safecall; + function GetBoolPref(const aPrefName: PAnsiChar): PRBool; safecall; + procedure SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + function GetCharPref(const aPrefName: PAnsiChar): PAnsiChar; safecall; + procedure SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar); safecall; + function GetIntPref(const aPrefName: PAnsiChar): PRInt32; safecall; + procedure SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + procedure GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue); safecall; + procedure SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_safe19); safecall; + procedure ClearUserPref(const aPrefName: PAnsiChar); safecall; + procedure LockPref(const aPrefName: PAnsiChar); safecall; + function PrefHasUserValue(const aPrefName: PAnsiChar): PRBool; safecall; + function PrefIsLocked(const aPrefName: PAnsiChar): PRBool; safecall; + procedure UnlockPref(const aPrefName: PAnsiChar); safecall; + procedure DeleteBranch(const aStartingAt: PAnsiChar); safecall; + procedure GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array); safecall; + procedure ResetBranch(const aStartingAt: PAnsiChar); safecall; + end; + + nsIPrefBranch2_safe19 = interface(nsIPrefBranch_safe19) + ['{74567534-eb94-4b1c-8f45-389643bfc555}'] + procedure AddObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_safe19; aHoldWeak: PRBool); safecall; + procedure RemoveObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_safe19); safecall; + end; + + nsIPrefLocalizedString_safe19 = interface(nsISupports_safe19) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(): PWideChar; safecall; + procedure SetData(const aData: PWideChar); safecall; + property Data: PWideChar read GetData write SetData; + function ToString(): PWideChar; safecall; + procedure SetDataWithLength(length: PRUint32; const data: PWideChar); safecall; + end; + + nsIPrefService_safe19 = interface(nsISupports_safe19) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + procedure ReadUserPrefs(aFile: nsIFile_safe19); safecall; + procedure ResetPrefs(); safecall; + procedure ResetUserPrefs(); safecall; + procedure SavePrefFile(aFile: nsIFile_safe19); safecall; + function GetBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe19; safecall; + function GetDefaultBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch_safe19; safecall; + end; + + nsIPrintSession_safe19 = interface(nsISupports_safe19) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_safe19 = interface(nsISupports_safe19) + ['{5af07661-6477-4235-8814-4a45215855b8}'] + procedure SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool); safecall; + function GetPrintOptions(aType: PRInt32): PRBool; safecall; + function GetPrintOptionsBits(): PRInt32; safecall; + procedure GetEffectivePageSize(out aWidth: Double; out aHeight: Double); safecall; + function Clone(): nsIPrintSettings_safe19; safecall; + procedure Assign(aPS: nsIPrintSettings_safe19); safecall; + function GetPrintSession(): nsIPrintSession_safe19; safecall; + procedure SetPrintSession(aPrintSession: nsIPrintSession_safe19); safecall; + property PrintSession: nsIPrintSession_safe19 read GetPrintSession write SetPrintSession; + function GetStartPageRange(): PRInt32; safecall; + procedure SetStartPageRange(aStartPageRange: PRInt32); safecall; + property StartPageRange: PRInt32 read GetStartPageRange write SetStartPageRange; + function GetEndPageRange(): PRInt32; safecall; + procedure SetEndPageRange(aEndPageRange: PRInt32); safecall; + property EndPageRange: PRInt32 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(): PRBool; safecall; + procedure SetPrintBGColors(aPrintBGColors: PRBool); safecall; + property PrintBGColors: PRBool read GetPrintBGColors write SetPrintBGColors; + function GetPrintBGImages(): PRBool; safecall; + procedure SetPrintBGImages(aPrintBGImages: PRBool); safecall; + property PrintBGImages: PRBool read GetPrintBGImages write SetPrintBGImages; + function GetPrintRange(): PRInt16; safecall; + procedure SetPrintRange(aPrintRange: PRInt16); safecall; + property PrintRange: PRInt16 read GetPrintRange write SetPrintRange; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetDocURL(): PWideChar; safecall; + procedure SetDocURL(const aDocURL: PWideChar); safecall; + property DocURL: PWideChar read GetDocURL write SetDocURL; + function GetHeaderStrLeft(): PWideChar; safecall; + procedure SetHeaderStrLeft(const aHeaderStrLeft: PWideChar); safecall; + property HeaderStrLeft: PWideChar read GetHeaderStrLeft write SetHeaderStrLeft; + function GetHeaderStrCenter(): PWideChar; safecall; + procedure SetHeaderStrCenter(const aHeaderStrCenter: PWideChar); safecall; + property HeaderStrCenter: PWideChar read GetHeaderStrCenter write SetHeaderStrCenter; + function GetHeaderStrRight(): PWideChar; safecall; + procedure SetHeaderStrRight(const aHeaderStrRight: PWideChar); safecall; + property HeaderStrRight: PWideChar read GetHeaderStrRight write SetHeaderStrRight; + function GetFooterStrLeft(): PWideChar; safecall; + procedure SetFooterStrLeft(const aFooterStrLeft: PWideChar); safecall; + property FooterStrLeft: PWideChar read GetFooterStrLeft write SetFooterStrLeft; + function GetFooterStrCenter(): PWideChar; safecall; + procedure SetFooterStrCenter(const aFooterStrCenter: PWideChar); safecall; + property FooterStrCenter: PWideChar read GetFooterStrCenter write SetFooterStrCenter; + function GetFooterStrRight(): PWideChar; safecall; + procedure SetFooterStrRight(const aFooterStrRight: PWideChar); safecall; + property FooterStrRight: PWideChar read GetFooterStrRight write SetFooterStrRight; + function GetHowToEnableFrameUI(): PRInt16; safecall; + procedure SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16); safecall; + property HowToEnableFrameUI: PRInt16 read GetHowToEnableFrameUI write SetHowToEnableFrameUI; + function GetIsCancelled(): PRBool; safecall; + procedure SetIsCancelled(aIsCancelled: PRBool); safecall; + property IsCancelled: PRBool read GetIsCancelled write SetIsCancelled; + function GetPrintFrameTypeUsage(): PRInt16; safecall; + procedure SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16); safecall; + property PrintFrameTypeUsage: PRInt16 read GetPrintFrameTypeUsage write SetPrintFrameTypeUsage; + function GetPrintFrameType(): PRInt16; safecall; + procedure SetPrintFrameType(aPrintFrameType: PRInt16); safecall; + property PrintFrameType: PRInt16 read GetPrintFrameType write SetPrintFrameType; + function GetPrintSilent(): PRBool; safecall; + procedure SetPrintSilent(aPrintSilent: PRBool); safecall; + property PrintSilent: PRBool read GetPrintSilent write SetPrintSilent; + function GetShrinkToFit(): PRBool; safecall; + procedure SetShrinkToFit(aShrinkToFit: PRBool); safecall; + property ShrinkToFit: PRBool read GetShrinkToFit write SetShrinkToFit; + function GetShowPrintProgress(): PRBool; safecall; + procedure SetShowPrintProgress(aShowPrintProgress: PRBool); safecall; + property ShowPrintProgress: PRBool read GetShowPrintProgress write SetShowPrintProgress; + function GetPaperName(): PWideChar; safecall; + procedure SetPaperName(const aPaperName: PWideChar); safecall; + property PaperName: PWideChar read GetPaperName write SetPaperName; + function GetPaperSizeType(): PRInt16; safecall; + procedure SetPaperSizeType(aPaperSizeType: PRInt16); safecall; + property PaperSizeType: PRInt16 read GetPaperSizeType write SetPaperSizeType; + function GetPaperData(): PRInt16; safecall; + procedure SetPaperData(aPaperData: PRInt16); safecall; + property PaperData: PRInt16 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(): PRInt16; safecall; + procedure SetPaperSizeUnit(aPaperSizeUnit: PRInt16); safecall; + property PaperSizeUnit: PRInt16 read GetPaperSizeUnit write SetPaperSizeUnit; + function GetPlexName(): PWideChar; safecall; + procedure SetPlexName(const aPlexName: PWideChar); safecall; + property PlexName: PWideChar read GetPlexName write SetPlexName; + function GetColorspace(): PWideChar; safecall; + procedure SetColorspace(const aColorspace: PWideChar); safecall; + property Colorspace: PWideChar read GetColorspace write SetColorspace; + function GetResolutionName(): PWideChar; safecall; + procedure SetResolutionName(const aResolutionName: PWideChar); safecall; + property ResolutionName: PWideChar read GetResolutionName write SetResolutionName; + function GetDownloadFonts(): PRBool; safecall; + procedure SetDownloadFonts(aDownloadFonts: PRBool); safecall; + property DownloadFonts: PRBool read GetDownloadFonts write SetDownloadFonts; + function GetPrintReversed(): PRBool; safecall; + procedure SetPrintReversed(aPrintReversed: PRBool); safecall; + property PrintReversed: PRBool read GetPrintReversed write SetPrintReversed; + function GetPrintInColor(): PRBool; safecall; + procedure SetPrintInColor(aPrintInColor: PRBool); safecall; + property PrintInColor: PRBool read GetPrintInColor write SetPrintInColor; + function GetOrientation(): PRInt32; safecall; + procedure SetOrientation(aOrientation: PRInt32); safecall; + property Orientation: PRInt32 read GetOrientation write SetOrientation; + function GetPrintCommand(): PWideChar; safecall; + procedure SetPrintCommand(const aPrintCommand: PWideChar); safecall; + property PrintCommand: PWideChar read GetPrintCommand write SetPrintCommand; + function GetNumCopies(): PRInt32; safecall; + procedure SetNumCopies(aNumCopies: PRInt32); safecall; + property NumCopies: PRInt32 read GetNumCopies write SetNumCopies; + function GetPrinterName(): PWideChar; safecall; + procedure SetPrinterName(const aPrinterName: PWideChar); safecall; + property PrinterName: PWideChar read GetPrinterName write SetPrinterName; + function GetPrintToFile(): PRBool; safecall; + procedure SetPrintToFile(aPrintToFile: PRBool); safecall; + property PrintToFile: PRBool read GetPrintToFile write SetPrintToFile; + function GetToFileName(): PWideChar; safecall; + procedure SetToFileName(const aToFileName: PWideChar); safecall; + property ToFileName: PWideChar read GetToFileName write SetToFileName; + function GetOutputFormat(): PRInt16; safecall; + procedure SetOutputFormat(aOutputFormat: PRInt16); safecall; + property OutputFormat: PRInt16 read GetOutputFormat write SetOutputFormat; + function GetPrintPageDelay(): PRInt32; safecall; + procedure SetPrintPageDelay(aPrintPageDelay: PRInt32); safecall; + property PrintPageDelay: PRInt32 read GetPrintPageDelay write SetPrintPageDelay; + function GetIsInitializedFromPrinter(): PRBool; safecall; + procedure SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool); safecall; + property IsInitializedFromPrinter: PRBool read GetIsInitializedFromPrinter write SetIsInitializedFromPrinter; + function GetIsInitializedFromPrefs(): PRBool; safecall; + procedure SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool); safecall; + property IsInitializedFromPrefs: PRBool read GetIsInitializedFromPrefs write SetIsInitializedFromPrefs; + procedure SetMarginInTwips(var aMargin: nsMargin); safecall; + procedure SetEdgeInTwips(var aEdge: nsMargin); safecall; + procedure GetMarginInTwips(var aMargin: nsMargin); safecall; + procedure GetEdgeInTwips(var aEdge: nsMargin); safecall; + procedure SetupSilentPrinting(); safecall; + procedure SetUnwriteableMarginInTwips(var aEdge: nsMargin); safecall; + procedure GetUnwriteableMarginInTwips(var aEdge: nsMargin); safecall; + end; + + nsIProfile_safe19 = interface(nsISupports_safe19) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(): PRInt32; safecall; + property ProfileCount: PRInt32 read GetProfileCount; + procedure GetProfileList(out length: PRUint32; out profileNames_array); safecall; + function ProfileExists(const profileName: PWideChar): PRBool; safecall; + function GetCurrentProfile(): PWideChar; safecall; + procedure SetCurrentProfile(const aCurrentProfile: PWideChar); safecall; + property CurrentProfile: PWideChar read GetCurrentProfile write SetCurrentProfile; + procedure ShutDownCurrentProfile(shutDownType: PRUint32); safecall; + procedure CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool); safecall; + procedure RenameProfile(const oldName: PWideChar; const newName: PWideChar); safecall; + procedure DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool); safecall; + procedure CloneProfile(const profileName: PWideChar); safecall; + end; + + nsIProfileChangeStatus_safe19 = interface(nsISupports_safe19) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + procedure VetoChange(); safecall; + procedure ChangeFailed(); safecall; + end; + + nsIProgrammingLanguage_safe19 = interface(nsISupports_safe19) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIPrompt_safe19 = interface(nsISupports_safe19) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + procedure Alert(const dialogTitle: PWideChar; const text: PWideChar); safecall; + procedure AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool); safecall; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar): PRBool; safecall; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRInt32; safecall; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32): PRBool; safecall; + end; + + nsIPromptService_safe19 = interface(nsISupports_safe19) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + procedure Alert(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar); safecall; + procedure AlertCheck(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; + function Confirm(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; + function ConfirmCheck(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function ConfirmEx(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; + function Prompt(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptPassword(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function Select(aParent: nsIDOMWindow_safe19; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; + end; + + nsIProperties_safe19 = interface(nsISupports_safe19) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + procedure Get(const prop: PAnsiChar; constref iid: TGUID; out _result); safecall; + procedure _Set(const prop: PAnsiChar; value: nsISupports_safe19); safecall; + function Has(const prop: PAnsiChar): PRBool; safecall; + procedure Undefine(const prop: PAnsiChar); safecall; + procedure GetKeys(out count: PRUint32; out keys_array); safecall; + end; + + nsIProtocolHandler_safe19 = interface(nsISupports_safe19) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + procedure GetScheme(aScheme: nsACString); safecall; + function GetDefaultPort(): PRInt32; safecall; + property DefaultPort: PRInt32 read GetDefaultPort; + function GetProtocolFlags(): PRUint32; safecall; + property ProtocolFlags: PRUint32 read GetProtocolFlags; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_safe19): nsIURI_safe19; safecall; + function NewChannel(aURI: nsIURI_safe19): nsIChannel_safe19; safecall; + function AllowPort(port: PRInt32; const scheme: PAnsiChar): PRBool; safecall; + end; + + nsIRequestObserver_safe19 = interface(nsISupports_safe19) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + procedure OnStartRequest(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19); safecall; + procedure OnStopRequest(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19; aStatusCode: nsresult); safecall; + end; + + nsIScriptableInputStream_safe19 = interface(nsISupports_safe19) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + procedure Close(); safecall; + procedure Init(aInputStream: nsIInputStream_safe19); safecall; + function Available(): PRUint32; safecall; + function Read(aCount: PRUint32): PAnsiChar; safecall; + end; + + nsISecurityWarningDialogs_safe19 = interface(nsISupports_safe19) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_safe19): PRBool; safecall; + end; + + nsISelection_safe19 = interface(nsISupports_safe19) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(): nsIDOMNode_safe19; safecall; + property AnchorNode: nsIDOMNode_safe19 read GetAnchorNode; + function GetAnchorOffset(): PRInt32; safecall; + property AnchorOffset: PRInt32 read GetAnchorOffset; + function GetFocusNode(): nsIDOMNode_safe19; safecall; + property FocusNode: nsIDOMNode_safe19 read GetFocusNode; + function GetFocusOffset(): PRInt32; safecall; + property FocusOffset: PRInt32 read GetFocusOffset; + function GetIsCollapsed(): PRBool; safecall; + property IsCollapsed: PRBool read GetIsCollapsed; + function GetRangeCount(): PRInt32; safecall; + property RangeCount: PRInt32 read GetRangeCount; + function GetRangeAt(index: PRInt32): nsIDOMRange_safe19; safecall; + procedure Collapse(parentNode: nsIDOMNode_safe19; offset: PRInt32); safecall; + procedure Extend(parentNode: nsIDOMNode_safe19; offset: PRInt32); safecall; + procedure CollapseToStart(); safecall; + procedure CollapseToEnd(); safecall; + function ContainsNode(node: nsIDOMNode_safe19; partlyContained: PRBool): PRBool; safecall; + procedure SelectAllChildren(parentNode: nsIDOMNode_safe19); safecall; + procedure AddRange(range: nsIDOMRange_safe19); safecall; + procedure RemoveRange(range: nsIDOMRange_safe19); safecall; + procedure RemoveAllRanges(); safecall; + procedure DeleteFromDocument(); safecall; + procedure SelectionLanguageChange(langRTL: PRBool); safecall; + function ToString(): PWideChar; safecall; + end; + + nsIServiceManager_safe19 = interface(nsISupports_safe19) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + procedure GetService(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID): PRBool; safecall; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID): PRBool; safecall; + end; + + nsISHistory_safe19 = interface(nsISupports_safe19) + ['{9883609f-cdd8-4d83-9b55-868ff08ad433}'] + function GetCount(): PRInt32; safecall; + property Count: PRInt32 read GetCount; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetRequestedIndex(): PRInt32; safecall; + property RequestedIndex: PRInt32 read GetRequestedIndex; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool): nsIHistoryEntry_safe19; safecall; + procedure PurgeHistory(numEntries: PRInt32); safecall; + procedure AddSHistoryListener(aListener: nsISHistoryListener_safe19); safecall; + procedure RemoveSHistoryListener(aListener: nsISHistoryListener_safe19); safecall; + function GetSHistoryEnumerator(): nsISimpleEnumerator_safe19; safecall; + property SHistoryEnumerator: nsISimpleEnumerator_safe19 read GetSHistoryEnumerator; + end; + + nsISHistoryListener_safe19 = interface(nsISupports_safe19) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + procedure OnHistoryNewEntry(aNewURI: nsIURI_safe19); safecall; + function OnHistoryGoBack(aBackURI: nsIURI_safe19): PRBool; safecall; + function OnHistoryGoForward(aForwardURI: nsIURI_safe19): PRBool; safecall; + function OnHistoryReload(aReloadURI: nsIURI_safe19; aReloadFlags: PRUint32): PRBool; safecall; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_safe19): PRBool; safecall; + function OnHistoryPurge(aNumEntries: PRInt32): PRBool; safecall; + end; + + nsIStreamListener_safe19 = interface(nsIRequestObserver_safe19) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + procedure OnDataAvailable(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19; aInputStream: nsIInputStream_safe19; aOffset: PRUint32; aCount: PRUint32); safecall; + end; + + nsISupportsPrimitive_safe19 = interface(nsISupports_safe19) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + end; + + nsISupportsID_safe19 = interface(nsISupportsPrimitive_safe19) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(): PGUID; safecall; + procedure SetData(const aData: PGUID); safecall; + property Data: PGUID read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsCString_safe19 = interface(nsISupportsPrimitive_safe19) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsACString); safecall; + procedure SetData(const aData: nsACString); safecall; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsString_safe19 = interface(nsISupportsPrimitive_safe19) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function ToString(): PWideChar; safecall; + end; + + nsISupportsPRBool_safe19 = interface(nsISupportsPrimitive_safe19) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(): PRBool; safecall; + procedure SetData(aData: PRBool); safecall; + property Data: PRBool read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint8_safe19 = interface(nsISupportsPrimitive_safe19) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint8; safecall; + procedure SetData(aData: PRUint8); safecall; + property Data: PRUint8 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint16_safe19 = interface(nsISupportsPrimitive_safe19) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint16; safecall; + procedure SetData(aData: PRUint16); safecall; + property Data: PRUint16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint32_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint32; safecall; + procedure SetData(aData: PRUint32); safecall; + property Data: PRUint32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint64_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint64; safecall; + procedure SetData(aData: PRUint64); safecall; + property Data: PRUint64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRTime_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(): PRTime; safecall; + procedure SetData(aData: PRTime); safecall; + property Data: PRTime read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsChar_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(): AnsiChar; safecall; + procedure SetData(aData: AnsiChar); safecall; + property Data: AnsiChar read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt16_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt16; safecall; + procedure SetData(aData: PRInt16); safecall; + property Data: PRInt16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt32_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt32; safecall; + procedure SetData(aData: PRInt32); safecall; + property Data: PRInt32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt64_safe19 = interface(nsISupportsPrimitive_safe19) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt64; safecall; + procedure SetData(aData: PRInt64); safecall; + property Data: PRInt64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsFloat_safe19 = interface(nsISupportsPrimitive_safe19) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Single; safecall; + procedure SetData(aData: Single); safecall; + property Data: Single read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsDouble_safe19 = interface(nsISupportsPrimitive_safe19) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Double; safecall; + procedure SetData(aData: Double); safecall; + property Data: Double read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsVoid_safe19 = interface(nsISupportsPrimitive_safe19) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(): Pointer; safecall; + procedure SetData(aData: Pointer); safecall; + property Data: Pointer read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsInterfacePointer_safe19 = interface(nsISupportsPrimitive_safe19) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(): nsISupports_safe19; safecall; + procedure SetData(aData: nsISupports_safe19); safecall; + property Data: nsISupports_safe19 read GetData write SetData; + function GetDataIID(): PGUID; safecall; + procedure SetDataIID(const aDataIID: PGUID); safecall; + property DataIID: PGUID read GetDataIID write SetDataIID; + function ToString(): PAnsiChar; safecall; + end; + + nsITooltipListener_safe19 = interface(nsISupports_safe19) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; + procedure OnHideTooltip(); safecall; + end; + + nsITooltipTextProvider_safe19 = interface(nsISupports_safe19) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_safe19; out aText: PWideChar): PRBool; safecall; + end; + + nsITraceRefcnt_safe19 = interface(nsISupports_safe19) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + procedure LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar); safecall; + procedure LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_safe19); safecall; + procedure LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_safe19); safecall; + end; + + nsIUnicharStreamListener_safe19 = interface(nsIRequestObserver_safe19) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + procedure OnUnicharDataAvailable(aRequest: nsIRequest_safe19; aContext: nsISupports_safe19; const aData: nsAString); safecall; + end; + + nsIUploadChannel_safe19 = interface(nsISupports_safe19) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + procedure SetUploadStream(aStream: nsIInputStream_safe19; const aContentType: nsACString; aContentLength: PRInt32); safecall; + function GetUploadStream(): nsIInputStream_safe19; safecall; + property UploadStream: nsIInputStream_safe19 read GetUploadStream; + end; + + nsIURIContentListener_safe19 = interface(nsISupports_safe19) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_safe19): PRBool; safecall; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_safe19; out aContentHandler: nsIStreamListener_safe19): PRBool; safecall; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function GetLoadCookie(): nsISupports_safe19; safecall; + procedure SetLoadCookie(aLoadCookie: nsISupports_safe19); safecall; + property LoadCookie: nsISupports_safe19 read GetLoadCookie write SetLoadCookie; + function GetParentContentListener(): nsIURIContentListener_safe19; safecall; + procedure SetParentContentListener(aParentContentListener: nsIURIContentListener_safe19); safecall; + property ParentContentListener: nsIURIContentListener_safe19 read GetParentContentListener write SetParentContentListener; + end; + + nsIWeakReference_safe19 = interface(nsISupports_safe19) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + procedure QueryReferent(constref uuid: TGUID; out _result); safecall; + end; + + nsISupportsWeakReference_safe19 = interface(nsISupports_safe19) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(): nsIWeakReference_safe19; safecall; + end; + + nsIWebBrowser_safe19 = interface(nsISupports_safe19) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + procedure AddWebBrowserListener(aListener: nsIWeakReference_safe19; constref aIID: TGUID); safecall; + procedure RemoveWebBrowserListener(aListener: nsIWeakReference_safe19; constref aIID: TGUID); safecall; + function GetContainerWindow(): nsIWebBrowserChrome_safe19; safecall; + procedure SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_safe19); safecall; + property ContainerWindow: nsIWebBrowserChrome_safe19 read GetContainerWindow write SetContainerWindow; + function GetParentURIContentListener(): nsIURIContentListener_safe19; safecall; + procedure SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_safe19); safecall; + property ParentURIContentListener: nsIURIContentListener_safe19 read GetParentURIContentListener write SetParentURIContentListener; + function GetContentDOMWindow(): nsIDOMWindow_safe19; safecall; + property ContentDOMWindow: nsIDOMWindow_safe19 read GetContentDOMWindow; + end; + + nsIWebBrowserChrome_safe19 = interface(nsISupports_safe19) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall; + function GetWebBrowser(): nsIWebBrowser_safe19; safecall; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser_safe19); safecall; + property WebBrowser: nsIWebBrowser_safe19 read GetWebBrowser write SetWebBrowser; + function GetChromeFlags(): PRUint32; safecall; + procedure SetChromeFlags(aChromeFlags: PRUint32); safecall; + property ChromeFlags: PRUint32 read GetChromeFlags write SetChromeFlags; + procedure DestroyBrowserWindow(); safecall; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall; + procedure ShowAsModal(); safecall; + function IsWindowModal(): PRBool; safecall; + procedure ExitModalEventLoop(aStatus: nsresult); safecall; + end; + + nsIWebBrowserChromeFocus_safe19 = interface(nsISupports_safe19) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + procedure FocusNextElement(); safecall; + procedure FocusPrevElement(); safecall; + end; + + nsIWebBrowserFind_safe19 = interface(nsISupports_safe19) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(): PRBool; safecall; + function GetSearchString(): PWideChar; safecall; + procedure SetSearchString(const aSearchString: PWideChar); safecall; + property SearchString: PWideChar read GetSearchString write SetSearchString; + function GetFindBackwards(): PRBool; safecall; + procedure SetFindBackwards(aFindBackwards: PRBool); safecall; + property FindBackwards: PRBool read GetFindBackwards write SetFindBackwards; + function GetWrapFind(): PRBool; safecall; + procedure SetWrapFind(aWrapFind: PRBool); safecall; + property WrapFind: PRBool read GetWrapFind write SetWrapFind; + function GetEntireWord(): PRBool; safecall; + procedure SetEntireWord(aEntireWord: PRBool); safecall; + property EntireWord: PRBool read GetEntireWord write SetEntireWord; + function GetMatchCase(): PRBool; safecall; + procedure SetMatchCase(aMatchCase: PRBool); safecall; + property MatchCase: PRBool read GetMatchCase write SetMatchCase; + function GetSearchFrames(): PRBool; safecall; + procedure SetSearchFrames(aSearchFrames: PRBool); safecall; + property SearchFrames: PRBool read GetSearchFrames write SetSearchFrames; + end; + + nsIWebBrowserFindInFrames_safe19 = interface(nsISupports_safe19) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(): nsIDOMWindow_safe19; safecall; + procedure SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_safe19); safecall; + property CurrentSearchFrame: nsIDOMWindow_safe19 read GetCurrentSearchFrame write SetCurrentSearchFrame; + function GetRootSearchFrame(): nsIDOMWindow_safe19; safecall; + procedure SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_safe19); safecall; + property RootSearchFrame: nsIDOMWindow_safe19 read GetRootSearchFrame write SetRootSearchFrame; + function GetSearchSubframes(): PRBool; safecall; + procedure SetSearchSubframes(aSearchSubframes: PRBool); safecall; + property SearchSubframes: PRBool read GetSearchSubframes write SetSearchSubframes; + function GetSearchParentFrames(): PRBool; safecall; + procedure SetSearchParentFrames(aSearchParentFrames: PRBool); safecall; + property SearchParentFrames: PRBool read GetSearchParentFrames write SetSearchParentFrames; + end; + + nsIWebBrowserFocus_safe19 = interface(nsISupports_safe19) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + procedure Activate(); safecall; + procedure Deactivate(); safecall; + procedure SetFocusAtFirstElement(); safecall; + procedure SetFocusAtLastElement(); safecall; + function GetFocusedWindow(): nsIDOMWindow_safe19; safecall; + procedure SetFocusedWindow(aFocusedWindow: nsIDOMWindow_safe19); safecall; + property FocusedWindow: nsIDOMWindow_safe19 read GetFocusedWindow write SetFocusedWindow; + function GetFocusedElement(): nsIDOMElement_safe19; safecall; + procedure SetFocusedElement(aFocusedElement: nsIDOMElement_safe19); safecall; + property FocusedElement: nsIDOMElement_safe19 read GetFocusedElement write SetFocusedElement; + end; + + nsIWebBrowserPrint_safe19 = interface(nsISupports_safe19) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(): nsIPrintSettings_safe19; safecall; + property GlobalPrintSettings: nsIPrintSettings_safe19 read GetGlobalPrintSettings; + function GetCurrentPrintSettings(): nsIPrintSettings_safe19; safecall; + property CurrentPrintSettings: nsIPrintSettings_safe19 read GetCurrentPrintSettings; + function GetCurrentChildDOMWindow(): nsIDOMWindow_safe19; safecall; + property CurrentChildDOMWindow: nsIDOMWindow_safe19 read GetCurrentChildDOMWindow; + function GetDoingPrint(): PRBool; safecall; + property DoingPrint: PRBool read GetDoingPrint; + function GetDoingPrintPreview(): PRBool; safecall; + property DoingPrintPreview: PRBool read GetDoingPrintPreview; + function GetIsFramesetDocument(): PRBool; safecall; + property IsFramesetDocument: PRBool read GetIsFramesetDocument; + function GetIsFramesetFrameSelected(): PRBool; safecall; + property IsFramesetFrameSelected: PRBool read GetIsFramesetFrameSelected; + function GetIsIFrameSelected(): PRBool; safecall; + property IsIFrameSelected: PRBool read GetIsIFrameSelected; + function GetIsRangeSelection(): PRBool; safecall; + property IsRangeSelection: PRBool read GetIsRangeSelection; + function GetPrintPreviewNumPages(): PRInt32; safecall; + property PrintPreviewNumPages: PRInt32 read GetPrintPreviewNumPages; + procedure Print(aThePrintSettings: nsIPrintSettings_safe19; aWPListener: nsIWebProgressListener_safe19); safecall; + procedure PrintPreview(aThePrintSettings: nsIPrintSettings_safe19; aChildDOMWin: nsIDOMWindow_safe19; aWPListener: nsIWebProgressListener_safe19); safecall; + procedure PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32); safecall; + procedure Cancel(); safecall; + procedure EnumerateDocumentNames(out aCount: PRUint32; out aResult_array); safecall; + procedure ExitPrintPreview(); safecall; + end; + + nsIWebBrowserSetup_safe19 = interface(nsISupports_safe19) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + procedure SetProperty(aId: PRUint32; aValue: PRUint32); safecall; + end; + + nsIWebBrowserStream_safe19 = interface(nsISupports_safe19) + ['{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'] + procedure OpenStream(aBaseURI: nsIURI_safe19; const aContentType: nsACString); safecall; + procedure AppendToStream(const aData_array; aLen: PRUint32); safecall; + procedure CloseStream(); safecall; + end; + + nsIWebProgress_safe19 = interface(nsISupports_safe19) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + procedure AddProgressListener(aListener: nsIWebProgressListener_safe19; aNotifyMask: PRUint32); safecall; + procedure RemoveProgressListener(aListener: nsIWebProgressListener_safe19); safecall; + function GetDOMWindow(): nsIDOMWindow_safe19; safecall; + property DOMWindow: nsIDOMWindow_safe19 read GetDOMWindow; + function GetIsLoadingDocument(): PRBool; safecall; + property IsLoadingDocument: PRBool read GetIsLoadingDocument; + end; + + nsIWebProgressListener_safe19 = interface(nsISupports_safe19) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + procedure OnStateChange(aWebProgress: nsIWebProgress_safe19; aRequest: nsIRequest_safe19; aStateFlags: PRUint32; aStatus: nsresult); safecall; + procedure OnProgressChange(aWebProgress: nsIWebProgress_safe19; aRequest: nsIRequest_safe19; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); safecall; + procedure OnLocationChange(aWebProgress: nsIWebProgress_safe19; aRequest: nsIRequest_safe19; aLocation: nsIURI_safe19); safecall; + procedure OnStatusChange(aWebProgress: nsIWebProgress_safe19; aRequest: nsIRequest_safe19; aStatus: nsresult; const aMessage: PWideChar); safecall; + procedure OnSecurityChange(aWebProgress: nsIWebProgress_safe19; aRequest: nsIRequest_safe19; aState: PRUint32); safecall; + end; + + nsIWindowCreator_safe19 = interface(nsISupports_safe19) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_safe19; chromeFlags: PRUint32): nsIWebBrowserChrome_safe19; safecall; + end; + + nsIWindowWatcher_safe19 = interface(nsISupports_safe19) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_safe19; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_safe19): nsIDOMWindow_safe19; safecall; + procedure RegisterNotification(aObserver: nsIObserver_safe19); safecall; + procedure UnregisterNotification(aObserver: nsIObserver_safe19); safecall; + function GetWindowEnumerator(): nsISimpleEnumerator_safe19; safecall; + function GetNewPrompter(aParent: nsIDOMWindow_safe19): nsIPrompt_safe19; safecall; + function GetNewAuthPrompter(aParent: nsIDOMWindow_safe19): nsIAuthPrompt_safe19; safecall; + procedure SetWindowCreator(creator: nsIWindowCreator_safe19); safecall; + function GetChromeForWindow(aWindow: nsIDOMWindow_safe19): nsIWebBrowserChrome_safe19; safecall; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_safe19): nsIDOMWindow_safe19; safecall; + function GetActiveWindow(): nsIDOMWindow_safe19; safecall; + procedure SetActiveWindow(aActiveWindow: nsIDOMWindow_safe19); safecall; + property ActiveWindow: nsIDOMWindow_safe19 read GetActiveWindow write SetActiveWindow; + end; + + nsIX509Cert_safe19 = interface(nsISupports_safe19) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + procedure GetNickname(aNickname: nsAString); safecall; + procedure GetEmailAddress(aEmailAddress: nsAString); safecall; + procedure GetEmailAddresses(out length: PRUint32; out addresses_array); safecall; + function ContainsEmailAddress(const aEmailAddress: nsAString): PRBool; safecall; + procedure GetSubjectName(aSubjectName: nsAString); safecall; + procedure GetCommonName(aCommonName: nsAString); safecall; + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + procedure GetSha1Fingerprint(aSha1Fingerprint: nsAString); safecall; + procedure GetMd5Fingerprint(aMd5Fingerprint: nsAString); safecall; + procedure GetTokenName(aTokenName: nsAString); safecall; + procedure GetIssuerName(aIssuerName: nsAString); safecall; + procedure GetSerialNumber(aSerialNumber: nsAString); safecall; + procedure GetIssuerCommonName(aIssuerCommonName: nsAString); safecall; + procedure GetIssuerOrganization(aIssuerOrganization: nsAString); safecall; + procedure GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString); safecall; + function GetIssuer(): nsIX509Cert_safe19; safecall; + property Issuer: nsIX509Cert_safe19 read GetIssuer; + function GetValidity(): nsIX509CertValidity_safe19; safecall; + property Validity: nsIX509CertValidity_safe19 read GetValidity; + function GetDbKey(): PAnsiChar; safecall; + property DbKey: PAnsiChar read GetDbKey; + function GetWindowTitle(): PAnsiChar; safecall; + property WindowTitle: PAnsiChar read GetWindowTitle; + function GetChain(): nsIArray_safe19; safecall; + procedure GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array); safecall; + procedure GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString); safecall; + function VerifyForUsage(usage: PRUint32): PRUint32; safecall; + function GetASN1Structure(): nsIASN1Object_safe19; safecall; + property ASN1Structure: nsIASN1Object_safe19 read GetASN1Structure; + procedure GetRawDER(out length: PRUint32; out data_array); safecall; + function Equals(other: nsIX509Cert_safe19): PRBool; safecall; + end; + + nsIX509CertDB_safe19 = interface(nsISupports_safe19) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_safe19; const aNickname: nsAString): nsIX509Cert_safe19; safecall; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_safe19): nsIX509Cert_safe19; safecall; + procedure FindCertNicknames(aToken: nsISupports_safe19; aType: PRUint32; out count: PRUint32; out certNameList_array); safecall; + function FindEmailEncryptionCert(const aNickname: nsAString): nsIX509Cert_safe19; safecall; + function FindEmailSigningCert(const aNickname: nsAString): nsIX509Cert_safe19; safecall; + function FindCertByEmailAddress(aToken: nsISupports_safe19; const aEmailAddress: PAnsiChar): nsIX509Cert_safe19; safecall; + procedure ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_safe19); safecall; + procedure ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe19); safecall; + procedure ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe19); safecall; + procedure ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_safe19); safecall; + procedure DeleteCertificate(aCert: nsIX509Cert_safe19); safecall; + procedure SetCertTrust(cert: nsIX509Cert_safe19; _type: PRUint32; trust: PRUint32); safecall; + function IsCertTrusted(cert: nsIX509Cert_safe19; certType: PRUint32; trustType: PRUint32): PRBool; safecall; + procedure ImportCertsFromFile(aToken: nsISupports_safe19; aFile: nsILocalFile_safe19; aType: PRUint32); safecall; + procedure ImportPKCS12File(aToken: nsISupports_safe19; aFile: nsILocalFile_safe19); safecall; + procedure ExportPKCS12File(aToken: nsISupports_safe19; aFile: nsILocalFile_safe19; count: PRUint32; const aCerts_array); safecall; + function GetOCSPResponders(): nsIArray_safe19; safecall; + function GetIsOcspOn(): PRBool; safecall; + property IsOcspOn: PRBool read GetIsOcspOn; + function ConstructX509FromBase64(const base64: PAnsiChar): nsIX509Cert_safe19; safecall; + end; + + nsIX509CertValidity_safe19 = interface(nsISupports_safe19) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(): PRTime; safecall; + property NotBefore: PRTime read GetNotBefore; + procedure GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString); safecall; + procedure GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString); safecall; + procedure GetNotBeforeGMT(aNotBeforeGMT: nsAString); safecall; + function GetNotAfter(): PRTime; safecall; + property NotAfter: PRTime read GetNotAfter; + procedure GetNotAfterLocalTime(aNotAfterLocalTime: nsAString); safecall; + procedure GetNotAfterLocalDay(aNotAfterLocalDay: nsAString); safecall; + procedure GetNotAfterGMT(aNotAfterGMT: nsAString); safecall; + end; + +implementation + +end. diff --git a/components/geckoport/version2/each-version/nsXPCOM_std17.pas b/components/geckoport/version2/each-version/nsXPCOM_std17.pas new file mode 100644 index 000000000..392416bf9 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_std17.pas @@ -0,0 +1,3519 @@ +unit nsXPCOM_std17; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsConsts, nsGeckoStrings, nsTypes; + +const + NS_ISUPPORTS_STD17_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_STD17_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_STD17_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IMUTABLEARRAY_STD17_IID: TGUID = '{2cd0b2f8-d4dd-48b8-87ba-b0200501f079}'; + + NS_IASN1OBJECT_STD17_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_STD17_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_STD17_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_STD17_ASN1_INTEGER = 2; + NS_IASN1OBJECT_STD17_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_STD17_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_STD17_ASN1_NULL = 5; + NS_IASN1OBJECT_STD17_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_STD17_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_STD17_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_STD17_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_STD17_ASN1_SET = 17; + NS_IASN1OBJECT_STD17_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_STD17_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_STD17_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_STD17_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_STD17_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_STD17_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_STD17_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_STD17_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_STD17_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_STD17_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_STD17_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_STD17_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_STD17_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_STD17_IID: TGUID = '{2f977d45-5485-11d4-87e2-0010a4e75ef2}'; + NS_IAUTHPROMPT_STD17_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_STD17_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_STD17_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_IBADCERTLISTENER_STD17_IID: TGUID = '{86960956-edb0-11d4-998b-00b0d02354a0}'; + NS_IBADCERTLISTENER_STD17_UNINIT_ADD_FLAG = -1; + NS_IBADCERTLISTENER_STD17_ADD_TRUSTED_FOR_SESSION = 1; + NS_IBADCERTLISTENER_STD17_ADD_TRUSTED_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_STD17_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_STD17_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_STD17_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_STD17_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_STD17_LOAD_NORMAL = 0; + NS_IREQUEST_STD17_LOAD_BACKGROUND = 1; + NS_IREQUEST_STD17_INHIBIT_CACHING = 128; + NS_IREQUEST_STD17_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_STD17_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_STD17_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_STD17_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_STD17_VALIDATE_NEVER = 4096; + NS_IREQUEST_STD17_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_STD17_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_STD17_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_STD17_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_STD17_LOAD_REPLACE = 262144; + NS_ICHANNEL_STD17_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_STD17_LOAD_TARGETED = 1048576; + + NS_IPROGRAMMINGLANGUAGE_STD17_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_STD17_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_STD17_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_STD17_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_STD17_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_STD17_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_STD17_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_STD17_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_STD17_JAVASCRIPT2 = 7; + + NS_ICLASSINFO_STD17_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_STD17_SINGLETON = 1; + NS_ICLASSINFO_STD17_THREADSAFE = 2; + NS_ICLASSINFO_STD17_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_STD17_DOM_OBJECT = 8; + NS_ICLASSINFO_STD17_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_STD17_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_STD17_CONTENT_NODE = 64; + NS_ICLASSINFO_STD17_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_STD17_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_STD17_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_STD17_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_STD17_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_STD17_CONTEXT_INPUT = 16; + + NS_ICOOKIE_STD17_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_STD17_STATUS_UNKNOWN = 0; + NS_ICOOKIE_STD17_STATUS_ACCEPTED = 1; + NS_ICOOKIE_STD17_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_STD17_STATUS_FLAGGED = 3; + NS_ICOOKIE_STD17_STATUS_REJECTED = 4; + NS_ICOOKIE_STD17_POLICY_UNKNOWN = 0; + NS_ICOOKIE_STD17_POLICY_NONE = 1; + NS_ICOOKIE_STD17_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_STD17_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_STD17_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_STD17_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_STD17_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_STD17_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_STD17_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_STD17_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_STD17_NORMAL_FILE_TYPE = 0; + NS_IFILE_STD17_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_STD17_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_STD17_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_STD17_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_STD17_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_STD17_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_STD17_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_STD17_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_STD17_ELEMENT_NODE = 1; + NS_IDOMNODE_STD17_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_STD17_TEXT_NODE = 3; + NS_IDOMNODE_STD17_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_STD17_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_STD17_ENTITY_NODE = 6; + NS_IDOMNODE_STD17_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_STD17_COMMENT_NODE = 8; + NS_IDOMNODE_STD17_DOCUMENT_NODE = 9; + NS_IDOMNODE_STD17_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_STD17_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_STD17_NOTATION_NODE = 12; + + NS_IDOMATTR_STD17_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_STD17_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_STD17_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_STD17_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_STD17_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_STD17_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_STD17_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_STD17_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_STD17_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_STD17_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_STD17_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_STD17_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_STD17_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_STD17_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_STD17_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_STD17_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_STD17_STYLE_RULE = 1; + NS_IDOMCSSRULE_STD17_CHARSET_RULE = 2; + NS_IDOMCSSRULE_STD17_IMPORT_RULE = 3; + NS_IDOMCSSRULE_STD17_MEDIA_RULE = 4; + NS_IDOMCSSRULE_STD17_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_STD17_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_STD17_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_STD17_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_STD17_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_STD17_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_STD17_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_STD17_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_STD17_CAPTURING_PHASE = 1; + NS_IDOMEVENT_STD17_AT_TARGET = 2; + NS_IDOMEVENT_STD17_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_STD17_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_STD17_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_STD17_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_STD17_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_STD17_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_STD17_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_STD17_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_STD17_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_STD17_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_STD17_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_STD17_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_STD17_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_STD17_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_STD17_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_STD17_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_STD17_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_STD17_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_STD17_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_STD17_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_STD17_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_STD17_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_STD17_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_STD17_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_STD17_INVALID_ACCESS_ERR = 15; + + NS_IDOMDOMIMPLEMENTATION_STD17_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_STD17_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITY_STD17_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_STD17_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_STD17_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_STD17_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_STD17_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_STD17_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_STD17_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_STD17_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_STD17_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_STD17_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_STD17_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_STD17_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_STD17_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_STD17_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_STD17_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_STD17_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_STD17_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_STD17_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_STD17_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_STD17_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_STD17_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_STD17_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_STD17_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_STD17_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_STD17_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_STD17_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_STD17_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_STD17_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_STD17_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_STD17_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_STD17_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_STD17_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_STD17_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_STD17_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_STD17_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_STD17_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_STD17_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_STD17_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_STD17_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_STD17_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_STD17_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_STD17_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_STD17_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_STD17_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_STD17_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_STD17_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_STD17_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_STD17_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_STD17_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_STD17_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_STD17_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_STD17_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_STD17_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_STD17_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_STD17_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_STD17_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_STD17_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_STD17_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_STD17_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_STD17_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_STD17_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_STD17_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_STD17_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_STD17_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_STD17_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_STD17_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_STD17_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_STD17_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMPROCESSINGINSTRUCTION_STD17_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_STD17_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_STD17_START_TO_START = 0; + NS_IDOMRANGE_STD17_START_TO_END = 1; + NS_IDOMRANGE_STD17_END_TO_END = 2; + NS_IDOMRANGE_STD17_END_TO_START = 3; + + NS_IDOMRECT_STD17_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_STD17_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTYLESHEETLIST_STD17_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_STD17_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_STD17_IID: TGUID = '{65455132-b96a-40ec-adea-52fa22b1028c}'; + + NS_IDOMWINDOWCOLLECTION_STD17_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IEMBEDDINGSITEWINDOW_STD17_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_STD17_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_STD17_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_STD17_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_STD17_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_STD17_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_STD17_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_STD17_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_STD17_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHISTORYENTRY_STD17_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_STD17_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_STD17_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_STD17_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_STD17_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_STD17_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_ILOADGROUP_STD17_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_STD17_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_STD17_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_STD17_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IOBSERVER_STD17_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_STD17_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_STD17_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPASSWORD_STD17_IID: TGUID = '{cf39c2b0-1e4b-11d5-a549-0010a401eb10}'; + + NS_IPREFBRANCH_STD17_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_STD17_PREF_INVALID = 0; + NS_IPREFBRANCH_STD17_PREF_STRING = 32; + NS_IPREFBRANCH_STD17_PREF_INT = 64; + NS_IPREFBRANCH_STD17_PREF_BOOL = 128; + + NS_IPREFLOCALIZEDSTRING_STD17_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_STD17_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_STD17_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_STD17_IID: TGUID = '{83427530-f790-11d4-a869-00105a183419}'; + NS_IPRINTSETTINGS_STD17_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_STD17_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_STD17_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_STD17_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_STD17_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_STD17_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_STD17_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_STD17_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_STD17_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_STD17_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_STD17_kInitSavePaperName = 1024; + NS_IPRINTSETTINGS_STD17_kInitSavePaperSizeUnit = 2048; + NS_IPRINTSETTINGS_STD17_kInitSavePaperSizeType = 4096; + NS_IPRINTSETTINGS_STD17_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_STD17_kInitSavePaperWidth = 16384; + NS_IPRINTSETTINGS_STD17_kInitSavePaperHeight = 32768; + NS_IPRINTSETTINGS_STD17_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_STD17_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_STD17_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_STD17_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_STD17_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_STD17_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_STD17_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_STD17_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_STD17_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_STD17_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_STD17_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_STD17_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_STD17_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_STD17_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_STD17_kPrintOddPages = 1; + NS_IPRINTSETTINGS_STD17_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_STD17_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_STD17_kRangeAllPages = 0; + NS_IPRINTSETTINGS_STD17_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_STD17_kRangeSelection = 2; + NS_IPRINTSETTINGS_STD17_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_STD17_kJustLeft = 0; + NS_IPRINTSETTINGS_STD17_kJustCenter = 1; + NS_IPRINTSETTINGS_STD17_kJustRight = 2; + NS_IPRINTSETTINGS_STD17_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_STD17_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_STD17_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_STD17_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_STD17_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_STD17_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_STD17_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_STD17_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_STD17_kNoFrames = 0; + NS_IPRINTSETTINGS_STD17_kFramesAsIs = 1; + NS_IPRINTSETTINGS_STD17_kSelectedFrame = 2; + NS_IPRINTSETTINGS_STD17_kEachFrameSep = 3; + NS_IPRINTSETTINGS_STD17_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_STD17_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_STD17_kFrameEnableAsIsAndEach = 2; + + NS_IPROFILE_STD17_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_STD17_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_STD17_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_STD17_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROMPT_STD17_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_STD17_BUTTON_POS_0 = 1; + NS_IPROMPT_STD17_BUTTON_POS_1 = 256; + NS_IPROMPT_STD17_BUTTON_POS_2 = 65536; + NS_IPROMPT_STD17_BUTTON_TITLE_OK = 1; + NS_IPROMPT_STD17_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_STD17_BUTTON_TITLE_YES = 3; + NS_IPROMPT_STD17_BUTTON_TITLE_NO = 4; + NS_IPROMPT_STD17_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_STD17_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_STD17_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_STD17_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_STD17_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_STD17_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_STD17_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_STD17_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_STD17_STD_OK_CANCEL_BUTTONS = 513; + + NS_IPROMPTSERVICE_STD17_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_STD17_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_STD17_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_STD17_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_STD17_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_STD17_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_STD17_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_STD17_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_STD17_URI_STD = 0; + NS_IPROTOCOLHANDLER_STD17_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_STD17_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_STD17_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_STD17_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_STD17_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_STD17_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_STD17_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_STD17_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_STD17_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_STD17_IID: TGUID = '{7294fe9b-14d8-11d5-9882-00c04fa02f40}'; + + NS_ISHISTORYLISTENER_STD17_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_STD17_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_STD17_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_STD17_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_STD17_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_STD17_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_STD17_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_STD17_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_STD17_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_STD17_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_STD17_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_STD17_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_STD17_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_STD17_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_STD17_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_STD17_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_STD17_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_STD17_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_STD17_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_STD17_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_STD17_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_STD17_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_STD17_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_STD17_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_STD17_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_STD17_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_STD17_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_STD17_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_STD17_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_STD17_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_STD17_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_STD17_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_STD17_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_STD17_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_STD17_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_STD17_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_STD17_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_STD17_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_STD17_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_STD17_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_STD17_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_STD17_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_STD17_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_STD17_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_STD17_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_STD17_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_STD17_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_STD17_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_STD17_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_STD17_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_STD17_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_STD17_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_STD17_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_STD17_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_STD17_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_STD17_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_STD17_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_STD17_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_STD17_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_STD17_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_STD17_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_STD17_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_STD17_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_STD17_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_STD17_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_STD17_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_STD17_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_STD17_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_STD17_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_STD17_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_STD17_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBPROGRESS_STD17_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_STD17_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_STD17_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_STD17_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_STD17_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_STD17_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_STD17_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_STD17_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_STD17_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_STD17_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_STD17_NOTIFY_ALL = 255; + + NS_IWEBPROGRESSLISTENER_STD17_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_STD17_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_STD17_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_STD17_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_STD17_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_STD17_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_STD17_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_STD17_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_STD17_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_STD17_STATE_SECURE_LOW = 131072; + + NS_IWINDOWCREATOR_STD17_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_STD17_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_STD17_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_STD17_UNKNOWN_CERT = 0; + NS_IX509CERT_STD17_CA_CERT = 1; + NS_IX509CERT_STD17_USER_CERT = 2; + NS_IX509CERT_STD17_EMAIL_CERT = 4; + NS_IX509CERT_STD17_SERVER_CERT = 8; + NS_IX509CERT_STD17_VERIFIED_OK = 0; + NS_IX509CERT_STD17_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_STD17_CERT_REVOKED = 2; + NS_IX509CERT_STD17_CERT_EXPIRED = 4; + NS_IX509CERT_STD17_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_STD17_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_STD17_ISSUER_UNKNOWN = 32; + NS_IX509CERT_STD17_INVALID_CA = 64; + NS_IX509CERT_STD17_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_STD17_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_STD17_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_STD17_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_STD17_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_STD17_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_STD17_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_STD17_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_STD17_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_STD17_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_STD17_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_STD17_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_STD17_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_STD17_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_STD17_UNTRUSTED = 0; + NS_IX509CERTDB_STD17_TRUSTED_SSL = 1; + NS_IX509CERTDB_STD17_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_STD17_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_STD17_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_std17 = interface; + mozIJSSubScriptLoader_std17 = interface; + nsIArray_std17 = interface; + nsIMutableArray_std17 = interface; + nsIASN1Object_std17 = interface; + nsIASN1Sequence_std17 = interface; + nsIAuthPrompt_std17 = interface; + nsIBadCertListener_std17 = interface; + nsISimpleEnumerator_std17 = interface; + nsICategoryManager_std17 = interface; + nsICertificateDialogs_std17 = interface; + nsIRequest_std17 = interface; + nsIChannel_std17 = interface; + nsIProgrammingLanguage_std17 = interface; + nsIClassInfo_std17 = interface; + nsIClipboardCommands_std17 = interface; + nsIComponentManager_std17 = interface; + nsIComponentRegistrar_std17 = interface; + nsIContextMenuListener_std17 = interface; + nsICookie_std17 = interface; + nsICookieManager_std17 = interface; + nsICRLInfo_std17 = interface; + nsIDebug_std17 = interface; + nsIFile_std17 = interface; + nsIDirectoryServiceProvider_std17 = interface; + nsIDirectoryServiceProvider2_std17 = interface; + nsIDirectoryService_std17 = interface; + nsIDOM3DocumentEvent_std17 = interface; + nsIDOM3EventTarget_std17 = interface; + nsIDOMAbstractView_std17 = interface; + nsIDOMNode_std17 = interface; + nsIDOMAttr_std17 = interface; + nsIDOMBarProp_std17 = interface; + nsIDOMCharacterData_std17 = interface; + nsIDOMText_std17 = interface; + nsIDOMCDATASection_std17 = interface; + nsIDOMComment_std17 = interface; + nsIDOMCounter_std17 = interface; + nsIDOMCSSValue_std17 = interface; + nsIDOMCSSPrimitiveValue_std17 = interface; + nsIDOMCSSRule_std17 = interface; + nsIDOMCSSRuleList_std17 = interface; + nsIDOMCSSStyleDeclaration_std17 = interface; + nsIDOMStyleSheet_std17 = interface; + nsIDOMCSSStyleSheet_std17 = interface; + nsIDOMCSSValueList_std17 = interface; + nsIDOMEvent_std17 = interface; + nsIDOMCustomEvent_std17 = interface; + nsIDOMDocument_std17 = interface; + nsIDOMDocumentEvent_std17 = interface; + nsIDOMDocumentFragment_std17 = interface; + nsIDOMDocumentRange_std17 = interface; + nsIDOMDocumentStyle_std17 = interface; + nsIDOMDocumentType_std17 = interface; + nsIDOMDocumentView_std17 = interface; + nsIDOMDOMException_std17 = interface; + nsIDOMDOMImplementation_std17 = interface; + nsIDOMElement_std17 = interface; + nsIDOMEntity_std17 = interface; + nsIDOMEntityReference_std17 = interface; + nsIDOMEventGroup_std17 = interface; + nsIDOMEventListener_std17 = interface; + nsIDOMEventTarget_std17 = interface; + nsIDOMHTMLElement_std17 = interface; + nsIDOMHTMLAnchorElement_std17 = interface; + nsIDOMHTMLAppletElement_std17 = interface; + nsIDOMHTMLAreaElement_std17 = interface; + nsIDOMHTMLBaseElement_std17 = interface; + nsIDOMHTMLBaseFontElement_std17 = interface; + nsIDOMHTMLBodyElement_std17 = interface; + nsIDOMHTMLBRElement_std17 = interface; + nsIDOMHTMLButtonElement_std17 = interface; + nsIDOMHTMLCollection_std17 = interface; + nsIDOMHTMLDirectoryElement_std17 = interface; + nsIDOMHTMLDivElement_std17 = interface; + nsIDOMHTMLDListElement_std17 = interface; + nsIDOMHTMLDocument_std17 = interface; + nsIDOMHTMLEmbedElement_std17 = interface; + nsIDOMHTMLFieldSetElement_std17 = interface; + nsIDOMHTMLFontElement_std17 = interface; + nsIDOMHTMLFormElement_std17 = interface; + nsIDOMHTMLFrameElement_std17 = interface; + nsIDOMHTMLFrameSetElement_std17 = interface; + nsIDOMHTMLHeadElement_std17 = interface; + nsIDOMHTMLHeadingElement_std17 = interface; + nsIDOMHTMLHRElement_std17 = interface; + nsIDOMHTMLHtmlElement_std17 = interface; + nsIDOMHTMLIFrameElement_std17 = interface; + nsIDOMHTMLImageElement_std17 = interface; + nsIDOMHTMLInputElement_std17 = interface; + nsIDOMHTMLIsIndexElement_std17 = interface; + nsIDOMHTMLLabelElement_std17 = interface; + nsIDOMHTMLLegendElement_std17 = interface; + nsIDOMHTMLLIElement_std17 = interface; + nsIDOMHTMLLinkElement_std17 = interface; + nsIDOMHTMLMapElement_std17 = interface; + nsIDOMHTMLMenuElement_std17 = interface; + nsIDOMHTMLMetaElement_std17 = interface; + nsIDOMHTMLModElement_std17 = interface; + nsIDOMHTMLObjectElement_std17 = interface; + nsIDOMHTMLOListElement_std17 = interface; + nsIDOMHTMLOptGroupElement_std17 = interface; + nsIDOMHTMLOptionElement_std17 = interface; + nsIDOMHTMLOptionsCollection_std17 = interface; + nsIDOMHTMLParagraphElement_std17 = interface; + nsIDOMHTMLParamElement_std17 = interface; + nsIDOMHTMLPreElement_std17 = interface; + nsIDOMHTMLQuoteElement_std17 = interface; + nsIDOMHTMLScriptElement_std17 = interface; + nsIDOMHTMLSelectElement_std17 = interface; + nsIDOMHTMLStyleElement_std17 = interface; + nsIDOMHTMLTableCaptionElement_std17 = interface; + nsIDOMHTMLTableCellElement_std17 = interface; + nsIDOMHTMLTableColElement_std17 = interface; + nsIDOMHTMLTableElement_std17 = interface; + nsIDOMHTMLTableRowElement_std17 = interface; + nsIDOMHTMLTableSectionElement_std17 = interface; + nsIDOMHTMLTextAreaElement_std17 = interface; + nsIDOMHTMLTitleElement_std17 = interface; + nsIDOMHTMLUListElement_std17 = interface; + nsIDOMMediaList_std17 = interface; + nsIDOMUIEvent_std17 = interface; + nsIDOMMouseEvent_std17 = interface; + nsIDOMNamedNodeMap_std17 = interface; + nsIDOMNodeList_std17 = interface; + nsIDOMNotation_std17 = interface; + nsIDOMProcessingInstruction_std17 = interface; + nsIDOMRange_std17 = interface; + nsIDOMRect_std17 = interface; + nsIDOMRGBColor_std17 = interface; + nsIDOMStyleSheetList_std17 = interface; + nsIDOMWindow_std17 = interface; + nsIDOMWindow2_std17 = interface; + nsIDOMWindowCollection_std17 = interface; + nsIEmbeddingSiteWindow_std17 = interface; + nsIFactory_std17 = interface; + nsIURI_std17 = interface; + nsIURL_std17 = interface; + nsIFileURL_std17 = interface; + nsIGlobalHistory_std17 = interface; + nsIHistoryEntry_std17 = interface; + nsIHttpChannel_std17 = interface; + nsIHttpHeaderVisitor_std17 = interface; + nsIInputStream_std17 = interface; + nsIInterfaceRequestor_std17 = interface; + nsIIOService_std17 = interface; + nsILoadGroup_std17 = interface; + nsILocalFile_std17 = interface; + nsIMemory_std17 = interface; + nsIModule_std17 = interface; + nsIObserver_std17 = interface; + nsIObserverService_std17 = interface; + nsIOutputStream_std17 = interface; + nsIPassword_std17 = interface; + nsIPrefBranch_std17 = interface; + nsIPrefLocalizedString_std17 = interface; + nsIPrefService_std17 = interface; + nsIPrintSession_std17 = interface; + nsIPrintSettings_std17 = interface; + nsIProfile_std17 = interface; + nsIProfileChangeStatus_std17 = interface; + nsIPrompt_std17 = interface; + nsIPromptService_std17 = interface; + nsIProperties_std17 = interface; + nsIProtocolHandler_std17 = interface; + nsIRequestObserver_std17 = interface; + nsIScriptableInputStream_std17 = interface; + nsISecurityWarningDialogs_std17 = interface; + nsISelection_std17 = interface; + nsIServiceManager_std17 = interface; + nsISHistory_std17 = interface; + nsISHistoryListener_std17 = interface; + nsIStreamListener_std17 = interface; + nsISupportsPrimitive_std17 = interface; + nsISupportsID_std17 = interface; + nsISupportsCString_std17 = interface; + nsISupportsString_std17 = interface; + nsISupportsPRBool_std17 = interface; + nsISupportsPRUint8_std17 = interface; + nsISupportsPRUint16_std17 = interface; + nsISupportsPRUint32_std17 = interface; + nsISupportsPRUint64_std17 = interface; + nsISupportsPRTime_std17 = interface; + nsISupportsChar_std17 = interface; + nsISupportsPRInt16_std17 = interface; + nsISupportsPRInt32_std17 = interface; + nsISupportsPRInt64_std17 = interface; + nsISupportsFloat_std17 = interface; + nsISupportsDouble_std17 = interface; + nsISupportsVoid_std17 = interface; + nsISupportsInterfacePointer_std17 = interface; + nsITooltipListener_std17 = interface; + nsITooltipTextProvider_std17 = interface; + nsITraceRefcnt_std17 = interface; + nsIUnicharStreamListener_std17 = interface; + nsIUploadChannel_std17 = interface; + nsIURIContentListener_std17 = interface; + nsIWeakReference_std17 = interface; + nsISupportsWeakReference_std17 = interface; + nsIWebBrowser_std17 = interface; + nsIWebBrowserChrome_std17 = interface; + nsIWebBrowserChromeFocus_std17 = interface; + nsIWebBrowserFind_std17 = interface; + nsIWebBrowserFindInFrames_std17 = interface; + nsIWebBrowserFocus_std17 = interface; + nsIWebBrowserPrint_std17 = interface; + nsIWebBrowserSetup_std17 = interface; + nsIWebProgress_std17 = interface; + nsIWebProgressListener_std17 = interface; + nsIWindowCreator_std17 = interface; + nsIWindowWatcher_std17 = interface; + nsIX509Cert_std17 = interface; + nsIX509CertDB_std17 = interface; + nsIX509CertValidity_std17 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_std17; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std17; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_std17 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_std17 = interface(nsISupports_std17) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + function LoadSubScript(const url: PWideChar): nsresult; extdecl; + end; + + nsIArray_std17 = interface(nsISupports_std17) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result): nsresult; extdecl; + function IndexOf(startIndex: PRUint32; element: nsISupports_std17; out _retval: PRUint32): nsresult; extdecl; + function Enumerate(out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + end; + + nsIMutableArray_std17 = interface(nsIArray_std17) + ['{2cd0b2f8-d4dd-48b8-87ba-b0200501f079}'] + function AppendElement(element: nsISupports_std17; weak: PRBool): nsresult; extdecl; + function RemoveElementAt(index: PRUint32): nsresult; extdecl; + function InsertElementAt(element: nsISupports_std17; index: PRUint32; weak: PRBool): nsresult; extdecl; + function Clear(): nsresult; extdecl; + end; + + nsIASN1Object_std17 = interface(nsISupports_std17) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(out aType: PRUint32): Longword; extdecl; + function SetType(aType: PRUint32): Longword; extdecl; + function GetTag(out aTag: PRUint32): Longword; extdecl; + function SetTag(aTag: PRUint32): Longword; extdecl; + function GetDisplayName(aDisplayName: nsAString): Longword; extdecl; + function SetDisplayName(const aDisplayName: nsAString): Longword; extdecl; + function GetDisplayValue(aDisplayValue: nsAString): Longword; extdecl; + function SetDisplayValue(const aDisplayValue: nsAString): Longword; extdecl; + end; + + nsIASN1Sequence_std17 = interface(nsIASN1Object_std17) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(out aASN1Objects: nsIMutableArray_std17): Longword; extdecl; + function SetASN1Objects(aASN1Objects: nsIMutableArray_std17): Longword; extdecl; + function GetIsValidContainer(out aIsValidContainer: PRBool): Longword; extdecl; + function SetIsValidContainer(aIsValidContainer: PRBool): Longword; extdecl; + function GetIsExpanded(out aIsExpanded: PRBool): Longword; extdecl; + function SetIsExpanded(aIsExpanded: PRBool): Longword; extdecl; + end; + + nsIAuthPrompt_std17 = interface(nsISupports_std17) + ['{2f977d45-5485-11d4-87e2-0010a4e75ef2}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIBadCertListener_std17 = interface(nsISupports_std17) + ['{86960956-edb0-11d4-998b-00b0d02354a0}'] + function ConfirmUnknownIssuer(socketInfo: nsIInterfaceRequestor_std17; cert: nsIX509Cert_std17; out certAddType: PRInt16; out _retval: PRBool): nsresult; extdecl; + function ConfirmMismatchDomain(socketInfo: nsIInterfaceRequestor_std17; const targetURL: nsACString; cert: nsIX509Cert_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmCertExpired(socketInfo: nsIInterfaceRequestor_std17; cert: nsIX509Cert_std17; out _retval: PRBool): nsresult; extdecl; + function NotifyCrlNextupdate(socketInfo: nsIInterfaceRequestor_std17; const targetURL: nsACString; cert: nsIX509Cert_std17): nsresult; extdecl; + end; + + nsISimpleEnumerator_std17 = interface(nsISupports_std17) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(out _retval: PRBool): nsresult; extdecl; + function GetNext(out _retval: nsISupports_std17): nsresult; extdecl; + end; + + nsICategoryManager_std17 = interface(nsISupports_std17) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool; out _retval: PAnsiChar): nsresult; extdecl; + function DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool): nsresult; extdecl; + function DeleteCategory(const aCategory: PAnsiChar): nsresult; extdecl; + function EnumerateCategory(const aCategory: PAnsiChar; out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + function EnumerateCategories(out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + end; + + nsICertificateDialogs_std17 = interface(nsISupports_std17) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_std17; cert: nsIX509Cert_std17; out trust: PRUint32; out _retval: PRBool): nsresult; extdecl; + function NotifyCACertExists(ctx: nsIInterfaceRequestor_std17): nsresult; extdecl; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std17; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std17; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function ViewCert(ctx: nsIInterfaceRequestor_std17; cert: nsIX509Cert_std17): nsresult; extdecl; + function CrlImportStatusDialog(ctx: nsIInterfaceRequestor_std17; crl: nsICRLInfo_std17): nsresult; extdecl; + end; + + nsIRequest_std17 = interface(nsISupports_std17) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + function GetName(aName: nsACString): Longword; extdecl; + function IsPending(out _retval: PRBool): nsresult; extdecl; + function GetStatus(out aStatus: nsresult): Longword; extdecl; + function Cancel(aStatus: nsresult): nsresult; extdecl; + function Suspend(): nsresult; extdecl; + function Resume(): nsresult; extdecl; + function GetLoadGroup(out aLoadGroup: nsILoadGroup_std17): Longword; extdecl; + function SetLoadGroup(aLoadGroup: nsILoadGroup_std17): Longword; extdecl; + function GetLoadFlags(out aLoadFlags: nsLoadFlags): Longword; extdecl; + function SetLoadFlags(aLoadFlags: nsLoadFlags): Longword; extdecl; + end; + + nsIChannel_std17 = interface(nsIRequest_std17) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(out aOriginalURI: nsIURI_std17): Longword; extdecl; + function SetOriginalURI(aOriginalURI: nsIURI_std17): Longword; extdecl; + function GetURI(out aURI: nsIURI_std17): Longword; extdecl; + function GetOwner(out aOwner: nsISupports_std17): Longword; extdecl; + function SetOwner(aOwner: nsISupports_std17): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std17): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std17): Longword; extdecl; + function GetSecurityInfo(out aSecurityInfo: nsISupports_std17): Longword; extdecl; + function GetContentType(aContentType: nsACString): Longword; extdecl; + function SetContentType(const aContentType: nsACString): Longword; extdecl; + function GetContentCharset(aContentCharset: nsACString): Longword; extdecl; + function SetContentCharset(const aContentCharset: nsACString): Longword; extdecl; + function GetContentLength(out aContentLength: PRInt32): Longword; extdecl; + function SetContentLength(aContentLength: PRInt32): Longword; extdecl; + function Open(out _retval: nsIInputStream_std17): nsresult; extdecl; + function AsyncOpen(aListener: nsIStreamListener_std17; aContext: nsISupports_std17): nsresult; extdecl; + end; + + nsIProgrammingLanguage_std17 = interface(nsISupports_std17) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIClassInfo_std17 = interface(nsISupports_std17) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + function GetInterfaces(out count: PRUint32; out _array_array): nsresult; extdecl; + function GetHelperForLanguage(language: PRUint32; out _retval: nsISupports_std17): nsresult; extdecl; + function GetContractID(out aContractID: PAnsiChar): Longword; extdecl; + function GetClassDescription(out aClassDescription: PAnsiChar): Longword; extdecl; + function GetClassID(out aClassID: PGUID): Longword; extdecl; + function GetImplementationLanguage(out aImplementationLanguage: PRUint32): Longword; extdecl; + function GetFlags(out aFlags: PRUint32): Longword; extdecl; + function GetClassIDNoAlloc(out aClassIDNoAlloc: TGUID): Longword; extdecl; + end; + + nsIClipboardCommands_std17 = interface(nsISupports_std17) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(out _retval: PRBool): nsresult; extdecl; + function CanCopySelection(out _retval: PRBool): nsresult; extdecl; + function CanCopyLinkLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageContents(out _retval: PRBool): nsresult; extdecl; + function CanPaste(out _retval: PRBool): nsresult; extdecl; + function CutSelection(): nsresult; extdecl; + function CopySelection(): nsresult; extdecl; + function CopyLinkLocation(): nsresult; extdecl; + function CopyImageLocation(): nsresult; extdecl; + function CopyImageContents(): nsresult; extdecl; + function Paste(): nsresult; extdecl; + function SelectAll(): nsresult; extdecl; + function SelectNone(): nsresult; extdecl; + end; + + nsIComponentManager_std17 = interface(nsISupports_std17) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + function GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_std17; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_std17; constref aIID: TGUID; out _result): nsresult; extdecl; + end; + + nsIComponentRegistrar_std17 = interface(nsISupports_std17) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + function AutoRegister(aSpec: nsIFile_std17): nsresult; extdecl; + function AutoUnregister(aSpec: nsIFile_std17): nsresult; extdecl; + function RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_std17): nsresult; extdecl; + function UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_std17): nsresult; extdecl; + function RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_std17; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_std17): nsresult; extdecl; + function IsCIDRegistered(constref aClass: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsContractIDRegistered(const aContractID: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function EnumerateCIDs(out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + function EnumerateContractIDs(out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + function CIDToContractID(constref aClass: TGUID; out _retval: PAnsiChar): nsresult; extdecl; + function ContractIDToCID(const aContractID: PAnsiChar; out _retval: PGUID): nsresult; extdecl; + end; + + nsIContextMenuListener_std17 = interface(nsISupports_std17) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + function OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_std17; aNode: nsIDOMNode_std17): nsresult; extdecl; + end; + + nsICookie_std17 = interface(nsISupports_std17) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + function GetName(aName: nsACString): Longword; extdecl; + function GetValue(aValue: nsACString): Longword; extdecl; + function GetIsDomain(out aIsDomain: PRBool): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function GetIsSecure(out aIsSecure: PRBool): Longword; extdecl; + function GetExpires(out aExpires: PRUint64): Longword; extdecl; + function GetStatus(out aStatus: nsCookieStatus): Longword; extdecl; + function GetPolicy(out aPolicy: nsCookiePolicy): Longword; extdecl; + end; + + nsICookieManager_std17 = interface(nsISupports_std17) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + function RemoveAll(): nsresult; extdecl; + function GetEnumerator(out aEnumerator: nsISimpleEnumerator_std17): Longword; extdecl; + function Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool): nsresult; extdecl; + end; + + nsICRLInfo_std17 = interface(nsISupports_std17) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetLastUpdate(out aLastUpdate: PRTime): Longword; extdecl; + function GetNextUpdate(out aNextUpdate: PRTime): Longword; extdecl; + function GetLastUpdateLocale(aLastUpdateLocale: nsAString): Longword; extdecl; + function GetNextUpdateLocale(aNextUpdateLocale: nsAString): Longword; extdecl; + function GetNameInDb(aNameInDb: nsAString): Longword; extdecl; + function GetLastFetchURL(aLastFetchURL: nsACString): Longword; extdecl; + end; + + nsIDebug_std17 = interface(nsISupports_std17) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + function Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Break(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Abort(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + end; + + nsIFile_std17 = interface(nsISupports_std17) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + function Append(const node: nsAString): nsresult; extdecl; + function AppendNative(const node: nsACString): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function Create(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function GetLeafName(aLeafName: nsAString): Longword; extdecl; + function SetLeafName(const aLeafName: nsAString): Longword; extdecl; + function GetNativeLeafName(aNativeLeafName: nsACString): Longword; extdecl; + function SetNativeLeafName(const aNativeLeafName: nsACString): Longword; extdecl; + function CopyTo(newParentDir: nsIFile_std17; const newName: nsAString): nsresult; extdecl; + function CopyToNative(newParentDir: nsIFile_std17; const newName: nsACString): nsresult; extdecl; + function CopyToFollowingLinks(newParentDir: nsIFile_std17; const newName: nsAString): nsresult; extdecl; + function CopyToFollowingLinksNative(newParentDir: nsIFile_std17; const newName: nsACString): nsresult; extdecl; + function MoveTo(newParentDir: nsIFile_std17; const newName: nsAString): nsresult; extdecl; + function MoveToNative(newParentDir: nsIFile_std17; const newName: nsACString): nsresult; extdecl; + function Remove(recursive: PRBool): nsresult; extdecl; + function GetPermissions(out aPermissions: PRUint32): Longword; extdecl; + function SetPermissions(aPermissions: PRUint32): Longword; extdecl; + function GetPermissionsOfLink(out aPermissionsOfLink: PRUint32): Longword; extdecl; + function SetPermissionsOfLink(aPermissionsOfLink: PRUint32): Longword; extdecl; + function GetLastModifiedTime(out aLastModifiedTime: PRInt64): Longword; extdecl; + function SetLastModifiedTime(aLastModifiedTime: PRInt64): Longword; extdecl; + function GetLastModifiedTimeOfLink(out aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function GetFileSize(out aFileSize: PRInt64): Longword; extdecl; + function SetFileSize(aFileSize: PRInt64): Longword; extdecl; + function GetFileSizeOfLink(out aFileSizeOfLink: PRInt64): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetNativeTarget(aNativeTarget: nsACString): Longword; extdecl; + function GetPath(aPath: nsAString): Longword; extdecl; + function GetNativePath(aNativePath: nsACString): Longword; extdecl; + function Exists(out _retval: PRBool): nsresult; extdecl; + function IsWritable(out _retval: PRBool): nsresult; extdecl; + function IsReadable(out _retval: PRBool): nsresult; extdecl; + function IsExecutable(out _retval: PRBool): nsresult; extdecl; + function IsHidden(out _retval: PRBool): nsresult; extdecl; + function IsDirectory(out _retval: PRBool): nsresult; extdecl; + function IsFile(out _retval: PRBool): nsresult; extdecl; + function IsSymlink(out _retval: PRBool): nsresult; extdecl; + function IsSpecial(out _retval: PRBool): nsresult; extdecl; + function CreateUnique(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function Clone(out _retval: nsIFile_std17): nsresult; extdecl; + function Equals(inFile: nsIFile_std17; out _retval: PRBool): nsresult; extdecl; + function _Contains(inFile: nsIFile_std17; recur: PRBool; out _retval: PRBool): nsresult; extdecl; + function GetParent(out aParent: nsIFile_std17): Longword; extdecl; + function GetDirectoryEntries(out aDirectoryEntries: nsISimpleEnumerator_std17): Longword; extdecl; + end; + + nsIDirectoryServiceProvider_std17 = interface(nsISupports_std17) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool; out _retval: nsIFile_std17): nsresult; extdecl; + end; + + nsIDirectoryServiceProvider2_std17 = interface(nsIDirectoryServiceProvider_std17) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar; out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + end; + + nsIDirectoryService_std17 = interface(nsISupports_std17) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + function Init(): nsresult; extdecl; + function RegisterProvider(prov: nsIDirectoryServiceProvider_std17): nsresult; extdecl; + function UnregisterProvider(prov: nsIDirectoryServiceProvider_std17): nsresult; extdecl; + end; + + nsIDOM3DocumentEvent_std17 = interface(nsISupports_std17) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(out _retval: nsIDOMEventGroup_std17): nsresult; extdecl; + end; + + nsIDOM3EventTarget_std17 = interface(nsISupports_std17) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + function AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std17; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std17): nsresult; extdecl; + function RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std17; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std17): nsresult; extdecl; + function CanTrigger(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + function IsRegisteredHere(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAbstractView_std17 = interface(nsISupports_std17) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(out aDocument: nsIDOMDocumentView_std17): Longword; extdecl; + end; + + nsIDOMNode_std17 = interface(nsISupports_std17) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + function GetNodeName(aNodeName: nsAString): Longword; extdecl; + function GetNodeValue(aNodeValue: nsAString): Longword; extdecl; + function SetNodeValue(const aNodeValue: nsAString): Longword; extdecl; + function GetNodeType(out aNodeType: PRUint16): Longword; extdecl; + function GetParentNode(out aParentNode: nsIDOMNode_std17): Longword; extdecl; + function GetChildNodes(out aChildNodes: nsIDOMNodeList_std17): Longword; extdecl; + function GetFirstChild(out aFirstChild: nsIDOMNode_std17): Longword; extdecl; + function GetLastChild(out aLastChild: nsIDOMNode_std17): Longword; extdecl; + function GetPreviousSibling(out aPreviousSibling: nsIDOMNode_std17): Longword; extdecl; + function GetNextSibling(out aNextSibling: nsIDOMNode_std17): Longword; extdecl; + function GetAttributes(out aAttributes: nsIDOMNamedNodeMap_std17): Longword; extdecl; + function GetOwnerDocument(out aOwnerDocument: nsIDOMDocument_std17): Longword; extdecl; + function InsertBefore(newChild: nsIDOMNode_std17; refChild: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function ReplaceChild(newChild: nsIDOMNode_std17; oldChild: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function RemoveChild(oldChild: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function AppendChild(newChild: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function HasChildNodes(out _retval: PRBool): nsresult; extdecl; + function CloneNode(deep: PRBool; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function IsSupported(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetNamespaceURI(aNamespaceURI: nsAString): Longword; extdecl; + function GetPrefix(aPrefix: nsAString): Longword; extdecl; + function SetPrefix(const aPrefix: nsAString): Longword; extdecl; + function GetLocalName(aLocalName: nsAString): Longword; extdecl; + function HasAttributes(out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAttr_std17 = interface(nsIDOMNode_std17) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetSpecified(out aSpecified: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetOwnerElement(out aOwnerElement: nsIDOMElement_std17): Longword; extdecl; + end; + + nsIDOMBarProp_std17 = interface(nsISupports_std17) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(out aVisible: PRBool): Longword; extdecl; + function SetVisible(aVisible: PRBool): Longword; extdecl; + end; + + nsIDOMCharacterData_std17 = interface(nsIDOMNode_std17) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString): nsresult; extdecl; + function AppendData(const arg: nsAString): nsresult; extdecl; + function InsertData(offset: PRUint32; const arg: nsAString): nsresult; extdecl; + function DeleteData(offset: PRUint32; count: PRUint32): nsresult; extdecl; + function ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString): nsresult; extdecl; + end; + + nsIDOMText_std17 = interface(nsIDOMCharacterData_std17) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32; out _retval: nsIDOMText_std17): nsresult; extdecl; + end; + + nsIDOMCDATASection_std17 = interface(nsIDOMText_std17) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_std17 = interface(nsIDOMCharacterData_std17) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_std17 = interface(nsISupports_std17) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + function GetIdentifier(aIdentifier: nsAString): Longword; extdecl; + function GetListStyle(aListStyle: nsAString): Longword; extdecl; + function GetSeparator(aSeparator: nsAString): Longword; extdecl; + end; + + nsIDOMCSSValue_std17 = interface(nsISupports_std17) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetCssValueType(out aCssValueType: PRUint16): Longword; extdecl; + end; + + nsIDOMCSSPrimitiveValue_std17 = interface(nsIDOMCSSValue_std17) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(out aPrimitiveType: PRUint16): Longword; extdecl; + function SetFloatValue(unitType: PRUint16; floatValue: Single): nsresult; extdecl; + function GetFloatValue(unitType: PRUint16; out _retval: Single): nsresult; extdecl; + function SetStringValue(stringType: PRUint16; const stringValue: nsAString): nsresult; extdecl; + function GetStringValue(_retval: nsAString): nsresult; extdecl; + function GetCounterValue(out _retval: nsIDOMCounter_std17): nsresult; extdecl; + function GetRectValue(out _retval: nsIDOMRect_std17): nsresult; extdecl; + function GetRGBColorValue(out _retval: nsIDOMRGBColor_std17): nsresult; extdecl; + end; + + nsIDOMCSSRule_std17 = interface(nsISupports_std17) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(out aType: PRUint16): Longword; extdecl; + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMCSSStyleSheet_std17): Longword; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std17): Longword; extdecl; + end; + + nsIDOMCSSRuleList_std17 = interface(nsISupports_std17) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSRule_std17): nsresult; extdecl; + end; + + nsIDOMCSSStyleDeclaration_std17 = interface(nsISupports_std17) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetPropertyValue(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyCSSValue(const propertyName: nsAString; out _retval: nsIDOMCSSValue_std17): nsresult; extdecl; + function RemoveProperty(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyPriority(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std17): Longword; extdecl; + end; + + nsIDOMStyleSheet_std17 = interface(nsISupports_std17) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetOwnerNode(out aOwnerNode: nsIDOMNode_std17): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMStyleSheet_std17): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function GetMedia(out aMedia: nsIDOMMediaList_std17): Longword; extdecl; + end; + + nsIDOMCSSStyleSheet_std17 = interface(nsIDOMStyleSheet_std17) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(out aOwnerRule: nsIDOMCSSRule_std17): Longword; extdecl; + function GetCssRules(out aCssRules: nsIDOMCSSRuleList_std17): Longword; extdecl; + function InsertRule(const rule: nsAString; index: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function DeleteRule(index: PRUint32): nsresult; extdecl; + end; + + nsIDOMCSSValueList_std17 = interface(nsIDOMCSSValue_std17) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSValue_std17): nsresult; extdecl; + end; + + nsIDOMEvent_std17 = interface(nsISupports_std17) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetTarget(out aTarget: nsIDOMEventTarget_std17): Longword; extdecl; + function GetCurrentTarget(out aCurrentTarget: nsIDOMEventTarget_std17): Longword; extdecl; + function GetEventPhase(out aEventPhase: PRUint16): Longword; extdecl; + function GetBubbles(out aBubbles: PRBool): Longword; extdecl; + function GetCancelable(out aCancelable: PRBool): Longword; extdecl; + function GetTimeStamp(out aTimeStamp: DOMTimeStamp): Longword; extdecl; + function StopPropagation(): nsresult; extdecl; + function PreventDefault(): nsresult; extdecl; + function InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool): nsresult; extdecl; + end; + + nsIDOMCustomEvent_std17 = interface(nsIDOMEvent_std17) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + function SetCurrentTarget(target: nsIDOMNode_std17): nsresult; extdecl; + function SetEventPhase(phase: PRUint16): nsresult; extdecl; + end; + + nsIDOMDocument_std17 = interface(nsIDOMNode_std17) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(out aDoctype: nsIDOMDocumentType_std17): Longword; extdecl; + function GetImplementation(out aImplementation: nsIDOMDOMImplementation_std17): Longword; extdecl; + function GetDocumentElement(out aDocumentElement: nsIDOMElement_std17): Longword; extdecl; + function CreateElement(const tagName: nsAString; out _retval: nsIDOMElement_std17): nsresult; extdecl; + function CreateDocumentFragment(out _retval: nsIDOMDocumentFragment_std17): nsresult; extdecl; + function CreateTextNode(const data: nsAString; out _retval: nsIDOMText_std17): nsresult; extdecl; + function CreateComment(const data: nsAString; out _retval: nsIDOMComment_std17): nsresult; extdecl; + function CreateCDATASection(const data: nsAString; out _retval: nsIDOMCDATASection_std17): nsresult; extdecl; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString; out _retval: nsIDOMProcessingInstruction_std17): nsresult; extdecl; + function CreateAttribute(const name: nsAString; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function CreateEntityReference(const name: nsAString; out _retval: nsIDOMEntityReference_std17): nsresult; extdecl; + function GetElementsByTagName(const tagname: nsAString; out _retval: nsIDOMNodeList_std17): nsresult; extdecl; + function ImportNode(importedNode: nsIDOMNode_std17; deep: PRBool; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMElement_std17): nsresult; extdecl; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std17): nsresult; extdecl; + function GetElementById(const elementId: nsAString; out _retval: nsIDOMElement_std17): nsresult; extdecl; + end; + + nsIDOMDocumentEvent_std17 = interface(nsISupports_std17) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString; out _retval: nsIDOMEvent_std17): nsresult; extdecl; + end; + + nsIDOMDocumentFragment_std17 = interface(nsIDOMNode_std17) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_std17 = interface(nsISupports_std17) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(out _retval: nsIDOMRange_std17): nsresult; extdecl; + end; + + nsIDOMDocumentStyle_std17 = interface(nsISupports_std17) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(out aStyleSheets: nsIDOMStyleSheetList_std17): Longword; extdecl; + end; + + nsIDOMDocumentType_std17 = interface(nsIDOMNode_std17) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetEntities(out aEntities: nsIDOMNamedNodeMap_std17): Longword; extdecl; + function GetNotations(out aNotations: nsIDOMNamedNodeMap_std17): Longword; extdecl; + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetInternalSubset(aInternalSubset: nsAString): Longword; extdecl; + end; + + nsIDOMDocumentView_std17 = interface(nsISupports_std17) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(out aDefaultView: nsIDOMAbstractView_std17): Longword; extdecl; + end; + + nsIDOMDOMException_std17 = interface(nsISupports_std17) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(out aCode: PRUint32): Longword; extdecl; + end; + + nsIDOMDOMImplementation_std17 = interface(nsISupports_std17) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString; out _retval: nsIDOMDocumentType_std17): nsresult; extdecl; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_std17; out _retval: nsIDOMDocument_std17): nsresult; extdecl; + end; + + nsIDOMElement_std17 = interface(nsIDOMNode_std17) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + function GetTagName(aTagName: nsAString): Longword; extdecl; + function GetAttribute(const name: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttribute(const name: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttribute(const name: nsAString): nsresult; extdecl; + function GetAttributeNode(const name: nsAString; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function SetAttributeNode(newAttr: nsIDOMAttr_std17; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_std17; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function GetElementsByTagName(const name: nsAString; out _retval: nsIDOMNodeList_std17): nsresult; extdecl; + function GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString): nsresult; extdecl; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_std17; out _retval: nsIDOMAttr_std17): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std17): nsresult; extdecl; + function HasAttribute(const name: nsAString; out _retval: PRBool): nsresult; extdecl; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMEntity_std17 = interface(nsIDOMNode_std17) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetNotationName(aNotationName: nsAString): Longword; extdecl; + end; + + nsIDOMEntityReference_std17 = interface(nsIDOMNode_std17) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_std17 = interface(nsISupports_std17) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_std17; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMEventListener_std17 = interface(nsISupports_std17) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + function HandleEvent(event: nsIDOMEvent_std17): nsresult; extdecl; + end; + + nsIDOMEventTarget_std17 = interface(nsISupports_std17) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + function AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_std17; useCapture: PRBool): nsresult; extdecl; + function RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_std17; useCapture: PRBool): nsresult; extdecl; + function DispatchEvent(evt: nsIDOMEvent_std17; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMHTMLElement_std17 = interface(nsIDOMElement_std17) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + function GetId(aId: nsAString): Longword; extdecl; + function SetId(const aId: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetLang(aLang: nsAString): Longword; extdecl; + function SetLang(const aLang: nsAString): Longword; extdecl; + function GetDir(aDir: nsAString): Longword; extdecl; + function SetDir(const aDir: nsAString): Longword; extdecl; + function GetClassName(aClassName: nsAString): Longword; extdecl; + function SetClassName(const aClassName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAnchorElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLAppletElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetObject(aObject: nsAString): Longword; extdecl; + function SetObject(const aObject: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAreaElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetNoHref(out aNoHref: PRBool): Longword; extdecl; + function SetNoHref(aNoHref: PRBool): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseFontElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLBodyElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + function GetALink(aALink: nsAString): Longword; extdecl; + function SetALink(const aALink: nsAString): Longword; extdecl; + function GetBackground(aBackground: nsAString): Longword; extdecl; + function SetBackground(const aBackground: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetLink(aLink: nsAString): Longword; extdecl; + function SetLink(const aLink: nsAString): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetVLink(aVLink: nsAString): Longword; extdecl; + function SetVLink(const aVLink: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBRElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + function GetClear(aClear: nsAString): Longword; extdecl; + function SetClear(const aClear: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLButtonElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLCollection_std17 = interface(nsISupports_std17) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + end; + + nsIDOMHTMLDirectoryElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDivElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLDListElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDocument_std17 = interface(nsIDOMDocument_std17) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetReferrer(aReferrer: nsAString): Longword; extdecl; + function GetDomain(aDomain: nsAString): Longword; extdecl; + function GetURL(aURL: nsAString): Longword; extdecl; + function GetBody(out aBody: nsIDOMHTMLElement_std17): Longword; extdecl; + function SetBody(aBody: nsIDOMHTMLElement_std17): Longword; extdecl; + function GetImages(out aImages: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetApplets(out aApplets: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetLinks(out aLinks: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetForms(out aForms: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetAnchors(out aAnchors: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetCookie(aCookie: nsAString): Longword; extdecl; + function SetCookie(const aCookie: nsAString): Longword; extdecl; + function Open(): nsresult; extdecl; + function Close(): nsresult; extdecl; + function Write(const text: nsAString): nsresult; extdecl; + function Writeln(const text: nsAString): nsresult; extdecl; + function GetElementsByName(const elementName: nsAString; out _retval: nsIDOMNodeList_std17): nsresult; extdecl; + end; + + nsIDOMHTMLEmbedElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFieldSetElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + end; + + nsIDOMHTMLFontElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFormElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(out aElements: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetLength(out aLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAcceptCharset(aAcceptCharset: nsAString): Longword; extdecl; + function SetAcceptCharset(const aAcceptCharset: nsAString): Longword; extdecl; + function GetAction(aAction: nsAString): Longword; extdecl; + function SetAction(const aAction: nsAString): Longword; extdecl; + function GetEnctype(aEnctype: nsAString): Longword; extdecl; + function SetEnctype(const aEnctype: nsAString): Longword; extdecl; + function GetMethod(aMethod: nsAString): Longword; extdecl; + function SetMethod(const aMethod: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function Submit(): nsresult; extdecl; + function Reset(): nsresult; extdecl; + end; + + nsIDOMHTMLFrameElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetNoResize(out aNoResize: PRBool): Longword; extdecl; + function SetNoResize(aNoResize: PRBool): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std17): Longword; extdecl; + end; + + nsIDOMHTMLFrameSetElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + function GetCols(aCols: nsAString): Longword; extdecl; + function SetCols(const aCols: nsAString): Longword; extdecl; + function GetRows(aRows: nsAString): Longword; extdecl; + function SetRows(const aRows: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + function GetProfile(aProfile: nsAString): Longword; extdecl; + function SetProfile(const aProfile: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadingElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHRElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetNoShade(out aNoShade: PRBool): Longword; extdecl; + function SetNoShade(aNoShade: PRBool): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHtmlElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + function GetVersion(aVersion: nsAString): Longword; extdecl; + function SetVersion(const aVersion: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLIFrameElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std17): Longword; extdecl; + end; + + nsIDOMHTMLImageElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetHeight(out aHeight: PRInt32): Longword; extdecl; + function SetHeight(aHeight: PRInt32): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetIsMap(out aIsMap: PRBool): Longword; extdecl; + function SetIsMap(aIsMap: PRBool): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLInputElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetDefaultChecked(out aDefaultChecked: PRBool): Longword; extdecl; + function SetDefaultChecked(aDefaultChecked: PRBool): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetAccept(aAccept: nsAString): Longword; extdecl; + function SetAccept(const aAccept: nsAString): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetChecked(out aChecked: PRBool): Longword; extdecl; + function SetChecked(aChecked: PRBool): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetSize(out aSize: PRUint32): Longword; extdecl; + function SetSize(aSize: PRUint32): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + function Click(): nsresult; extdecl; + end; + + nsIDOMHTMLIsIndexElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetPrompt(aPrompt: nsAString): Longword; extdecl; + function SetPrompt(const aPrompt: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLabelElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLegendElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLIElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(out aValue: PRInt32): Longword; extdecl; + function SetValue(aValue: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLLinkElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMapElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(out aAreas: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMenuElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLMetaElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + function GetContent(aContent: nsAString): Longword; extdecl; + function SetContent(const aContent: nsAString): Longword; extdecl; + function GetHttpEquiv(aHttpEquiv: nsAString): Longword; extdecl; + function SetHttpEquiv(const aHttpEquiv: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScheme(aScheme: nsAString): Longword; extdecl; + function SetScheme(const aScheme: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLModElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + function GetDateTime(aDateTime: nsAString): Longword; extdecl; + function SetDateTime(const aDateTime: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLObjectElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetCodeType(aCodeType: nsAString): Longword; extdecl; + function SetCodeType(const aCodeType: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetDeclare(out aDeclare: PRBool): Longword; extdecl; + function SetDeclare(aDeclare: PRBool): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetStandby(aStandby: nsAString): Longword; extdecl; + function SetStandby(const aStandby: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std17): Longword; extdecl; + end; + + nsIDOMHTMLOListElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetStart(out aStart: PRInt32): Longword; extdecl; + function SetStart(aStart: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptGroupElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetDefaultSelected(out aDefaultSelected: PRBool): Longword; extdecl; + function SetDefaultSelected(aDefaultSelected: PRBool): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + function GetSelected(out aSelected: PRBool): Longword; extdecl; + function SetSelected(aSelected: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionsCollection_std17 = interface(nsISupports_std17) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + end; + + nsIDOMHTMLParagraphElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLParamElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetValueType(aValueType: nsAString): Longword; extdecl; + function SetValueType(const aValueType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLPreElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLQuoteElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLScriptElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + function GetEvent(aEvent: nsAString): Longword; extdecl; + function SetEvent(const aEvent: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetDefer(out aDefer: PRBool): Longword; extdecl; + function SetDefer(aDefer: PRBool): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLSelectElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetSelectedIndex(out aSelectedIndex: PRInt32): Longword; extdecl; + function SetSelectedIndex(aSelectedIndex: PRInt32): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetOptions(out aOptions: nsIDOMHTMLOptionsCollection_std17): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMultiple(out aMultiple: PRBool): Longword; extdecl; + function SetMultiple(aMultiple: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function Add(element: nsIDOMHTMLElement_std17; before: nsIDOMHTMLElement_std17): nsresult; extdecl; + function Remove(index: PRInt32): nsresult; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLStyleElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCaptionElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCellElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(out aCellIndex: PRInt32): Longword; extdecl; + function GetAbbr(aAbbr: nsAString): Longword; extdecl; + function SetAbbr(const aAbbr: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAxis(aAxis: nsAString): Longword; extdecl; + function SetAxis(const aAxis: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetColSpan(out aColSpan: PRInt32): Longword; extdecl; + function SetColSpan(aColSpan: PRInt32): Longword; extdecl; + function GetHeaders(aHeaders: nsAString): Longword; extdecl; + function SetHeaders(const aHeaders: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetNoWrap(out aNoWrap: PRBool): Longword; extdecl; + function SetNoWrap(aNoWrap: PRBool): Longword; extdecl; + function GetRowSpan(out aRowSpan: PRInt32): Longword; extdecl; + function SetRowSpan(aRowSpan: PRInt32): Longword; extdecl; + function GetScope(aScope: nsAString): Longword; extdecl; + function SetScope(const aScope: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableColElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetSpan(out aSpan: PRInt32): Longword; extdecl; + function SetSpan(aSpan: PRInt32): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(out aCaption: nsIDOMHTMLTableCaptionElement_std17): Longword; extdecl; + function SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_std17): Longword; extdecl; + function GetTHead(out aTHead: nsIDOMHTMLTableSectionElement_std17): Longword; extdecl; + function SetTHead(aTHead: nsIDOMHTMLTableSectionElement_std17): Longword; extdecl; + function GetTFoot(out aTFoot: nsIDOMHTMLTableSectionElement_std17): Longword; extdecl; + function SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_std17): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetTBodies(out aTBodies: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCellPadding(aCellPadding: nsAString): Longword; extdecl; + function SetCellPadding(const aCellPadding: nsAString): Longword; extdecl; + function GetCellSpacing(aCellSpacing: nsAString): Longword; extdecl; + function SetCellSpacing(const aCellSpacing: nsAString): Longword; extdecl; + function GetFrame(aFrame: nsAString): Longword; extdecl; + function SetFrame(const aFrame: nsAString): Longword; extdecl; + function GetRules(aRules: nsAString): Longword; extdecl; + function SetRules(const aRules: nsAString): Longword; extdecl; + function GetSummary(aSummary: nsAString): Longword; extdecl; + function SetSummary(const aSummary: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function CreateTHead(out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteTHead(): nsresult; extdecl; + function CreateTFoot(out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteTFoot(): nsresult; extdecl; + function CreateCaption(out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteCaption(): nsresult; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableRowElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(out aRowIndex: PRInt32): Longword; extdecl; + function GetSectionRowIndex(out aSectionRowIndex: PRInt32): Longword; extdecl; + function GetCells(out aCells: nsIDOMHTMLCollection_std17): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function InsertCell(index: PRInt32; out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteCell(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableSectionElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std17): Longword; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std17): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTextAreaElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std17): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCols(out aCols: PRInt32): Longword; extdecl; + function SetCols(aCols: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetRows(out aRows: PRInt32): Longword; extdecl; + function SetRows(aRows: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + end; + + nsIDOMHTMLTitleElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLUListElement_std17 = interface(nsIDOMHTMLElement_std17) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMMediaList_std17 = interface(nsISupports_std17) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + function GetMediaText(aMediaText: nsAString): Longword; extdecl; + function SetMediaText(const aMediaText: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function DeleteMedium(const oldMedium: nsAString): nsresult; extdecl; + function AppendMedium(const newMedium: nsAString): nsresult; extdecl; + end; + + nsIDOMUIEvent_std17 = interface(nsIDOMEvent_std17) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(out aView: nsIDOMAbstractView_std17): Longword; extdecl; + function GetDetail(out aDetail: PRInt32): Longword; extdecl; + function InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std17; detailArg: PRInt32): nsresult; extdecl; + end; + + nsIDOMMouseEvent_std17 = interface(nsIDOMUIEvent_std17) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(out aScreenX: PRInt32): Longword; extdecl; + function GetScreenY(out aScreenY: PRInt32): Longword; extdecl; + function GetClientX(out aClientX: PRInt32): Longword; extdecl; + function GetClientY(out aClientY: PRInt32): Longword; extdecl; + function GetCtrlKey(out aCtrlKey: PRBool): Longword; extdecl; + function GetShiftKey(out aShiftKey: PRBool): Longword; extdecl; + function GetAltKey(out aAltKey: PRBool): Longword; extdecl; + function GetMetaKey(out aMetaKey: PRBool): Longword; extdecl; + function GetButton(out aButton: PRUint16): Longword; extdecl; + function GetRelatedTarget(out aRelatedTarget: nsIDOMEventTarget_std17): Longword; extdecl; + function InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std17; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_std17): nsresult; extdecl; + end; + + nsIDOMNamedNodeMap_std17 = interface(nsISupports_std17) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function SetNamedItem(arg: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function RemoveNamedItem(const name: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function SetNamedItemNS(arg: nsIDOMNode_std17; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std17): nsresult; extdecl; + end; + + nsIDOMNodeList_std17 = interface(nsISupports_std17) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32; out _retval: nsIDOMNode_std17): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + end; + + nsIDOMNotation_std17 = interface(nsIDOMNode_std17) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + end; + + nsIDOMProcessingInstruction_std17 = interface(nsIDOMNode_std17) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + end; + + nsIDOMRange_std17 = interface(nsISupports_std17) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(out aStartContainer: nsIDOMNode_std17): Longword; extdecl; + function GetStartOffset(out aStartOffset: PRInt32): Longword; extdecl; + function GetEndContainer(out aEndContainer: nsIDOMNode_std17): Longword; extdecl; + function GetEndOffset(out aEndOffset: PRInt32): Longword; extdecl; + function GetCollapsed(out aCollapsed: PRBool): Longword; extdecl; + function GetCommonAncestorContainer(out aCommonAncestorContainer: nsIDOMNode_std17): Longword; extdecl; + function SetStart(refNode: nsIDOMNode_std17; offset: PRInt32): nsresult; extdecl; + function SetEnd(refNode: nsIDOMNode_std17; offset: PRInt32): nsresult; extdecl; + function SetStartBefore(refNode: nsIDOMNode_std17): nsresult; extdecl; + function SetStartAfter(refNode: nsIDOMNode_std17): nsresult; extdecl; + function SetEndBefore(refNode: nsIDOMNode_std17): nsresult; extdecl; + function SetEndAfter(refNode: nsIDOMNode_std17): nsresult; extdecl; + function Collapse(toStart: PRBool): nsresult; extdecl; + function SelectNode(refNode: nsIDOMNode_std17): nsresult; extdecl; + function SelectNodeContents(refNode: nsIDOMNode_std17): nsresult; extdecl; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_std17; out _retval: PRInt16): nsresult; extdecl; + function DeleteContents(): nsresult; extdecl; + function ExtractContents(out _retval: nsIDOMDocumentFragment_std17): nsresult; extdecl; + function CloneContents(out _retval: nsIDOMDocumentFragment_std17): nsresult; extdecl; + function InsertNode(newNode: nsIDOMNode_std17): nsresult; extdecl; + function SurroundContents(newParent: nsIDOMNode_std17): nsresult; extdecl; + function CloneRange(out _retval: nsIDOMRange_std17): nsresult; extdecl; + function ToString(_retval: nsAString): nsresult; extdecl; + function Detach(): nsresult; extdecl; + end; + + nsIDOMRect_std17 = interface(nsISupports_std17) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(out aTop: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + function GetRight(out aRight: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + function GetBottom(out aBottom: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + function GetLeft(out aLeft: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + end; + + nsIDOMRGBColor_std17 = interface(nsISupports_std17) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(out aRed: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + function GetGreen(out aGreen: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + function GetBlue(out aBlue: nsIDOMCSSPrimitiveValue_std17): Longword; extdecl; + end; + + nsIDOMStyleSheetList_std17 = interface(nsISupports_std17) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMStyleSheet_std17): nsresult; extdecl; + end; + + nsIDOMWindow_std17 = interface(nsISupports_std17) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(out aDocument: nsIDOMDocument_std17): Longword; extdecl; + function GetParent(out aParent: nsIDOMWindow_std17): Longword; extdecl; + function GetTop(out aTop: nsIDOMWindow_std17): Longword; extdecl; + function GetScrollbars(out aScrollbars: nsIDOMBarProp_std17): Longword; extdecl; + function GetFrames(out aFrames: nsIDOMWindowCollection_std17): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTextZoom(out aTextZoom: Single): Longword; extdecl; + function SetTextZoom(aTextZoom: Single): Longword; extdecl; + function GetScrollX(out aScrollX: PRInt32): Longword; extdecl; + function GetScrollY(out aScrollY: PRInt32): Longword; extdecl; + function ScrollTo(xScroll: PRInt32; yScroll: PRInt32): nsresult; extdecl; + function ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32): nsresult; extdecl; + function GetSelection(out _retval: nsISelection_std17): nsresult; extdecl; + function ScrollByLines(numLines: PRInt32): nsresult; extdecl; + function ScrollByPages(numPages: PRInt32): nsresult; extdecl; + function SizeToContent(): nsresult; extdecl; + end; + + nsIDOMWindow2_std17 = interface(nsIDOMWindow_std17) + ['{65455132-b96a-40ec-adea-52fa22b1028c}'] + function GetWindowRoot(out aWindowRoot: nsIDOMEventTarget_std17): Longword; extdecl; + end; + + nsIDOMWindowCollection_std17 = interface(nsISupports_std17) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMWindow_std17): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMWindow_std17): nsresult; extdecl; + end; + + nsIEmbeddingSiteWindow_std17 = interface(nsISupports_std17) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + function SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32): nsresult; extdecl; + function GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32): nsresult; extdecl; + function SetFocus(): nsresult; extdecl; + function GetVisibility(out aVisibility: PRBool): Longword; extdecl; + function SetVisibility(aVisibility: PRBool): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetSiteWindow(out aSiteWindow: Pointer): Longword; extdecl; + end; + + nsIFactory_std17 = interface(nsISupports_std17) + ['{00000001-0000-0000-c000-000000000046}'] + function CreateInstance(aOuter: nsISupports_std17; constref iid: TGUID; out _result): nsresult; extdecl; + function LockFactory(lock: PRBool): nsresult; extdecl; + end; + + nsIURI_std17 = interface(nsISupports_std17) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + function GetSpec(aSpec: nsACString): Longword; extdecl; + function SetSpec(const aSpec: nsACString): Longword; extdecl; + function GetPrePath(aPrePath: nsACString): Longword; extdecl; + function GetScheme(aScheme: nsACString): Longword; extdecl; + function SetScheme(const aScheme: nsACString): Longword; extdecl; + function GetUserPass(aUserPass: nsACString): Longword; extdecl; + function SetUserPass(const aUserPass: nsACString): Longword; extdecl; + function GetUsername(aUsername: nsACString): Longword; extdecl; + function SetUsername(const aUsername: nsACString): Longword; extdecl; + function GetPassword(aPassword: nsACString): Longword; extdecl; + function SetPassword(const aPassword: nsACString): Longword; extdecl; + function GetHostPort(aHostPort: nsACString): Longword; extdecl; + function SetHostPort(const aHostPort: nsACString): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function SetHost(const aHost: nsACString): Longword; extdecl; + function GetPort(out aPort: PRInt32): Longword; extdecl; + function SetPort(aPort: PRInt32): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function SetPath(const aPath: nsACString): Longword; extdecl; + function Equals(other: nsIURI_std17; out _retval: PRBool): nsresult; extdecl; + function SchemeIs(const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Clone(out _retval: nsIURI_std17): nsresult; extdecl; + function Resolve(const relativePath: nsACString; _retval: nsACString): nsresult; extdecl; + function GetAsciiSpec(aAsciiSpec: nsACString): Longword; extdecl; + function GetAsciiHost(aAsciiHost: nsACString): Longword; extdecl; + function GetOriginCharset(aOriginCharset: nsACString): Longword; extdecl; + end; + + nsIURL_std17 = interface(nsIURI_std17) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + function GetFilePath(aFilePath: nsACString): Longword; extdecl; + function SetFilePath(const aFilePath: nsACString): Longword; extdecl; + function GetParam(aParam: nsACString): Longword; extdecl; + function SetParam(const aParam: nsACString): Longword; extdecl; + function GetQuery(aQuery: nsACString): Longword; extdecl; + function SetQuery(const aQuery: nsACString): Longword; extdecl; + function GetRef(aRef: nsACString): Longword; extdecl; + function SetRef(const aRef: nsACString): Longword; extdecl; + function GetDirectory(aDirectory: nsACString): Longword; extdecl; + function SetDirectory(const aDirectory: nsACString): Longword; extdecl; + function GetFileName(aFileName: nsACString): Longword; extdecl; + function SetFileName(const aFileName: nsACString): Longword; extdecl; + function GetFileBaseName(aFileBaseName: nsACString): Longword; extdecl; + function SetFileBaseName(const aFileBaseName: nsACString): Longword; extdecl; + function GetFileExtension(aFileExtension: nsACString): Longword; extdecl; + function SetFileExtension(const aFileExtension: nsACString): Longword; extdecl; + function GetCommonBaseSpec(aURIToCompare: nsIURI_std17; _retval: nsACString): nsresult; extdecl; + function GetRelativeSpec(aURIToCompare: nsIURI_std17; _retval: nsACString): nsresult; extdecl; + end; + + nsIFileURL_std17 = interface(nsIURL_std17) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(out aFile: nsIFile_std17): Longword; extdecl; + function SetFile(aFile: nsIFile_std17): Longword; extdecl; + end; + + nsIGlobalHistory_std17 = interface(nsISupports_std17) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + function AddPage(const aURL: PAnsiChar): nsresult; extdecl; + function IsVisited(const aURL: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIHistoryEntry_std17 = interface(nsISupports_std17) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(out aURI: nsIURI_std17): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function GetIsSubFrame(out aIsSubFrame: PRBool): Longword; extdecl; + end; + + nsIHttpChannel_std17 = interface(nsIChannel_std17) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + function GetRequestMethod(aRequestMethod: nsACString): Longword; extdecl; + function SetRequestMethod(const aRequestMethod: nsACString): Longword; extdecl; + function GetReferrer(out aReferrer: nsIURI_std17): Longword; extdecl; + function SetReferrer(aReferrer: nsIURI_std17): Longword; extdecl; + function GetRequestHeader(const aHeader: nsACString; _retval: nsACString): nsresult; extdecl; + function SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool): nsresult; extdecl; + function VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_std17): nsresult; extdecl; + function GetAllowPipelining(out aAllowPipelining: PRBool): Longword; extdecl; + function SetAllowPipelining(aAllowPipelining: PRBool): Longword; extdecl; + function GetRedirectionLimit(out aRedirectionLimit: PRUint32): Longword; extdecl; + function SetRedirectionLimit(aRedirectionLimit: PRUint32): Longword; extdecl; + function GetResponseStatus(out aResponseStatus: PRUint32): Longword; extdecl; + function GetResponseStatusText(aResponseStatusText: nsACString): Longword; extdecl; + function GetRequestSucceeded(out aRequestSucceeded: PRBool): Longword; extdecl; + function GetResponseHeader(const header: nsACString; _retval: nsACString): nsresult; extdecl; + function SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool): nsresult; extdecl; + function VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_std17): nsresult; extdecl; + function IsNoStoreResponse(out _retval: PRBool): nsresult; extdecl; + function IsNoCacheResponse(out _retval: PRBool): nsresult; extdecl; + end; + + nsIHttpHeaderVisitor_std17 = interface(nsISupports_std17) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + function VisitHeader(const aHeader: nsACString; const aValue: nsACString): nsresult; extdecl; + end; + + nsIInputStream_std17 = interface(nsISupports_std17) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aBuf: Pchar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIInterfaceRequestor_std17 = interface(nsISupports_std17) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + function GetInterface(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsIIOService_std17 = interface(nsISupports_std17) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar; out _retval: nsIProtocolHandler_std17): nsresult; extdecl; + function GetProtocolFlags(const aScheme: PAnsiChar; out _retval: PRUint32): nsresult; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std17; out _retval: nsIURI_std17): nsresult; extdecl; + function NewFileURI(aFile: nsIFile_std17; out _retval: nsIURI_std17): nsresult; extdecl; + function NewChannelFromURI(aURI: nsIURI_std17; out _retval: nsIChannel_std17): nsresult; extdecl; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std17; out _retval: nsIChannel_std17): nsresult; extdecl; + function GetOffline(out aOffline: PRBool): Longword; extdecl; + function SetOffline(aOffline: PRBool): Longword; extdecl; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function ExtractScheme(const urlString: nsACString; _retval: nsACString): nsresult; extdecl; + end; + + nsILoadGroup_std17 = interface(nsIRequest_std17) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(out aGroupObserver: nsIRequestObserver_std17): Longword; extdecl; + function SetGroupObserver(aGroupObserver: nsIRequestObserver_std17): Longword; extdecl; + function GetDefaultLoadRequest(out aDefaultLoadRequest: nsIRequest_std17): Longword; extdecl; + function SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_std17): Longword; extdecl; + function AddRequest(aRequest: nsIRequest_std17; aContext: nsISupports_std17): nsresult; extdecl; + function RemoveRequest(aRequest: nsIRequest_std17; aContext: nsISupports_std17; aStatus: nsresult): nsresult; extdecl; + function GetRequests(out aRequests: nsISimpleEnumerator_std17): Longword; extdecl; + function GetActiveCount(out aActiveCount: PRUint32): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std17): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std17): Longword; extdecl; + end; + + nsILocalFile_std17 = interface(nsIFile_std17) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + function InitWithPath(const filePath: nsAString): nsresult; extdecl; + function InitWithNativePath(const filePath: nsACString): nsresult; extdecl; + function InitWithFile(aFile: nsILocalFile_std17): nsresult; extdecl; + function GetFollowLinks(out aFollowLinks: PRBool): Longword; extdecl; + function SetFollowLinks(aFollowLinks: PRBool): Longword; extdecl; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32; out _retval: PPRFileDesc): nsresult; extdecl; + function OpenANSIFileDesc(const mode: PAnsiChar; out _retval: PFILE): nsresult; extdecl; + function Load(out _retval: PPRLibrary): nsresult; extdecl; + function GetDiskSpaceAvailable(out aDiskSpaceAvailable: PRInt64): Longword; extdecl; + function AppendRelativePath(const relativeFilePath: nsAString): nsresult; extdecl; + function AppendRelativeNativePath(const relativeFilePath: nsACString): nsresult; extdecl; + function GetPersistentDescriptor(aPersistentDescriptor: nsACString): Longword; extdecl; + function SetPersistentDescriptor(const aPersistentDescriptor: nsACString): Longword; extdecl; + function Reveal(): nsresult; extdecl; + function Launch(): nsresult; extdecl; + function GetRelativeDescriptor(fromFile: nsILocalFile_std17; _retval: nsACString): nsresult; extdecl; + function SetRelativeDescriptor(fromFile: nsILocalFile_std17; const relativeDesc: nsACString): nsresult; extdecl; + end; + + nsIMemory_std17 = interface(nsISupports_std17) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + function HeapMinimize(immediate: PRBool): nsresult; extdecl; + function IsLowMemory(out _retval: PRBool): nsresult; extdecl; + end; + + nsIModule_std17 = interface(nsISupports_std17) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + function GetClassObject(aCompMgr: nsIComponentManager_std17; constref aClass: TGUID; constref aIID: TGUID; out aResult): nsresult; extdecl; + function RegisterSelf(aCompMgr: nsIComponentManager_std17; aLocation: nsIFile_std17; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterSelf(aCompMgr: nsIComponentManager_std17; aLocation: nsIFile_std17; const aLoaderStr: PAnsiChar): nsresult; extdecl; + function CanUnload(aCompMgr: nsIComponentManager_std17; out _retval: PRBool): nsresult; extdecl; + end; + + nsIObserver_std17 = interface(nsISupports_std17) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + function Observe(aSubject: nsISupports_std17; const aTopic: PAnsiChar; const aData: PWideChar): nsresult; extdecl; + end; + + nsIObserverService_std17 = interface(nsISupports_std17) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + function AddObserver(anObserver: nsIObserver_std17; const aTopic: PAnsiChar; ownsWeak: PRBool): nsresult; extdecl; + function RemoveObserver(anObserver: nsIObserver_std17; const aTopic: PAnsiChar): nsresult; extdecl; + function NotifyObservers(aSubject: nsISupports_std17; const aTopic: PAnsiChar; const someData: PWideChar): nsresult; extdecl; + function EnumerateObservers(const aTopic: PAnsiChar; out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + end; + + nsIOutputStream_std17 = interface(nsISupports_std17) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Flush(): nsresult; extdecl; + function Write(const aBuf: PAnsiChar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteFrom(aFromStream: nsIInputStream_std17; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIPassword_std17 = interface(nsISupports_std17) + ['{cf39c2b0-1e4b-11d5-a549-0010a401eb10}'] + function GetHost(aHost: nsACString): Longword; extdecl; + function GetUser(aUser: nsAString): Longword; extdecl; + function GetPassword(aPassword: nsAString): Longword; extdecl; + end; + + nsIPrefBranch_std17 = interface(nsISupports_std17) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(out aRoot: PAnsiChar): Longword; extdecl; + function GetPrefType(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function GetBoolPref(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetCharPref(const aPrefName: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar): nsresult; extdecl; + function GetIntPref(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue): nsresult; extdecl; + function SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_std17): nsresult; extdecl; + function ClearUserPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function LockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function PrefHasUserValue(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function PrefIsLocked(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function UnlockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function DeleteBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + function GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array): nsresult; extdecl; + function ResetBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + end; + + nsIPrefLocalizedString_std17 = interface(nsISupports_std17) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(out aData: PWideChar): Longword; extdecl; + function SetData(const aData: PWideChar): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + function SetDataWithLength(length: PRUint32; const data: PWideChar): nsresult; extdecl; + end; + + nsIPrefService_std17 = interface(nsISupports_std17) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + function ReadUserPrefs(aFile: nsIFile_std17): nsresult; extdecl; + function ResetPrefs(): nsresult; extdecl; + function ResetUserPrefs(): nsresult; extdecl; + function SavePrefFile(aFile: nsIFile_std17): nsresult; extdecl; + function GetBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std17): nsresult; extdecl; + function GetDefaultBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std17): nsresult; extdecl; + end; + + nsIPrintSession_std17 = interface(nsISupports_std17) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_std17 = interface(nsISupports_std17) + ['{83427530-f790-11d4-a869-00105a183419}'] + function SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool): nsresult; extdecl; + function GetPrintOptions(aType: PRInt32; out _retval: PRBool): nsresult; extdecl; + function GetPrintOptionsBits(out _retval: PRInt32): nsresult; extdecl; + function GetPageSizeInTwips(out aWidth: PRInt32; out aHeight: PRInt32): nsresult; extdecl; + function Clone(out _retval: nsIPrintSettings_std17): nsresult; extdecl; + function Assign(aPS: nsIPrintSettings_std17): nsresult; extdecl; + function GetPrintSession(out aPrintSession: nsIPrintSession_std17): Longword; extdecl; + function SetPrintSession(aPrintSession: nsIPrintSession_std17): Longword; extdecl; + function GetStartPageRange(out aStartPageRange: PRInt32): Longword; extdecl; + function SetStartPageRange(aStartPageRange: PRInt32): Longword; extdecl; + function GetEndPageRange(out aEndPageRange: PRInt32): Longword; extdecl; + function SetEndPageRange(aEndPageRange: PRInt32): Longword; extdecl; + function GetMarginTop(out aMarginTop: Double): Longword; extdecl; + function SetMarginTop(aMarginTop: Double): Longword; extdecl; + function GetMarginLeft(out aMarginLeft: Double): Longword; extdecl; + function SetMarginLeft(aMarginLeft: Double): Longword; extdecl; + function GetMarginBottom(out aMarginBottom: Double): Longword; extdecl; + function SetMarginBottom(aMarginBottom: Double): Longword; extdecl; + function GetMarginRight(out aMarginRight: Double): Longword; extdecl; + function SetMarginRight(aMarginRight: Double): Longword; extdecl; + function GetScaling(out aScaling: Double): Longword; extdecl; + function SetScaling(aScaling: Double): Longword; extdecl; + function GetPrintBGColors(out aPrintBGColors: PRBool): Longword; extdecl; + function SetPrintBGColors(aPrintBGColors: PRBool): Longword; extdecl; + function GetPrintBGImages(out aPrintBGImages: PRBool): Longword; extdecl; + function SetPrintBGImages(aPrintBGImages: PRBool): Longword; extdecl; + function GetPrintRange(out aPrintRange: PRInt16): Longword; extdecl; + function SetPrintRange(aPrintRange: PRInt16): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetDocURL(out aDocURL: PWideChar): Longword; extdecl; + function SetDocURL(const aDocURL: PWideChar): Longword; extdecl; + function GetHeaderStrLeft(out aHeaderStrLeft: PWideChar): Longword; extdecl; + function SetHeaderStrLeft(const aHeaderStrLeft: PWideChar): Longword; extdecl; + function GetHeaderStrCenter(out aHeaderStrCenter: PWideChar): Longword; extdecl; + function SetHeaderStrCenter(const aHeaderStrCenter: PWideChar): Longword; extdecl; + function GetHeaderStrRight(out aHeaderStrRight: PWideChar): Longword; extdecl; + function SetHeaderStrRight(const aHeaderStrRight: PWideChar): Longword; extdecl; + function GetFooterStrLeft(out aFooterStrLeft: PWideChar): Longword; extdecl; + function SetFooterStrLeft(const aFooterStrLeft: PWideChar): Longword; extdecl; + function GetFooterStrCenter(out aFooterStrCenter: PWideChar): Longword; extdecl; + function SetFooterStrCenter(const aFooterStrCenter: PWideChar): Longword; extdecl; + function GetFooterStrRight(out aFooterStrRight: PWideChar): Longword; extdecl; + function SetFooterStrRight(const aFooterStrRight: PWideChar): Longword; extdecl; + function GetHowToEnableFrameUI(out aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function GetIsCancelled(out aIsCancelled: PRBool): Longword; extdecl; + function SetIsCancelled(aIsCancelled: PRBool): Longword; extdecl; + function GetPrintFrameTypeUsage(out aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function GetPrintFrameType(out aPrintFrameType: PRInt16): Longword; extdecl; + function SetPrintFrameType(aPrintFrameType: PRInt16): Longword; extdecl; + function GetPrintSilent(out aPrintSilent: PRBool): Longword; extdecl; + function SetPrintSilent(aPrintSilent: PRBool): Longword; extdecl; + function GetShrinkToFit(out aShrinkToFit: PRBool): Longword; extdecl; + function SetShrinkToFit(aShrinkToFit: PRBool): Longword; extdecl; + function GetShowPrintProgress(out aShowPrintProgress: PRBool): Longword; extdecl; + function SetShowPrintProgress(aShowPrintProgress: PRBool): Longword; extdecl; + function GetPaperName(out aPaperName: PWideChar): Longword; extdecl; + function SetPaperName(const aPaperName: PWideChar): Longword; extdecl; + function GetPaperSizeType(out aPaperSizeType: PRInt16): Longword; extdecl; + function SetPaperSizeType(aPaperSizeType: PRInt16): Longword; extdecl; + function GetPaperData(out aPaperData: PRInt16): Longword; extdecl; + function SetPaperData(aPaperData: PRInt16): Longword; extdecl; + function GetPaperWidth(out aPaperWidth: Double): Longword; extdecl; + function SetPaperWidth(aPaperWidth: Double): Longword; extdecl; + function GetPaperHeight(out aPaperHeight: Double): Longword; extdecl; + function SetPaperHeight(aPaperHeight: Double): Longword; extdecl; + function GetPaperSizeUnit(out aPaperSizeUnit: PRInt16): Longword; extdecl; + function SetPaperSizeUnit(aPaperSizeUnit: PRInt16): Longword; extdecl; + function GetPlexName(out aPlexName: PWideChar): Longword; extdecl; + function SetPlexName(const aPlexName: PWideChar): Longword; extdecl; + function GetPrintReversed(out aPrintReversed: PRBool): Longword; extdecl; + function SetPrintReversed(aPrintReversed: PRBool): Longword; extdecl; + function GetPrintInColor(out aPrintInColor: PRBool): Longword; extdecl; + function SetPrintInColor(aPrintInColor: PRBool): Longword; extdecl; + function GetPaperSize(out aPaperSize: PRInt32): Longword; extdecl; + function SetPaperSize(aPaperSize: PRInt32): Longword; extdecl; + function GetOrientation(out aOrientation: PRInt32): Longword; extdecl; + function SetOrientation(aOrientation: PRInt32): Longword; extdecl; + function GetPrintCommand(out aPrintCommand: PWideChar): Longword; extdecl; + function SetPrintCommand(const aPrintCommand: PWideChar): Longword; extdecl; + function GetNumCopies(out aNumCopies: PRInt32): Longword; extdecl; + function SetNumCopies(aNumCopies: PRInt32): Longword; extdecl; + function GetPrinterName(out aPrinterName: PWideChar): Longword; extdecl; + function SetPrinterName(const aPrinterName: PWideChar): Longword; extdecl; + function GetPrintToFile(out aPrintToFile: PRBool): Longword; extdecl; + function SetPrintToFile(aPrintToFile: PRBool): Longword; extdecl; + function GetToFileName(out aToFileName: PWideChar): Longword; extdecl; + function SetToFileName(const aToFileName: PWideChar): Longword; extdecl; + function GetPrintPageDelay(out aPrintPageDelay: PRInt32): Longword; extdecl; + function SetPrintPageDelay(aPrintPageDelay: PRInt32): Longword; extdecl; + function GetIsInitializedFromPrinter(out aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function GetIsInitializedFromPrefs(out aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + function GetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + end; + + nsIProfile_std17 = interface(nsISupports_std17) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(out aProfileCount: PRInt32): Longword; extdecl; + function GetProfileList(out length: PRUint32; out profileNames_array): nsresult; extdecl; + function ProfileExists(const profileName: PWideChar; out _retval: PRBool): nsresult; extdecl; + function GetCurrentProfile(out aCurrentProfile: PWideChar): Longword; extdecl; + function SetCurrentProfile(const aCurrentProfile: PWideChar): Longword; extdecl; + function ShutDownCurrentProfile(shutDownType: PRUint32): nsresult; extdecl; + function CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool): nsresult; extdecl; + function RenameProfile(const oldName: PWideChar; const newName: PWideChar): nsresult; extdecl; + function DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool): nsresult; extdecl; + function CloneProfile(const profileName: PWideChar): nsresult; extdecl; + end; + + nsIProfileChangeStatus_std17 = interface(nsISupports_std17) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + function VetoChange(): nsresult; extdecl; + function ChangeFailed(): nsresult; extdecl; + end; + + nsIPrompt_std17 = interface(nsISupports_std17) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + function Alert(const dialogTitle: PWideChar; const text: PWideChar): nsresult; extdecl; + function AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): nsresult; extdecl; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIPromptService_std17 = interface(nsISupports_std17) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + function Alert(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar): nsresult; extdecl; + function AlertCheck(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): nsresult; extdecl; + function Confirm(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(aParent: nsIDOMWindow_std17; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIProperties_std17 = interface(nsISupports_std17) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + function Get(const prop: PAnsiChar; constref iid: TGUID; out _result): nsresult; extdecl; + function _Set(const prop: PAnsiChar; value: nsISupports_std17): nsresult; extdecl; + function Has(const prop: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Undefine(const prop: PAnsiChar): nsresult; extdecl; + function GetKeys(out count: PRUint32; out keys_array): nsresult; extdecl; + end; + + nsIProtocolHandler_std17 = interface(nsISupports_std17) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + function GetScheme(aScheme: nsACString): Longword; extdecl; + function GetDefaultPort(out aDefaultPort: PRInt32): Longword; extdecl; + function GetProtocolFlags(out aProtocolFlags: PRUint32): Longword; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std17; out _retval: nsIURI_std17): nsresult; extdecl; + function NewChannel(aURI: nsIURI_std17; out _retval: nsIChannel_std17): nsresult; extdecl; + function AllowPort(port: PRInt32; const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIRequestObserver_std17 = interface(nsISupports_std17) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + function OnStartRequest(aRequest: nsIRequest_std17; aContext: nsISupports_std17): nsresult; extdecl; + function OnStopRequest(aRequest: nsIRequest_std17; aContext: nsISupports_std17; aStatusCode: nsresult): nsresult; extdecl; + end; + + nsIScriptableInputStream_std17 = interface(nsISupports_std17) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + function Close(): nsresult; extdecl; + function Init(aInputStream: nsIInputStream_std17): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aCount: PRUint32; out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISecurityWarningDialogs_std17 = interface(nsISupports_std17) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_std17; out _retval: PRBool): nsresult; extdecl; + end; + + nsISelection_std17 = interface(nsISupports_std17) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(out aAnchorNode: nsIDOMNode_std17): Longword; extdecl; + function GetAnchorOffset(out aAnchorOffset: PRInt32): Longword; extdecl; + function GetFocusNode(out aFocusNode: nsIDOMNode_std17): Longword; extdecl; + function GetFocusOffset(out aFocusOffset: PRInt32): Longword; extdecl; + function GetIsCollapsed(out aIsCollapsed: PRBool): Longword; extdecl; + function GetRangeCount(out aRangeCount: PRInt32): Longword; extdecl; + function GetRangeAt(index: PRInt32; out _retval: nsIDOMRange_std17): nsresult; extdecl; + function Collapse(parentNode: nsIDOMNode_std17; offset: PRInt32): nsresult; extdecl; + function Extend(parentNode: nsIDOMNode_std17; offset: PRInt32): nsresult; extdecl; + function CollapseToStart(): nsresult; extdecl; + function CollapseToEnd(): nsresult; extdecl; + function ContainsNode(node: nsIDOMNode_std17; entirelyContained: PRBool; out _retval: PRBool): nsresult; extdecl; + function SelectAllChildren(parentNode: nsIDOMNode_std17): nsresult; extdecl; + function AddRange(range: nsIDOMRange_std17): nsresult; extdecl; + function RemoveRange(range: nsIDOMRange_std17): nsresult; extdecl; + function RemoveAllRanges(): nsresult; extdecl; + function DeleteFromDocument(): nsresult; extdecl; + function SelectionLanguageChange(langRTL: PRBool): nsresult; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsIServiceManager_std17 = interface(nsISupports_std17) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + function GetService(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + end; + + nsISHistory_std17 = interface(nsISupports_std17) + ['{7294fe9b-14d8-11d5-9882-00c04fa02f40}'] + function GetCount(out aCount: PRInt32): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool; out _retval: nsIHistoryEntry_std17): nsresult; extdecl; + function PurgeHistory(numEntries: PRInt32): nsresult; extdecl; + function AddSHistoryListener(aListener: nsISHistoryListener_std17): nsresult; extdecl; + function RemoveSHistoryListener(aListener: nsISHistoryListener_std17): nsresult; extdecl; + function GetSHistoryEnumerator(out aSHistoryEnumerator: nsISimpleEnumerator_std17): Longword; extdecl; + end; + + nsISHistoryListener_std17 = interface(nsISupports_std17) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + function OnHistoryNewEntry(aNewURI: nsIURI_std17): nsresult; extdecl; + function OnHistoryGoBack(aBackURI: nsIURI_std17; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGoForward(aForwardURI: nsIURI_std17; out _retval: PRBool): nsresult; extdecl; + function OnHistoryReload(aReloadURI: nsIURI_std17; aReloadFlags: PRUint32; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_std17; out _retval: PRBool): nsresult; extdecl; + function OnHistoryPurge(aNumEntries: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIStreamListener_std17 = interface(nsIRequestObserver_std17) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + function OnDataAvailable(aRequest: nsIRequest_std17; aContext: nsISupports_std17; aInputStream: nsIInputStream_std17; aOffset: PRUint32; aCount: PRUint32): nsresult; extdecl; + end; + + nsISupportsPrimitive_std17 = interface(nsISupports_std17) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(out aType: PRUint16): Longword; extdecl; + end; + + nsISupportsID_std17 = interface(nsISupportsPrimitive_std17) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PGUID): Longword; extdecl; + function SetData(const aData: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsCString_std17 = interface(nsISupportsPrimitive_std17) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsACString): Longword; extdecl; + function SetData(const aData: nsACString): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsString_std17 = interface(nsISupportsPrimitive_std17) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsISupportsPRBool_std17 = interface(nsISupportsPrimitive_std17) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRBool): Longword; extdecl; + function SetData(aData: PRBool): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint8_std17 = interface(nsISupportsPrimitive_std17) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint8): Longword; extdecl; + function SetData(aData: PRUint8): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint16_std17 = interface(nsISupportsPrimitive_std17) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint16): Longword; extdecl; + function SetData(aData: PRUint16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint32_std17 = interface(nsISupportsPrimitive_std17) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint32): Longword; extdecl; + function SetData(aData: PRUint32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint64_std17 = interface(nsISupportsPrimitive_std17) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint64): Longword; extdecl; + function SetData(aData: PRUint64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRTime_std17 = interface(nsISupportsPrimitive_std17) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRTime): Longword; extdecl; + function SetData(aData: PRTime): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsChar_std17 = interface(nsISupportsPrimitive_std17) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: AnsiChar): Longword; extdecl; + function SetData(aData: AnsiChar): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt16_std17 = interface(nsISupportsPrimitive_std17) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt16): Longword; extdecl; + function SetData(aData: PRInt16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt32_std17 = interface(nsISupportsPrimitive_std17) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt32): Longword; extdecl; + function SetData(aData: PRInt32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt64_std17 = interface(nsISupportsPrimitive_std17) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt64): Longword; extdecl; + function SetData(aData: PRInt64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsFloat_std17 = interface(nsISupportsPrimitive_std17) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Single): Longword; extdecl; + function SetData(aData: Single): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsDouble_std17 = interface(nsISupportsPrimitive_std17) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Double): Longword; extdecl; + function SetData(aData: Double): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsVoid_std17 = interface(nsISupportsPrimitive_std17) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(out aData: Pointer): Longword; extdecl; + function SetData(aData: Pointer): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsInterfacePointer_std17 = interface(nsISupportsPrimitive_std17) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(out aData: nsISupports_std17): Longword; extdecl; + function SetData(aData: nsISupports_std17): Longword; extdecl; + function GetDataIID(out aDataIID: PGUID): Longword; extdecl; + function SetDataIID(const aDataIID: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsITooltipListener_std17 = interface(nsISupports_std17) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + function OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar): nsresult; extdecl; + function OnHideTooltip(): nsresult; extdecl; + end; + + nsITooltipTextProvider_std17 = interface(nsISupports_std17) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_std17; out aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsITraceRefcnt_std17 = interface(nsISupports_std17) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + function LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar): nsresult; extdecl; + function LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_std17): nsresult; extdecl; + function LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_std17): nsresult; extdecl; + end; + + nsIUnicharStreamListener_std17 = interface(nsIRequestObserver_std17) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + function OnUnicharDataAvailable(aRequest: nsIRequest_std17; aContext: nsISupports_std17; const aData: nsAString): nsresult; extdecl; + end; + + nsIUploadChannel_std17 = interface(nsISupports_std17) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + function SetUploadStream(aStream: nsIInputStream_std17; const aContentType: nsACString; aContentLength: PRInt32): nsresult; extdecl; + function GetUploadStream(out aUploadStream: nsIInputStream_std17): Longword; extdecl; + end; + + nsIURIContentListener_std17 = interface(nsISupports_std17) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_std17; out _retval: PRBool): nsresult; extdecl; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_std17; out aContentHandler: nsIStreamListener_std17; out _retval: PRBool): nsresult; extdecl; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function GetLoadCookie(out aLoadCookie: nsISupports_std17): Longword; extdecl; + function SetLoadCookie(aLoadCookie: nsISupports_std17): Longword; extdecl; + function GetParentContentListener(out aParentContentListener: nsIURIContentListener_std17): Longword; extdecl; + function SetParentContentListener(aParentContentListener: nsIURIContentListener_std17): Longword; extdecl; + end; + + nsIWeakReference_std17 = interface(nsISupports_std17) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + function QueryReferent(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsISupportsWeakReference_std17 = interface(nsISupports_std17) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(out _retval: nsIWeakReference_std17): nsresult; extdecl; + end; + + nsIWebBrowser_std17 = interface(nsISupports_std17) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + function AddWebBrowserListener(aListener: nsIWeakReference_std17; constref aIID: TGUID): nsresult; extdecl; + function RemoveWebBrowserListener(aListener: nsIWeakReference_std17; constref aIID: TGUID): nsresult; extdecl; + function GetContainerWindow(out aContainerWindow: nsIWebBrowserChrome_std17): Longword; extdecl; + function SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_std17): Longword; extdecl; + function GetParentURIContentListener(out aParentURIContentListener: nsIURIContentListener_std17): Longword; extdecl; + function SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_std17): Longword; extdecl; + function GetContentDOMWindow(out aContentDOMWindow: nsIDOMWindow_std17): Longword; extdecl; + end; + + nsIWebBrowserChrome_std17 = interface(nsISupports_std17) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + function SetStatus(statusType: PRUint32; const status: PWideChar): nsresult; extdecl; + function GetWebBrowser(out aWebBrowser: nsIWebBrowser_std17): Longword; extdecl; + function SetWebBrowser(aWebBrowser: nsIWebBrowser_std17): Longword; extdecl; + function GetChromeFlags(out aChromeFlags: PRUint32): Longword; extdecl; + function SetChromeFlags(aChromeFlags: PRUint32): Longword; extdecl; + function DestroyBrowserWindow(): nsresult; extdecl; + function SizeBrowserTo(aCX: PRInt32; aCY: PRInt32): nsresult; extdecl; + function ShowAsModal(): nsresult; extdecl; + function IsWindowModal(out _retval: PRBool): nsresult; extdecl; + function ExitModalEventLoop(aStatus: nsresult): nsresult; extdecl; + end; + + nsIWebBrowserChromeFocus_std17 = interface(nsISupports_std17) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + function FocusNextElement(): nsresult; extdecl; + function FocusPrevElement(): nsresult; extdecl; + end; + + nsIWebBrowserFind_std17 = interface(nsISupports_std17) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(out _retval: PRBool): nsresult; extdecl; + function GetSearchString(out aSearchString: PWideChar): Longword; extdecl; + function SetSearchString(const aSearchString: PWideChar): Longword; extdecl; + function GetFindBackwards(out aFindBackwards: PRBool): Longword; extdecl; + function SetFindBackwards(aFindBackwards: PRBool): Longword; extdecl; + function GetWrapFind(out aWrapFind: PRBool): Longword; extdecl; + function SetWrapFind(aWrapFind: PRBool): Longword; extdecl; + function GetEntireWord(out aEntireWord: PRBool): Longword; extdecl; + function SetEntireWord(aEntireWord: PRBool): Longword; extdecl; + function GetMatchCase(out aMatchCase: PRBool): Longword; extdecl; + function SetMatchCase(aMatchCase: PRBool): Longword; extdecl; + function GetSearchFrames(out aSearchFrames: PRBool): Longword; extdecl; + function SetSearchFrames(aSearchFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFindInFrames_std17 = interface(nsISupports_std17) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(out aCurrentSearchFrame: nsIDOMWindow_std17): Longword; extdecl; + function SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_std17): Longword; extdecl; + function GetRootSearchFrame(out aRootSearchFrame: nsIDOMWindow_std17): Longword; extdecl; + function SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_std17): Longword; extdecl; + function GetSearchSubframes(out aSearchSubframes: PRBool): Longword; extdecl; + function SetSearchSubframes(aSearchSubframes: PRBool): Longword; extdecl; + function GetSearchParentFrames(out aSearchParentFrames: PRBool): Longword; extdecl; + function SetSearchParentFrames(aSearchParentFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFocus_std17 = interface(nsISupports_std17) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + function Activate(): nsresult; extdecl; + function Deactivate(): nsresult; extdecl; + function SetFocusAtFirstElement(): nsresult; extdecl; + function SetFocusAtLastElement(): nsresult; extdecl; + function GetFocusedWindow(out aFocusedWindow: nsIDOMWindow_std17): Longword; extdecl; + function SetFocusedWindow(aFocusedWindow: nsIDOMWindow_std17): Longword; extdecl; + function GetFocusedElement(out aFocusedElement: nsIDOMElement_std17): Longword; extdecl; + function SetFocusedElement(aFocusedElement: nsIDOMElement_std17): Longword; extdecl; + end; + + nsIWebBrowserPrint_std17 = interface(nsISupports_std17) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(out aGlobalPrintSettings: nsIPrintSettings_std17): Longword; extdecl; + function GetCurrentPrintSettings(out aCurrentPrintSettings: nsIPrintSettings_std17): Longword; extdecl; + function GetCurrentChildDOMWindow(out aCurrentChildDOMWindow: nsIDOMWindow_std17): Longword; extdecl; + function GetDoingPrint(out aDoingPrint: PRBool): Longword; extdecl; + function GetDoingPrintPreview(out aDoingPrintPreview: PRBool): Longword; extdecl; + function GetIsFramesetDocument(out aIsFramesetDocument: PRBool): Longword; extdecl; + function GetIsFramesetFrameSelected(out aIsFramesetFrameSelected: PRBool): Longword; extdecl; + function GetIsIFrameSelected(out aIsIFrameSelected: PRBool): Longword; extdecl; + function GetIsRangeSelection(out aIsRangeSelection: PRBool): Longword; extdecl; + function GetPrintPreviewNumPages(out aPrintPreviewNumPages: PRInt32): Longword; extdecl; + function Print(aThePrintSettings: nsIPrintSettings_std17; aWPListener: nsIWebProgressListener_std17): nsresult; extdecl; + function PrintPreview(aThePrintSettings: nsIPrintSettings_std17; aChildDOMWin: nsIDOMWindow_std17; aWPListener: nsIWebProgressListener_std17): nsresult; extdecl; + function PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32): nsresult; extdecl; + function Cancel(): nsresult; extdecl; + function EnumerateDocumentNames(out aCount: PRUint32; out aResult_array): nsresult; extdecl; + function ExitPrintPreview(): nsresult; extdecl; + end; + + nsIWebBrowserSetup_std17 = interface(nsISupports_std17) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + function SetProperty(aId: PRUint32; aValue: PRUint32): nsresult; extdecl; + end; + + nsIWebProgress_std17 = interface(nsISupports_std17) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + function AddProgressListener(aListener: nsIWebProgressListener_std17; aNotifyMask: PRUint32): nsresult; extdecl; + function RemoveProgressListener(aListener: nsIWebProgressListener_std17): nsresult; extdecl; + function GetDOMWindow(out aDOMWindow: nsIDOMWindow_std17): Longword; extdecl; + function GetIsLoadingDocument(out aIsLoadingDocument: PRBool): Longword; extdecl; + end; + + nsIWebProgressListener_std17 = interface(nsISupports_std17) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + function OnStateChange(aWebProgress: nsIWebProgress_std17; aRequest: nsIRequest_std17; aStateFlags: PRUint32; aStatus: nsresult): nsresult; extdecl; + function OnProgressChange(aWebProgress: nsIWebProgress_std17; aRequest: nsIRequest_std17; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32): nsresult; extdecl; + function OnLocationChange(aWebProgress: nsIWebProgress_std17; aRequest: nsIRequest_std17; aLocation: nsIURI_std17): nsresult; extdecl; + function OnStatusChange(aWebProgress: nsIWebProgress_std17; aRequest: nsIRequest_std17; aStatus: nsresult; const aMessage: PWideChar): nsresult; extdecl; + function OnSecurityChange(aWebProgress: nsIWebProgress_std17; aRequest: nsIRequest_std17; aState: PRUint32): nsresult; extdecl; + end; + + nsIWindowCreator_std17 = interface(nsISupports_std17) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_std17; chromeFlags: PRUint32; out _retval: nsIWebBrowserChrome_std17): nsresult; extdecl; + end; + + nsIWindowWatcher_std17 = interface(nsISupports_std17) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_std17; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_std17; out _retval: nsIDOMWindow_std17): nsresult; extdecl; + function RegisterNotification(aObserver: nsIObserver_std17): nsresult; extdecl; + function UnregisterNotification(aObserver: nsIObserver_std17): nsresult; extdecl; + function GetWindowEnumerator(out _retval: nsISimpleEnumerator_std17): nsresult; extdecl; + function GetNewPrompter(aParent: nsIDOMWindow_std17; out _retval: nsIPrompt_std17): nsresult; extdecl; + function GetNewAuthPrompter(aParent: nsIDOMWindow_std17; out _retval: nsIAuthPrompt_std17): nsresult; extdecl; + function SetWindowCreator(creator: nsIWindowCreator_std17): nsresult; extdecl; + function GetChromeForWindow(aWindow: nsIDOMWindow_std17; out _retval: nsIWebBrowserChrome_std17): nsresult; extdecl; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_std17; out _retval: nsIDOMWindow_std17): nsresult; extdecl; + function GetActiveWindow(out aActiveWindow: nsIDOMWindow_std17): Longword; extdecl; + function SetActiveWindow(aActiveWindow: nsIDOMWindow_std17): Longword; extdecl; + end; + + nsIX509Cert_std17 = interface(nsISupports_std17) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + function GetNickname(aNickname: nsAString): Longword; extdecl; + function GetEmailAddress(aEmailAddress: nsAString): Longword; extdecl; + function GetEmailAddresses(out length: PRUint32; out addresses_array): nsresult; extdecl; + function ContainsEmailAddress(const aEmailAddress: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetSubjectName(aSubjectName: nsAString): Longword; extdecl; + function GetCommonName(aCommonName: nsAString): Longword; extdecl; + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetSha1Fingerprint(aSha1Fingerprint: nsAString): Longword; extdecl; + function GetMd5Fingerprint(aMd5Fingerprint: nsAString): Longword; extdecl; + function GetTokenName(aTokenName: nsAString): Longword; extdecl; + function GetIssuerName(aIssuerName: nsAString): Longword; extdecl; + function GetSerialNumber(aSerialNumber: nsAString): Longword; extdecl; + function GetIssuerCommonName(aIssuerCommonName: nsAString): Longword; extdecl; + function GetIssuerOrganization(aIssuerOrganization: nsAString): Longword; extdecl; + function GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString): Longword; extdecl; + function GetIssuer(out aIssuer: nsIX509Cert_std17): Longword; extdecl; + function GetValidity(out aValidity: nsIX509CertValidity_std17): Longword; extdecl; + function GetDbKey(out aDbKey: PAnsiChar): Longword; extdecl; + function GetWindowTitle(out aWindowTitle: PAnsiChar): Longword; extdecl; + function GetChain(out _retval: nsIArray_std17): nsresult; extdecl; + function GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array): nsresult; extdecl; + function GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString): nsresult; extdecl; + function VerifyForUsage(usage: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function GetASN1Structure(out aASN1Structure: nsIASN1Object_std17): Longword; extdecl; + function GetRawDER(out length: PRUint32; out data_array): nsresult; extdecl; + function Equals(other: nsIX509Cert_std17; out _retval: PRBool): nsresult; extdecl; + end; + + nsIX509CertDB_std17 = interface(nsISupports_std17) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_std17; const aNickname: nsAString; out _retval: nsIX509Cert_std17): nsresult; extdecl; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_std17; out _retval: nsIX509Cert_std17): nsresult; extdecl; + function FindCertNicknames(aToken: nsISupports_std17; aType: PRUint32; out count: PRUint32; out certNameList_array): nsresult; extdecl; + function FindEmailEncryptionCert(const aNickname: nsAString; out _retval: nsIX509Cert_std17): nsresult; extdecl; + function FindEmailSigningCert(const aNickname: nsAString; out _retval: nsIX509Cert_std17): nsresult; extdecl; + function FindCertByEmailAddress(aToken: nsISupports_std17; const aEmailAddress: PAnsiChar; out _retval: nsIX509Cert_std17): nsresult; extdecl; + function ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_std17): nsresult; extdecl; + function ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std17): nsresult; extdecl; + function ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std17): nsresult; extdecl; + function ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std17): nsresult; extdecl; + function DeleteCertificate(aCert: nsIX509Cert_std17): nsresult; extdecl; + function SetCertTrust(cert: nsIX509Cert_std17; _type: PRUint32; trust: PRUint32): nsresult; extdecl; + function IsCertTrusted(cert: nsIX509Cert_std17; certType: PRUint32; trustType: PRUint32; out _retval: PRBool): nsresult; extdecl; + function ImportCertsFromFile(aToken: nsISupports_std17; aFile: nsILocalFile_std17; aType: PRUint32): nsresult; extdecl; + function ImportPKCS12File(aToken: nsISupports_std17; aFile: nsILocalFile_std17): nsresult; extdecl; + function ExportPKCS12File(aToken: nsISupports_std17; aFile: nsILocalFile_std17; count: PRUint32; const aCerts_array): nsresult; extdecl; + function GetOCSPResponders(out _retval: nsIArray_std17): nsresult; extdecl; + function GetIsOcspOn(out aIsOcspOn: PRBool): Longword; extdecl; + function ConstructX509FromBase64(const base64: PAnsiChar; out _retval: nsIX509Cert_std17): nsresult; extdecl; + end; + + nsIX509CertValidity_std17 = interface(nsISupports_std17) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(out aNotBefore: PRTime): Longword; extdecl; + function GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString): Longword; extdecl; + function GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString): Longword; extdecl; + function GetNotBeforeGMT(aNotBeforeGMT: nsAString): Longword; extdecl; + function GetNotAfter(out aNotAfter: PRTime): Longword; extdecl; + function GetNotAfterLocalTime(aNotAfterLocalTime: nsAString): Longword; extdecl; + function GetNotAfterLocalDay(aNotAfterLocalDay: nsAString): Longword; extdecl; + function GetNotAfterGMT(aNotAfterGMT: nsAString): Longword; extdecl; + end; + +implementation + +end. diff --git a/components/geckoport/version2/each-version/nsXPCOM_std18.pas b/components/geckoport/version2/each-version/nsXPCOM_std18.pas new file mode 100644 index 000000000..89d0d24b0 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_std18.pas @@ -0,0 +1,3567 @@ +unit nsXPCOM_std18; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsConsts, nsGeckoStrings, nsTypes; + +const + NS_ISUPPORTS_STD18_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_STD18_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_STD18_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IMUTABLEARRAY_STD18_IID: TGUID = '{af059da0-c85b-40ec-af07-ae4bfdc192cc}'; + + NS_IASN1OBJECT_STD18_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_STD18_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_STD18_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_STD18_ASN1_INTEGER = 2; + NS_IASN1OBJECT_STD18_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_STD18_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_STD18_ASN1_NULL = 5; + NS_IASN1OBJECT_STD18_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_STD18_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_STD18_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_STD18_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_STD18_ASN1_SET = 17; + NS_IASN1OBJECT_STD18_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_STD18_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_STD18_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_STD18_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_STD18_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_STD18_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_STD18_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_STD18_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_STD18_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_STD18_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_STD18_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_STD18_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_STD18_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_STD18_IID: TGUID = '{2f977d45-5485-11d4-87e2-0010a4e75ef2}'; + NS_IAUTHPROMPT_STD18_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_STD18_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_STD18_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_IBADCERTLISTENER_STD18_IID: TGUID = '{86960956-edb0-11d4-998b-00b0d02354a0}'; + NS_IBADCERTLISTENER_STD18_UNINIT_ADD_FLAG = -1; + NS_IBADCERTLISTENER_STD18_ADD_TRUSTED_FOR_SESSION = 1; + NS_IBADCERTLISTENER_STD18_ADD_TRUSTED_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_STD18_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_STD18_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_STD18_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_STD18_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_STD18_LOAD_NORMAL = 0; + NS_IREQUEST_STD18_LOAD_BACKGROUND = 1; + NS_IREQUEST_STD18_INHIBIT_CACHING = 128; + NS_IREQUEST_STD18_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_STD18_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_STD18_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_STD18_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_STD18_VALIDATE_NEVER = 4096; + NS_IREQUEST_STD18_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_STD18_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_STD18_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_STD18_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_STD18_LOAD_REPLACE = 262144; + NS_ICHANNEL_STD18_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_STD18_LOAD_TARGETED = 1048576; + + NS_IPROGRAMMINGLANGUAGE_STD18_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_STD18_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_STD18_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_STD18_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_STD18_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_STD18_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_STD18_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_STD18_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_STD18_JAVASCRIPT2 = 7; + + NS_ICLASSINFO_STD18_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_STD18_SINGLETON = 1; + NS_ICLASSINFO_STD18_THREADSAFE = 2; + NS_ICLASSINFO_STD18_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_STD18_DOM_OBJECT = 8; + NS_ICLASSINFO_STD18_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_STD18_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_STD18_CONTENT_NODE = 64; + NS_ICLASSINFO_STD18_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_STD18_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_STD18_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_STD18_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_STD18_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_STD18_CONTEXT_INPUT = 16; + + NS_ICOOKIE_STD18_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_STD18_STATUS_UNKNOWN = 0; + NS_ICOOKIE_STD18_STATUS_ACCEPTED = 1; + NS_ICOOKIE_STD18_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_STD18_STATUS_FLAGGED = 3; + NS_ICOOKIE_STD18_STATUS_REJECTED = 4; + NS_ICOOKIE_STD18_POLICY_UNKNOWN = 0; + NS_ICOOKIE_STD18_POLICY_NONE = 1; + NS_ICOOKIE_STD18_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_STD18_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_STD18_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_STD18_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_STD18_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_STD18_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_STD18_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_STD18_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_STD18_NORMAL_FILE_TYPE = 0; + NS_IFILE_STD18_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_STD18_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_STD18_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_STD18_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_STD18_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_STD18_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_STD18_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_STD18_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_STD18_ELEMENT_NODE = 1; + NS_IDOMNODE_STD18_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_STD18_TEXT_NODE = 3; + NS_IDOMNODE_STD18_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_STD18_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_STD18_ENTITY_NODE = 6; + NS_IDOMNODE_STD18_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_STD18_COMMENT_NODE = 8; + NS_IDOMNODE_STD18_DOCUMENT_NODE = 9; + NS_IDOMNODE_STD18_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_STD18_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_STD18_NOTATION_NODE = 12; + + NS_IDOMATTR_STD18_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_STD18_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_STD18_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_STD18_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_STD18_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_STD18_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_STD18_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_STD18_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_STD18_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_STD18_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_STD18_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_STD18_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_STD18_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_STD18_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_STD18_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_STD18_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_STD18_STYLE_RULE = 1; + NS_IDOMCSSRULE_STD18_CHARSET_RULE = 2; + NS_IDOMCSSRULE_STD18_IMPORT_RULE = 3; + NS_IDOMCSSRULE_STD18_MEDIA_RULE = 4; + NS_IDOMCSSRULE_STD18_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_STD18_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_STD18_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_STD18_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_STD18_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_STD18_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_STD18_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_STD18_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_STD18_CAPTURING_PHASE = 1; + NS_IDOMEVENT_STD18_AT_TARGET = 2; + NS_IDOMEVENT_STD18_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_STD18_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_STD18_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_STD18_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_STD18_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_STD18_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_STD18_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_STD18_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_STD18_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_STD18_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_STD18_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_STD18_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_STD18_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_STD18_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_STD18_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_STD18_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_STD18_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_STD18_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_STD18_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_STD18_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_STD18_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_STD18_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_STD18_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_STD18_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_STD18_INVALID_ACCESS_ERR = 15; + NS_IDOMDOMEXCEPTION_STD18_VALIDATION_ERR = 16; + NS_IDOMDOMEXCEPTION_STD18_TYPE_MISMATCH_ERR = 17; + + NS_IDOMDOMIMPLEMENTATION_STD18_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_STD18_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENTCSSINLINESTYLE_STD18_IID: TGUID = '{99715845-95fc-4a56-aa53-214b65c26e22}'; + + NS_IDOMENTITY_STD18_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_STD18_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_STD18_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_STD18_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_STD18_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_STD18_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_STD18_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_STD18_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_STD18_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_STD18_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_STD18_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_STD18_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_STD18_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_STD18_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_STD18_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_STD18_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_STD18_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_STD18_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_STD18_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_STD18_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_STD18_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_STD18_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_STD18_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_STD18_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_STD18_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_STD18_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_STD18_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_STD18_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_STD18_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_STD18_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_STD18_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_STD18_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_STD18_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_STD18_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_STD18_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_STD18_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_STD18_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_STD18_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_STD18_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_STD18_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_STD18_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_STD18_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_STD18_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_STD18_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_STD18_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_STD18_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_STD18_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_STD18_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_STD18_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_STD18_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_STD18_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_STD18_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_STD18_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_STD18_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_STD18_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_STD18_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_STD18_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_STD18_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_STD18_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_STD18_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_STD18_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_STD18_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_STD18_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_STD18_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_STD18_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_STD18_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_STD18_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_STD18_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNSDOCUMENTSTYLE_STD18_IID: TGUID = '{4ecdf254-a21e-47b0-8d72-55da8208299f}'; + + NS_IDOMPROCESSINGINSTRUCTION_STD18_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_STD18_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_STD18_START_TO_START = 0; + NS_IDOMRANGE_STD18_START_TO_END = 1; + NS_IDOMRANGE_STD18_END_TO_END = 2; + NS_IDOMRANGE_STD18_END_TO_START = 3; + + NS_IDOMRECT_STD18_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_STD18_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTYLESHEETLIST_STD18_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_STD18_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_STD18_IID: TGUID = '{65455132-b96a-40ec-adea-52fa22b1028c}'; + + NS_IDOMWINDOWCOLLECTION_STD18_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOWUTILS_STD18_IID: TGUID = '{8a157a4f-a81e-489f-baf2-bc8970d60472}'; + + NS_IEMBEDDINGSITEWINDOW_STD18_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_STD18_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_STD18_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_STD18_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_STD18_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_STD18_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_STD18_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_STD18_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_STD18_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHISTORYENTRY_STD18_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_STD18_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_STD18_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_STD18_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_STD18_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_STD18_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_ILOADGROUP_STD18_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_STD18_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_STD18_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_STD18_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IOBSERVER_STD18_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_STD18_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_STD18_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPREFBRANCH_STD18_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_STD18_PREF_INVALID = 0; + NS_IPREFBRANCH_STD18_PREF_STRING = 32; + NS_IPREFBRANCH_STD18_PREF_INT = 64; + NS_IPREFBRANCH_STD18_PREF_BOOL = 128; + + NS_IPREFBRANCH2_STD18_IID: TGUID = '{74567534-eb94-4b1c-8f45-389643bfc555}'; + + NS_IPREFLOCALIZEDSTRING_STD18_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_STD18_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_STD18_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_STD18_IID: TGUID = '{f1094df6-ce0e-42c9-9847-2f663172c38d}'; + NS_IPRINTSETTINGS_STD18_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_STD18_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_STD18_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_STD18_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_STD18_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_STD18_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_STD18_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_STD18_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_STD18_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_STD18_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_STD18_kInitSavePaperName = 1024; + NS_IPRINTSETTINGS_STD18_kInitSavePaperSizeUnit = 2048; + NS_IPRINTSETTINGS_STD18_kInitSavePaperSizeType = 4096; + NS_IPRINTSETTINGS_STD18_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_STD18_kInitSavePaperWidth = 16384; + NS_IPRINTSETTINGS_STD18_kInitSavePaperHeight = 32768; + NS_IPRINTSETTINGS_STD18_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_STD18_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_STD18_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_STD18_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_STD18_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_STD18_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_STD18_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_STD18_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_STD18_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_STD18_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_STD18_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_STD18_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_STD18_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_STD18_kInitSaveColorspace = 536870912; + NS_IPRINTSETTINGS_STD18_kInitSaveResolutionName = 1073741824; + NS_IPRINTSETTINGS_STD18_kInitSaveDownloadFonts = 2147483648; + NS_IPRINTSETTINGS_STD18_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_STD18_kPrintOddPages = 1; + NS_IPRINTSETTINGS_STD18_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_STD18_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_STD18_kRangeAllPages = 0; + NS_IPRINTSETTINGS_STD18_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_STD18_kRangeSelection = 2; + NS_IPRINTSETTINGS_STD18_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_STD18_kJustLeft = 0; + NS_IPRINTSETTINGS_STD18_kJustCenter = 1; + NS_IPRINTSETTINGS_STD18_kJustRight = 2; + NS_IPRINTSETTINGS_STD18_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_STD18_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_STD18_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_STD18_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_STD18_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_STD18_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_STD18_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_STD18_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_STD18_kNoFrames = 0; + NS_IPRINTSETTINGS_STD18_kFramesAsIs = 1; + NS_IPRINTSETTINGS_STD18_kSelectedFrame = 2; + NS_IPRINTSETTINGS_STD18_kEachFrameSep = 3; + NS_IPRINTSETTINGS_STD18_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_STD18_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_STD18_kFrameEnableAsIsAndEach = 2; + + NS_IPROFILE_STD18_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_STD18_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_STD18_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_STD18_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROMPT_STD18_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_STD18_BUTTON_POS_0 = 1; + NS_IPROMPT_STD18_BUTTON_POS_1 = 256; + NS_IPROMPT_STD18_BUTTON_POS_2 = 65536; + NS_IPROMPT_STD18_BUTTON_TITLE_OK = 1; + NS_IPROMPT_STD18_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_STD18_BUTTON_TITLE_YES = 3; + NS_IPROMPT_STD18_BUTTON_TITLE_NO = 4; + NS_IPROMPT_STD18_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_STD18_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_STD18_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_STD18_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_STD18_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_STD18_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_STD18_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_STD18_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_STD18_STD_OK_CANCEL_BUTTONS = 513; + + NS_IPROMPTSERVICE_STD18_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_STD18_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_STD18_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_STD18_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_STD18_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_STD18_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_STD18_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_STD18_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_STD18_URI_STD = 0; + NS_IPROTOCOLHANDLER_STD18_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_STD18_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_STD18_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_STD18_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_STD18_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_STD18_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_STD18_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_STD18_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_STD18_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_STD18_IID: TGUID = '{7294fe9b-14d8-11d5-9882-00c04fa02f40}'; + + NS_ISHISTORYLISTENER_STD18_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_STD18_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_STD18_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_STD18_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_STD18_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_STD18_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_STD18_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_STD18_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_STD18_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_STD18_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_STD18_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_STD18_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_STD18_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_STD18_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_STD18_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_STD18_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_STD18_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_STD18_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_STD18_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_STD18_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_STD18_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_STD18_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_STD18_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_STD18_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_STD18_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_STD18_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_STD18_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_STD18_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_STD18_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_STD18_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_STD18_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_STD18_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_STD18_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_STD18_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_STD18_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_STD18_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_STD18_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_STD18_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_STD18_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_STD18_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_STD18_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_STD18_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_STD18_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_STD18_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_STD18_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_STD18_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_STD18_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_STD18_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_STD18_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_STD18_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_STD18_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_STD18_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_STD18_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_STD18_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_STD18_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_STD18_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_STD18_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_STD18_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_STD18_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_STD18_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_STD18_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_STD18_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_STD18_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_STD18_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_STD18_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_STD18_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_STD18_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_STD18_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_STD18_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_STD18_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_STD18_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBBROWSERSTREAM_STD18_IID: TGUID = '{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'; + + NS_IWEBPROGRESS_STD18_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_STD18_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_STD18_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_STD18_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_STD18_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_STD18_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_STD18_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_STD18_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_STD18_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_STD18_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_STD18_NOTIFY_ALL = 255; + + NS_IWEBPROGRESSLISTENER_STD18_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_STD18_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_STD18_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_STD18_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_STD18_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_STD18_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_STD18_STATE_RESTORING = 16777216; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_STD18_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_STD18_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_STD18_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_STD18_STATE_SECURE_LOW = 131072; + + NS_IWINDOWCREATOR_STD18_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_STD18_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_STD18_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_STD18_UNKNOWN_CERT = 0; + NS_IX509CERT_STD18_CA_CERT = 1; + NS_IX509CERT_STD18_USER_CERT = 2; + NS_IX509CERT_STD18_EMAIL_CERT = 4; + NS_IX509CERT_STD18_SERVER_CERT = 8; + NS_IX509CERT_STD18_VERIFIED_OK = 0; + NS_IX509CERT_STD18_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_STD18_CERT_REVOKED = 2; + NS_IX509CERT_STD18_CERT_EXPIRED = 4; + NS_IX509CERT_STD18_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_STD18_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_STD18_ISSUER_UNKNOWN = 32; + NS_IX509CERT_STD18_INVALID_CA = 64; + NS_IX509CERT_STD18_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_STD18_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_STD18_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_STD18_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_STD18_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_STD18_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_STD18_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_STD18_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_STD18_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_STD18_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_STD18_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_STD18_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_STD18_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_STD18_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_STD18_UNTRUSTED = 0; + NS_IX509CERTDB_STD18_TRUSTED_SSL = 1; + NS_IX509CERTDB_STD18_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_STD18_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_STD18_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_std18 = interface; + mozIJSSubScriptLoader_std18 = interface; + nsIArray_std18 = interface; + nsIMutableArray_std18 = interface; + nsIASN1Object_std18 = interface; + nsIASN1Sequence_std18 = interface; + nsIAuthPrompt_std18 = interface; + nsIBadCertListener_std18 = interface; + nsISimpleEnumerator_std18 = interface; + nsICategoryManager_std18 = interface; + nsICertificateDialogs_std18 = interface; + nsIRequest_std18 = interface; + nsIChannel_std18 = interface; + nsIProgrammingLanguage_std18 = interface; + nsIClassInfo_std18 = interface; + nsIClipboardCommands_std18 = interface; + nsIComponentManager_std18 = interface; + nsIComponentRegistrar_std18 = interface; + nsIContextMenuListener_std18 = interface; + nsICookie_std18 = interface; + nsICookieManager_std18 = interface; + nsICRLInfo_std18 = interface; + nsIDebug_std18 = interface; + nsIFile_std18 = interface; + nsIDirectoryServiceProvider_std18 = interface; + nsIDirectoryServiceProvider2_std18 = interface; + nsIDirectoryService_std18 = interface; + nsIDOM3DocumentEvent_std18 = interface; + nsIDOM3EventTarget_std18 = interface; + nsIDOMAbstractView_std18 = interface; + nsIDOMNode_std18 = interface; + nsIDOMAttr_std18 = interface; + nsIDOMBarProp_std18 = interface; + nsIDOMCharacterData_std18 = interface; + nsIDOMText_std18 = interface; + nsIDOMCDATASection_std18 = interface; + nsIDOMComment_std18 = interface; + nsIDOMCounter_std18 = interface; + nsIDOMCSSValue_std18 = interface; + nsIDOMCSSPrimitiveValue_std18 = interface; + nsIDOMCSSRule_std18 = interface; + nsIDOMCSSRuleList_std18 = interface; + nsIDOMCSSStyleDeclaration_std18 = interface; + nsIDOMStyleSheet_std18 = interface; + nsIDOMCSSStyleSheet_std18 = interface; + nsIDOMCSSValueList_std18 = interface; + nsIDOMEvent_std18 = interface; + nsIDOMCustomEvent_std18 = interface; + nsIDOMDocument_std18 = interface; + nsIDOMDocumentEvent_std18 = interface; + nsIDOMDocumentFragment_std18 = interface; + nsIDOMDocumentRange_std18 = interface; + nsIDOMDocumentStyle_std18 = interface; + nsIDOMDocumentType_std18 = interface; + nsIDOMDocumentView_std18 = interface; + nsIDOMDOMException_std18 = interface; + nsIDOMDOMImplementation_std18 = interface; + nsIDOMElement_std18 = interface; + nsIDOMElementCSSInlineStyle_std18 = interface; + nsIDOMEntity_std18 = interface; + nsIDOMEntityReference_std18 = interface; + nsIDOMEventGroup_std18 = interface; + nsIDOMEventListener_std18 = interface; + nsIDOMEventTarget_std18 = interface; + nsIDOMHTMLElement_std18 = interface; + nsIDOMHTMLAnchorElement_std18 = interface; + nsIDOMHTMLAppletElement_std18 = interface; + nsIDOMHTMLAreaElement_std18 = interface; + nsIDOMHTMLBaseElement_std18 = interface; + nsIDOMHTMLBaseFontElement_std18 = interface; + nsIDOMHTMLBodyElement_std18 = interface; + nsIDOMHTMLBRElement_std18 = interface; + nsIDOMHTMLButtonElement_std18 = interface; + nsIDOMHTMLCollection_std18 = interface; + nsIDOMHTMLDirectoryElement_std18 = interface; + nsIDOMHTMLDivElement_std18 = interface; + nsIDOMHTMLDListElement_std18 = interface; + nsIDOMHTMLDocument_std18 = interface; + nsIDOMHTMLEmbedElement_std18 = interface; + nsIDOMHTMLFieldSetElement_std18 = interface; + nsIDOMHTMLFontElement_std18 = interface; + nsIDOMHTMLFormElement_std18 = interface; + nsIDOMHTMLFrameElement_std18 = interface; + nsIDOMHTMLFrameSetElement_std18 = interface; + nsIDOMHTMLHeadElement_std18 = interface; + nsIDOMHTMLHeadingElement_std18 = interface; + nsIDOMHTMLHRElement_std18 = interface; + nsIDOMHTMLHtmlElement_std18 = interface; + nsIDOMHTMLIFrameElement_std18 = interface; + nsIDOMHTMLImageElement_std18 = interface; + nsIDOMHTMLInputElement_std18 = interface; + nsIDOMHTMLIsIndexElement_std18 = interface; + nsIDOMHTMLLabelElement_std18 = interface; + nsIDOMHTMLLegendElement_std18 = interface; + nsIDOMHTMLLIElement_std18 = interface; + nsIDOMHTMLLinkElement_std18 = interface; + nsIDOMHTMLMapElement_std18 = interface; + nsIDOMHTMLMenuElement_std18 = interface; + nsIDOMHTMLMetaElement_std18 = interface; + nsIDOMHTMLModElement_std18 = interface; + nsIDOMHTMLObjectElement_std18 = interface; + nsIDOMHTMLOListElement_std18 = interface; + nsIDOMHTMLOptGroupElement_std18 = interface; + nsIDOMHTMLOptionElement_std18 = interface; + nsIDOMHTMLOptionsCollection_std18 = interface; + nsIDOMHTMLParagraphElement_std18 = interface; + nsIDOMHTMLParamElement_std18 = interface; + nsIDOMHTMLPreElement_std18 = interface; + nsIDOMHTMLQuoteElement_std18 = interface; + nsIDOMHTMLScriptElement_std18 = interface; + nsIDOMHTMLSelectElement_std18 = interface; + nsIDOMHTMLStyleElement_std18 = interface; + nsIDOMHTMLTableCaptionElement_std18 = interface; + nsIDOMHTMLTableCellElement_std18 = interface; + nsIDOMHTMLTableColElement_std18 = interface; + nsIDOMHTMLTableElement_std18 = interface; + nsIDOMHTMLTableRowElement_std18 = interface; + nsIDOMHTMLTableSectionElement_std18 = interface; + nsIDOMHTMLTextAreaElement_std18 = interface; + nsIDOMHTMLTitleElement_std18 = interface; + nsIDOMHTMLUListElement_std18 = interface; + nsIDOMMediaList_std18 = interface; + nsIDOMUIEvent_std18 = interface; + nsIDOMMouseEvent_std18 = interface; + nsIDOMNamedNodeMap_std18 = interface; + nsIDOMNodeList_std18 = interface; + nsIDOMNotation_std18 = interface; + nsIDOMNSDocumentStyle_std18 = interface; + nsIDOMProcessingInstruction_std18 = interface; + nsIDOMRange_std18 = interface; + nsIDOMRect_std18 = interface; + nsIDOMRGBColor_std18 = interface; + nsIDOMStyleSheetList_std18 = interface; + nsIDOMWindow_std18 = interface; + nsIDOMWindow2_std18 = interface; + nsIDOMWindowCollection_std18 = interface; + nsIDOMWindowUtils_std18 = interface; + nsIEmbeddingSiteWindow_std18 = interface; + nsIFactory_std18 = interface; + nsIURI_std18 = interface; + nsIURL_std18 = interface; + nsIFileURL_std18 = interface; + nsIGlobalHistory_std18 = interface; + nsIHistoryEntry_std18 = interface; + nsIHttpChannel_std18 = interface; + nsIHttpHeaderVisitor_std18 = interface; + nsIInputStream_std18 = interface; + nsIInterfaceRequestor_std18 = interface; + nsIIOService_std18 = interface; + nsILoadGroup_std18 = interface; + nsILocalFile_std18 = interface; + nsIMemory_std18 = interface; + nsIModule_std18 = interface; + nsIObserver_std18 = interface; + nsIObserverService_std18 = interface; + nsIOutputStream_std18 = interface; + nsIPrefBranch_std18 = interface; + nsIPrefBranch2_std18 = interface; + nsIPrefLocalizedString_std18 = interface; + nsIPrefService_std18 = interface; + nsIPrintSession_std18 = interface; + nsIPrintSettings_std18 = interface; + nsIProfile_std18 = interface; + nsIProfileChangeStatus_std18 = interface; + nsIPrompt_std18 = interface; + nsIPromptService_std18 = interface; + nsIProperties_std18 = interface; + nsIProtocolHandler_std18 = interface; + nsIRequestObserver_std18 = interface; + nsIScriptableInputStream_std18 = interface; + nsISecurityWarningDialogs_std18 = interface; + nsISelection_std18 = interface; + nsIServiceManager_std18 = interface; + nsISHistory_std18 = interface; + nsISHistoryListener_std18 = interface; + nsIStreamListener_std18 = interface; + nsISupportsPrimitive_std18 = interface; + nsISupportsID_std18 = interface; + nsISupportsCString_std18 = interface; + nsISupportsString_std18 = interface; + nsISupportsPRBool_std18 = interface; + nsISupportsPRUint8_std18 = interface; + nsISupportsPRUint16_std18 = interface; + nsISupportsPRUint32_std18 = interface; + nsISupportsPRUint64_std18 = interface; + nsISupportsPRTime_std18 = interface; + nsISupportsChar_std18 = interface; + nsISupportsPRInt16_std18 = interface; + nsISupportsPRInt32_std18 = interface; + nsISupportsPRInt64_std18 = interface; + nsISupportsFloat_std18 = interface; + nsISupportsDouble_std18 = interface; + nsISupportsVoid_std18 = interface; + nsISupportsInterfacePointer_std18 = interface; + nsITooltipListener_std18 = interface; + nsITooltipTextProvider_std18 = interface; + nsITraceRefcnt_std18 = interface; + nsIUnicharStreamListener_std18 = interface; + nsIUploadChannel_std18 = interface; + nsIURIContentListener_std18 = interface; + nsIWeakReference_std18 = interface; + nsISupportsWeakReference_std18 = interface; + nsIWebBrowser_std18 = interface; + nsIWebBrowserChrome_std18 = interface; + nsIWebBrowserChromeFocus_std18 = interface; + nsIWebBrowserFind_std18 = interface; + nsIWebBrowserFindInFrames_std18 = interface; + nsIWebBrowserFocus_std18 = interface; + nsIWebBrowserPrint_std18 = interface; + nsIWebBrowserSetup_std18 = interface; + nsIWebBrowserStream_std18 = interface; + nsIWebProgress_std18 = interface; + nsIWebProgressListener_std18 = interface; + nsIWindowCreator_std18 = interface; + nsIWindowWatcher_std18 = interface; + nsIX509Cert_std18 = interface; + nsIX509CertDB_std18 = interface; + nsIX509CertValidity_std18 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_std18; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std18; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_std18 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_std18 = interface(nsISupports_std18) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + function LoadSubScript(const url: PWideChar): nsresult; extdecl; + end; + + nsIArray_std18 = interface(nsISupports_std18) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result): nsresult; extdecl; + function IndexOf(startIndex: PRUint32; element: nsISupports_std18; out _retval: PRUint32): nsresult; extdecl; + function Enumerate(out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + end; + + nsIMutableArray_std18 = interface(nsIArray_std18) + ['{af059da0-c85b-40ec-af07-ae4bfdc192cc}'] + function AppendElement(element: nsISupports_std18; weak: PRBool): nsresult; extdecl; + function RemoveElementAt(index: PRUint32): nsresult; extdecl; + function InsertElementAt(element: nsISupports_std18; index: PRUint32; weak: PRBool): nsresult; extdecl; + function ReplaceElementAt(element: nsISupports_std18; index: PRUint32; weak: PRBool): nsresult; extdecl; + function Clear(): nsresult; extdecl; + end; + + nsIASN1Object_std18 = interface(nsISupports_std18) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(out aType: PRUint32): Longword; extdecl; + function SetType(aType: PRUint32): Longword; extdecl; + function GetTag(out aTag: PRUint32): Longword; extdecl; + function SetTag(aTag: PRUint32): Longword; extdecl; + function GetDisplayName(aDisplayName: nsAString): Longword; extdecl; + function SetDisplayName(const aDisplayName: nsAString): Longword; extdecl; + function GetDisplayValue(aDisplayValue: nsAString): Longword; extdecl; + function SetDisplayValue(const aDisplayValue: nsAString): Longword; extdecl; + end; + + nsIASN1Sequence_std18 = interface(nsIASN1Object_std18) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(out aASN1Objects: nsIMutableArray_std18): Longword; extdecl; + function SetASN1Objects(aASN1Objects: nsIMutableArray_std18): Longword; extdecl; + function GetIsValidContainer(out aIsValidContainer: PRBool): Longword; extdecl; + function SetIsValidContainer(aIsValidContainer: PRBool): Longword; extdecl; + function GetIsExpanded(out aIsExpanded: PRBool): Longword; extdecl; + function SetIsExpanded(aIsExpanded: PRBool): Longword; extdecl; + end; + + nsIAuthPrompt_std18 = interface(nsISupports_std18) + ['{2f977d45-5485-11d4-87e2-0010a4e75ef2}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIBadCertListener_std18 = interface(nsISupports_std18) + ['{86960956-edb0-11d4-998b-00b0d02354a0}'] + function ConfirmUnknownIssuer(socketInfo: nsIInterfaceRequestor_std18; cert: nsIX509Cert_std18; out certAddType: PRInt16; out _retval: PRBool): nsresult; extdecl; + function ConfirmMismatchDomain(socketInfo: nsIInterfaceRequestor_std18; const targetURL: nsACString; cert: nsIX509Cert_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmCertExpired(socketInfo: nsIInterfaceRequestor_std18; cert: nsIX509Cert_std18; out _retval: PRBool): nsresult; extdecl; + function NotifyCrlNextupdate(socketInfo: nsIInterfaceRequestor_std18; const targetURL: nsACString; cert: nsIX509Cert_std18): nsresult; extdecl; + end; + + nsISimpleEnumerator_std18 = interface(nsISupports_std18) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(out _retval: PRBool): nsresult; extdecl; + function GetNext(out _retval: nsISupports_std18): nsresult; extdecl; + end; + + nsICategoryManager_std18 = interface(nsISupports_std18) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool; out _retval: PAnsiChar): nsresult; extdecl; + function DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool): nsresult; extdecl; + function DeleteCategory(const aCategory: PAnsiChar): nsresult; extdecl; + function EnumerateCategory(const aCategory: PAnsiChar; out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + function EnumerateCategories(out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + end; + + nsICertificateDialogs_std18 = interface(nsISupports_std18) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_std18; cert: nsIX509Cert_std18; out trust: PRUint32; out _retval: PRBool): nsresult; extdecl; + function NotifyCACertExists(ctx: nsIInterfaceRequestor_std18): nsresult; extdecl; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std18; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std18; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function ViewCert(ctx: nsIInterfaceRequestor_std18; cert: nsIX509Cert_std18): nsresult; extdecl; + function CrlImportStatusDialog(ctx: nsIInterfaceRequestor_std18; crl: nsICRLInfo_std18): nsresult; extdecl; + end; + + nsIRequest_std18 = interface(nsISupports_std18) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + function GetName(aName: nsACString): Longword; extdecl; + function IsPending(out _retval: PRBool): nsresult; extdecl; + function GetStatus(out aStatus: nsresult): Longword; extdecl; + function Cancel(aStatus: nsresult): nsresult; extdecl; + function Suspend(): nsresult; extdecl; + function Resume(): nsresult; extdecl; + function GetLoadGroup(out aLoadGroup: nsILoadGroup_std18): Longword; extdecl; + function SetLoadGroup(aLoadGroup: nsILoadGroup_std18): Longword; extdecl; + function GetLoadFlags(out aLoadFlags: nsLoadFlags): Longword; extdecl; + function SetLoadFlags(aLoadFlags: nsLoadFlags): Longword; extdecl; + end; + + nsIChannel_std18 = interface(nsIRequest_std18) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(out aOriginalURI: nsIURI_std18): Longword; extdecl; + function SetOriginalURI(aOriginalURI: nsIURI_std18): Longword; extdecl; + function GetURI(out aURI: nsIURI_std18): Longword; extdecl; + function GetOwner(out aOwner: nsISupports_std18): Longword; extdecl; + function SetOwner(aOwner: nsISupports_std18): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std18): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std18): Longword; extdecl; + function GetSecurityInfo(out aSecurityInfo: nsISupports_std18): Longword; extdecl; + function GetContentType(aContentType: nsACString): Longword; extdecl; + function SetContentType(const aContentType: nsACString): Longword; extdecl; + function GetContentCharset(aContentCharset: nsACString): Longword; extdecl; + function SetContentCharset(const aContentCharset: nsACString): Longword; extdecl; + function GetContentLength(out aContentLength: PRInt32): Longword; extdecl; + function SetContentLength(aContentLength: PRInt32): Longword; extdecl; + function Open(out _retval: nsIInputStream_std18): nsresult; extdecl; + function AsyncOpen(aListener: nsIStreamListener_std18; aContext: nsISupports_std18): nsresult; extdecl; + end; + + nsIProgrammingLanguage_std18 = interface(nsISupports_std18) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIClassInfo_std18 = interface(nsISupports_std18) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + function GetInterfaces(out count: PRUint32; out _array_array): nsresult; extdecl; + function GetHelperForLanguage(language: PRUint32; out _retval: nsISupports_std18): nsresult; extdecl; + function GetContractID(out aContractID: PAnsiChar): Longword; extdecl; + function GetClassDescription(out aClassDescription: PAnsiChar): Longword; extdecl; + function GetClassID(out aClassID: PGUID): Longword; extdecl; + function GetImplementationLanguage(out aImplementationLanguage: PRUint32): Longword; extdecl; + function GetFlags(out aFlags: PRUint32): Longword; extdecl; + function GetClassIDNoAlloc(out aClassIDNoAlloc: TGUID): Longword; extdecl; + end; + + nsIClipboardCommands_std18 = interface(nsISupports_std18) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(out _retval: PRBool): nsresult; extdecl; + function CanCopySelection(out _retval: PRBool): nsresult; extdecl; + function CanCopyLinkLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageContents(out _retval: PRBool): nsresult; extdecl; + function CanPaste(out _retval: PRBool): nsresult; extdecl; + function CutSelection(): nsresult; extdecl; + function CopySelection(): nsresult; extdecl; + function CopyLinkLocation(): nsresult; extdecl; + function CopyImageLocation(): nsresult; extdecl; + function CopyImageContents(): nsresult; extdecl; + function Paste(): nsresult; extdecl; + function SelectAll(): nsresult; extdecl; + function SelectNone(): nsresult; extdecl; + end; + + nsIComponentManager_std18 = interface(nsISupports_std18) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + function GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_std18; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_std18; constref aIID: TGUID; out _result): nsresult; extdecl; + end; + + nsIComponentRegistrar_std18 = interface(nsISupports_std18) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + function AutoRegister(aSpec: nsIFile_std18): nsresult; extdecl; + function AutoUnregister(aSpec: nsIFile_std18): nsresult; extdecl; + function RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_std18): nsresult; extdecl; + function UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_std18): nsresult; extdecl; + function RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_std18; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_std18): nsresult; extdecl; + function IsCIDRegistered(constref aClass: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsContractIDRegistered(const aContractID: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function EnumerateCIDs(out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + function EnumerateContractIDs(out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + function CIDToContractID(constref aClass: TGUID; out _retval: PAnsiChar): nsresult; extdecl; + function ContractIDToCID(const aContractID: PAnsiChar; out _retval: PGUID): nsresult; extdecl; + end; + + nsIContextMenuListener_std18 = interface(nsISupports_std18) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + function OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_std18; aNode: nsIDOMNode_std18): nsresult; extdecl; + end; + + nsICookie_std18 = interface(nsISupports_std18) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + function GetName(aName: nsACString): Longword; extdecl; + function GetValue(aValue: nsACString): Longword; extdecl; + function GetIsDomain(out aIsDomain: PRBool): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function GetIsSecure(out aIsSecure: PRBool): Longword; extdecl; + function GetExpires(out aExpires: PRUint64): Longword; extdecl; + function GetStatus(out aStatus: nsCookieStatus): Longword; extdecl; + function GetPolicy(out aPolicy: nsCookiePolicy): Longword; extdecl; + end; + + nsICookieManager_std18 = interface(nsISupports_std18) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + function RemoveAll(): nsresult; extdecl; + function GetEnumerator(out aEnumerator: nsISimpleEnumerator_std18): Longword; extdecl; + function Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool): nsresult; extdecl; + end; + + nsICRLInfo_std18 = interface(nsISupports_std18) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetLastUpdate(out aLastUpdate: PRTime): Longword; extdecl; + function GetNextUpdate(out aNextUpdate: PRTime): Longword; extdecl; + function GetLastUpdateLocale(aLastUpdateLocale: nsAString): Longword; extdecl; + function GetNextUpdateLocale(aNextUpdateLocale: nsAString): Longword; extdecl; + function GetNameInDb(aNameInDb: nsAString): Longword; extdecl; + function GetLastFetchURL(aLastFetchURL: nsACString): Longword; extdecl; + end; + + nsIDebug_std18 = interface(nsISupports_std18) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + function Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Break(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Abort(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + end; + + nsIFile_std18 = interface(nsISupports_std18) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + function Append(const node: nsAString): nsresult; extdecl; + function AppendNative(const node: nsACString): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function Create(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function GetLeafName(aLeafName: nsAString): Longword; extdecl; + function SetLeafName(const aLeafName: nsAString): Longword; extdecl; + function GetNativeLeafName(aNativeLeafName: nsACString): Longword; extdecl; + function SetNativeLeafName(const aNativeLeafName: nsACString): Longword; extdecl; + function CopyTo(newParentDir: nsIFile_std18; const newName: nsAString): nsresult; extdecl; + function CopyToNative(newParentDir: nsIFile_std18; const newName: nsACString): nsresult; extdecl; + function CopyToFollowingLinks(newParentDir: nsIFile_std18; const newName: nsAString): nsresult; extdecl; + function CopyToFollowingLinksNative(newParentDir: nsIFile_std18; const newName: nsACString): nsresult; extdecl; + function MoveTo(newParentDir: nsIFile_std18; const newName: nsAString): nsresult; extdecl; + function MoveToNative(newParentDir: nsIFile_std18; const newName: nsACString): nsresult; extdecl; + function Remove(recursive: PRBool): nsresult; extdecl; + function GetPermissions(out aPermissions: PRUint32): Longword; extdecl; + function SetPermissions(aPermissions: PRUint32): Longword; extdecl; + function GetPermissionsOfLink(out aPermissionsOfLink: PRUint32): Longword; extdecl; + function SetPermissionsOfLink(aPermissionsOfLink: PRUint32): Longword; extdecl; + function GetLastModifiedTime(out aLastModifiedTime: PRInt64): Longword; extdecl; + function SetLastModifiedTime(aLastModifiedTime: PRInt64): Longword; extdecl; + function GetLastModifiedTimeOfLink(out aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function GetFileSize(out aFileSize: PRInt64): Longword; extdecl; + function SetFileSize(aFileSize: PRInt64): Longword; extdecl; + function GetFileSizeOfLink(out aFileSizeOfLink: PRInt64): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetNativeTarget(aNativeTarget: nsACString): Longword; extdecl; + function GetPath(aPath: nsAString): Longword; extdecl; + function GetNativePath(aNativePath: nsACString): Longword; extdecl; + function Exists(out _retval: PRBool): nsresult; extdecl; + function IsWritable(out _retval: PRBool): nsresult; extdecl; + function IsReadable(out _retval: PRBool): nsresult; extdecl; + function IsExecutable(out _retval: PRBool): nsresult; extdecl; + function IsHidden(out _retval: PRBool): nsresult; extdecl; + function IsDirectory(out _retval: PRBool): nsresult; extdecl; + function IsFile(out _retval: PRBool): nsresult; extdecl; + function IsSymlink(out _retval: PRBool): nsresult; extdecl; + function IsSpecial(out _retval: PRBool): nsresult; extdecl; + function CreateUnique(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function Clone(out _retval: nsIFile_std18): nsresult; extdecl; + function Equals(inFile: nsIFile_std18; out _retval: PRBool): nsresult; extdecl; + function _Contains(inFile: nsIFile_std18; recur: PRBool; out _retval: PRBool): nsresult; extdecl; + function GetParent(out aParent: nsIFile_std18): Longword; extdecl; + function GetDirectoryEntries(out aDirectoryEntries: nsISimpleEnumerator_std18): Longword; extdecl; + end; + + nsIDirectoryServiceProvider_std18 = interface(nsISupports_std18) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool; out _retval: nsIFile_std18): nsresult; extdecl; + end; + + nsIDirectoryServiceProvider2_std18 = interface(nsIDirectoryServiceProvider_std18) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar; out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + end; + + nsIDirectoryService_std18 = interface(nsISupports_std18) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + function Init(): nsresult; extdecl; + function RegisterProvider(prov: nsIDirectoryServiceProvider_std18): nsresult; extdecl; + function UnregisterProvider(prov: nsIDirectoryServiceProvider_std18): nsresult; extdecl; + end; + + nsIDOM3DocumentEvent_std18 = interface(nsISupports_std18) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(out _retval: nsIDOMEventGroup_std18): nsresult; extdecl; + end; + + nsIDOM3EventTarget_std18 = interface(nsISupports_std18) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + function AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std18; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std18): nsresult; extdecl; + function RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std18; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std18): nsresult; extdecl; + function CanTrigger(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + function IsRegisteredHere(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAbstractView_std18 = interface(nsISupports_std18) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(out aDocument: nsIDOMDocumentView_std18): Longword; extdecl; + end; + + nsIDOMNode_std18 = interface(nsISupports_std18) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + function GetNodeName(aNodeName: nsAString): Longword; extdecl; + function GetNodeValue(aNodeValue: nsAString): Longword; extdecl; + function SetNodeValue(const aNodeValue: nsAString): Longword; extdecl; + function GetNodeType(out aNodeType: PRUint16): Longword; extdecl; + function GetParentNode(out aParentNode: nsIDOMNode_std18): Longword; extdecl; + function GetChildNodes(out aChildNodes: nsIDOMNodeList_std18): Longword; extdecl; + function GetFirstChild(out aFirstChild: nsIDOMNode_std18): Longword; extdecl; + function GetLastChild(out aLastChild: nsIDOMNode_std18): Longword; extdecl; + function GetPreviousSibling(out aPreviousSibling: nsIDOMNode_std18): Longword; extdecl; + function GetNextSibling(out aNextSibling: nsIDOMNode_std18): Longword; extdecl; + function GetAttributes(out aAttributes: nsIDOMNamedNodeMap_std18): Longword; extdecl; + function GetOwnerDocument(out aOwnerDocument: nsIDOMDocument_std18): Longword; extdecl; + function InsertBefore(newChild: nsIDOMNode_std18; refChild: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function ReplaceChild(newChild: nsIDOMNode_std18; oldChild: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function RemoveChild(oldChild: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function AppendChild(newChild: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function HasChildNodes(out _retval: PRBool): nsresult; extdecl; + function CloneNode(deep: PRBool; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function IsSupported(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetNamespaceURI(aNamespaceURI: nsAString): Longword; extdecl; + function GetPrefix(aPrefix: nsAString): Longword; extdecl; + function SetPrefix(const aPrefix: nsAString): Longword; extdecl; + function GetLocalName(aLocalName: nsAString): Longword; extdecl; + function HasAttributes(out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAttr_std18 = interface(nsIDOMNode_std18) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetSpecified(out aSpecified: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetOwnerElement(out aOwnerElement: nsIDOMElement_std18): Longword; extdecl; + end; + + nsIDOMBarProp_std18 = interface(nsISupports_std18) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(out aVisible: PRBool): Longword; extdecl; + function SetVisible(aVisible: PRBool): Longword; extdecl; + end; + + nsIDOMCharacterData_std18 = interface(nsIDOMNode_std18) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString): nsresult; extdecl; + function AppendData(const arg: nsAString): nsresult; extdecl; + function InsertData(offset: PRUint32; const arg: nsAString): nsresult; extdecl; + function DeleteData(offset: PRUint32; count: PRUint32): nsresult; extdecl; + function ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString): nsresult; extdecl; + end; + + nsIDOMText_std18 = interface(nsIDOMCharacterData_std18) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32; out _retval: nsIDOMText_std18): nsresult; extdecl; + end; + + nsIDOMCDATASection_std18 = interface(nsIDOMText_std18) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_std18 = interface(nsIDOMCharacterData_std18) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_std18 = interface(nsISupports_std18) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + function GetIdentifier(aIdentifier: nsAString): Longword; extdecl; + function GetListStyle(aListStyle: nsAString): Longword; extdecl; + function GetSeparator(aSeparator: nsAString): Longword; extdecl; + end; + + nsIDOMCSSValue_std18 = interface(nsISupports_std18) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetCssValueType(out aCssValueType: PRUint16): Longword; extdecl; + end; + + nsIDOMCSSPrimitiveValue_std18 = interface(nsIDOMCSSValue_std18) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(out aPrimitiveType: PRUint16): Longword; extdecl; + function SetFloatValue(unitType: PRUint16; floatValue: Single): nsresult; extdecl; + function GetFloatValue(unitType: PRUint16; out _retval: Single): nsresult; extdecl; + function SetStringValue(stringType: PRUint16; const stringValue: nsAString): nsresult; extdecl; + function GetStringValue(_retval: nsAString): nsresult; extdecl; + function GetCounterValue(out _retval: nsIDOMCounter_std18): nsresult; extdecl; + function GetRectValue(out _retval: nsIDOMRect_std18): nsresult; extdecl; + function GetRGBColorValue(out _retval: nsIDOMRGBColor_std18): nsresult; extdecl; + end; + + nsIDOMCSSRule_std18 = interface(nsISupports_std18) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(out aType: PRUint16): Longword; extdecl; + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMCSSStyleSheet_std18): Longword; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std18): Longword; extdecl; + end; + + nsIDOMCSSRuleList_std18 = interface(nsISupports_std18) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSRule_std18): nsresult; extdecl; + end; + + nsIDOMCSSStyleDeclaration_std18 = interface(nsISupports_std18) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetPropertyValue(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyCSSValue(const propertyName: nsAString; out _retval: nsIDOMCSSValue_std18): nsresult; extdecl; + function RemoveProperty(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyPriority(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std18): Longword; extdecl; + end; + + nsIDOMStyleSheet_std18 = interface(nsISupports_std18) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetOwnerNode(out aOwnerNode: nsIDOMNode_std18): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMStyleSheet_std18): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function GetMedia(out aMedia: nsIDOMMediaList_std18): Longword; extdecl; + end; + + nsIDOMCSSStyleSheet_std18 = interface(nsIDOMStyleSheet_std18) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(out aOwnerRule: nsIDOMCSSRule_std18): Longword; extdecl; + function GetCssRules(out aCssRules: nsIDOMCSSRuleList_std18): Longword; extdecl; + function InsertRule(const rule: nsAString; index: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function DeleteRule(index: PRUint32): nsresult; extdecl; + end; + + nsIDOMCSSValueList_std18 = interface(nsIDOMCSSValue_std18) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSValue_std18): nsresult; extdecl; + end; + + nsIDOMEvent_std18 = interface(nsISupports_std18) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetTarget(out aTarget: nsIDOMEventTarget_std18): Longword; extdecl; + function GetCurrentTarget(out aCurrentTarget: nsIDOMEventTarget_std18): Longword; extdecl; + function GetEventPhase(out aEventPhase: PRUint16): Longword; extdecl; + function GetBubbles(out aBubbles: PRBool): Longword; extdecl; + function GetCancelable(out aCancelable: PRBool): Longword; extdecl; + function GetTimeStamp(out aTimeStamp: DOMTimeStamp): Longword; extdecl; + function StopPropagation(): nsresult; extdecl; + function PreventDefault(): nsresult; extdecl; + function InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool): nsresult; extdecl; + end; + + nsIDOMCustomEvent_std18 = interface(nsIDOMEvent_std18) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + function SetCurrentTarget(target: nsIDOMNode_std18): nsresult; extdecl; + function SetEventPhase(phase: PRUint16): nsresult; extdecl; + end; + + nsIDOMDocument_std18 = interface(nsIDOMNode_std18) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(out aDoctype: nsIDOMDocumentType_std18): Longword; extdecl; + function GetImplementation(out aImplementation: nsIDOMDOMImplementation_std18): Longword; extdecl; + function GetDocumentElement(out aDocumentElement: nsIDOMElement_std18): Longword; extdecl; + function CreateElement(const tagName: nsAString; out _retval: nsIDOMElement_std18): nsresult; extdecl; + function CreateDocumentFragment(out _retval: nsIDOMDocumentFragment_std18): nsresult; extdecl; + function CreateTextNode(const data: nsAString; out _retval: nsIDOMText_std18): nsresult; extdecl; + function CreateComment(const data: nsAString; out _retval: nsIDOMComment_std18): nsresult; extdecl; + function CreateCDATASection(const data: nsAString; out _retval: nsIDOMCDATASection_std18): nsresult; extdecl; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString; out _retval: nsIDOMProcessingInstruction_std18): nsresult; extdecl; + function CreateAttribute(const name: nsAString; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function CreateEntityReference(const name: nsAString; out _retval: nsIDOMEntityReference_std18): nsresult; extdecl; + function GetElementsByTagName(const tagname: nsAString; out _retval: nsIDOMNodeList_std18): nsresult; extdecl; + function ImportNode(importedNode: nsIDOMNode_std18; deep: PRBool; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMElement_std18): nsresult; extdecl; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std18): nsresult; extdecl; + function GetElementById(const elementId: nsAString; out _retval: nsIDOMElement_std18): nsresult; extdecl; + end; + + nsIDOMDocumentEvent_std18 = interface(nsISupports_std18) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString; out _retval: nsIDOMEvent_std18): nsresult; extdecl; + end; + + nsIDOMDocumentFragment_std18 = interface(nsIDOMNode_std18) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_std18 = interface(nsISupports_std18) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(out _retval: nsIDOMRange_std18): nsresult; extdecl; + end; + + nsIDOMDocumentStyle_std18 = interface(nsISupports_std18) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(out aStyleSheets: nsIDOMStyleSheetList_std18): Longword; extdecl; + end; + + nsIDOMDocumentType_std18 = interface(nsIDOMNode_std18) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetEntities(out aEntities: nsIDOMNamedNodeMap_std18): Longword; extdecl; + function GetNotations(out aNotations: nsIDOMNamedNodeMap_std18): Longword; extdecl; + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetInternalSubset(aInternalSubset: nsAString): Longword; extdecl; + end; + + nsIDOMDocumentView_std18 = interface(nsISupports_std18) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(out aDefaultView: nsIDOMAbstractView_std18): Longword; extdecl; + end; + + nsIDOMDOMException_std18 = interface(nsISupports_std18) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(out aCode: PRUint32): Longword; extdecl; + end; + + nsIDOMDOMImplementation_std18 = interface(nsISupports_std18) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString; out _retval: nsIDOMDocumentType_std18): nsresult; extdecl; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_std18; out _retval: nsIDOMDocument_std18): nsresult; extdecl; + end; + + nsIDOMElement_std18 = interface(nsIDOMNode_std18) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + function GetTagName(aTagName: nsAString): Longword; extdecl; + function GetAttribute(const name: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttribute(const name: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttribute(const name: nsAString): nsresult; extdecl; + function GetAttributeNode(const name: nsAString; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function SetAttributeNode(newAttr: nsIDOMAttr_std18; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_std18; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function GetElementsByTagName(const name: nsAString; out _retval: nsIDOMNodeList_std18): nsresult; extdecl; + function GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString): nsresult; extdecl; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_std18; out _retval: nsIDOMAttr_std18): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std18): nsresult; extdecl; + function HasAttribute(const name: nsAString; out _retval: PRBool): nsresult; extdecl; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMElementCSSInlineStyle_std18 = interface(nsISupports_std18) + ['{99715845-95fc-4a56-aa53-214b65c26e22}'] + function GetStyle(out aStyle: nsIDOMCSSStyleDeclaration_std18): Longword; extdecl; + end; + + nsIDOMEntity_std18 = interface(nsIDOMNode_std18) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetNotationName(aNotationName: nsAString): Longword; extdecl; + end; + + nsIDOMEntityReference_std18 = interface(nsIDOMNode_std18) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_std18 = interface(nsISupports_std18) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_std18; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMEventListener_std18 = interface(nsISupports_std18) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + function HandleEvent(event: nsIDOMEvent_std18): nsresult; extdecl; + end; + + nsIDOMEventTarget_std18 = interface(nsISupports_std18) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + function AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_std18; useCapture: PRBool): nsresult; extdecl; + function RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_std18; useCapture: PRBool): nsresult; extdecl; + function DispatchEvent(evt: nsIDOMEvent_std18; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMHTMLElement_std18 = interface(nsIDOMElement_std18) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + function GetId(aId: nsAString): Longword; extdecl; + function SetId(const aId: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetLang(aLang: nsAString): Longword; extdecl; + function SetLang(const aLang: nsAString): Longword; extdecl; + function GetDir(aDir: nsAString): Longword; extdecl; + function SetDir(const aDir: nsAString): Longword; extdecl; + function GetClassName(aClassName: nsAString): Longword; extdecl; + function SetClassName(const aClassName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAnchorElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLAppletElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetObject(aObject: nsAString): Longword; extdecl; + function SetObject(const aObject: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAreaElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetNoHref(out aNoHref: PRBool): Longword; extdecl; + function SetNoHref(aNoHref: PRBool): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseFontElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLBodyElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + function GetALink(aALink: nsAString): Longword; extdecl; + function SetALink(const aALink: nsAString): Longword; extdecl; + function GetBackground(aBackground: nsAString): Longword; extdecl; + function SetBackground(const aBackground: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetLink(aLink: nsAString): Longword; extdecl; + function SetLink(const aLink: nsAString): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetVLink(aVLink: nsAString): Longword; extdecl; + function SetVLink(const aVLink: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBRElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + function GetClear(aClear: nsAString): Longword; extdecl; + function SetClear(const aClear: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLButtonElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLCollection_std18 = interface(nsISupports_std18) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + end; + + nsIDOMHTMLDirectoryElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDivElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLDListElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDocument_std18 = interface(nsIDOMDocument_std18) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetReferrer(aReferrer: nsAString): Longword; extdecl; + function GetDomain(aDomain: nsAString): Longword; extdecl; + function GetURL(aURL: nsAString): Longword; extdecl; + function GetBody(out aBody: nsIDOMHTMLElement_std18): Longword; extdecl; + function SetBody(aBody: nsIDOMHTMLElement_std18): Longword; extdecl; + function GetImages(out aImages: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetApplets(out aApplets: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetLinks(out aLinks: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetForms(out aForms: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetAnchors(out aAnchors: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetCookie(aCookie: nsAString): Longword; extdecl; + function SetCookie(const aCookie: nsAString): Longword; extdecl; + function Open(): nsresult; extdecl; + function Close(): nsresult; extdecl; + function Write(const text: nsAString): nsresult; extdecl; + function Writeln(const text: nsAString): nsresult; extdecl; + function GetElementsByName(const elementName: nsAString; out _retval: nsIDOMNodeList_std18): nsresult; extdecl; + end; + + nsIDOMHTMLEmbedElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFieldSetElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + end; + + nsIDOMHTMLFontElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFormElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(out aElements: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetLength(out aLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAcceptCharset(aAcceptCharset: nsAString): Longword; extdecl; + function SetAcceptCharset(const aAcceptCharset: nsAString): Longword; extdecl; + function GetAction(aAction: nsAString): Longword; extdecl; + function SetAction(const aAction: nsAString): Longword; extdecl; + function GetEnctype(aEnctype: nsAString): Longword; extdecl; + function SetEnctype(const aEnctype: nsAString): Longword; extdecl; + function GetMethod(aMethod: nsAString): Longword; extdecl; + function SetMethod(const aMethod: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function Submit(): nsresult; extdecl; + function Reset(): nsresult; extdecl; + end; + + nsIDOMHTMLFrameElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetNoResize(out aNoResize: PRBool): Longword; extdecl; + function SetNoResize(aNoResize: PRBool): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std18): Longword; extdecl; + end; + + nsIDOMHTMLFrameSetElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + function GetCols(aCols: nsAString): Longword; extdecl; + function SetCols(const aCols: nsAString): Longword; extdecl; + function GetRows(aRows: nsAString): Longword; extdecl; + function SetRows(const aRows: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + function GetProfile(aProfile: nsAString): Longword; extdecl; + function SetProfile(const aProfile: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadingElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHRElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetNoShade(out aNoShade: PRBool): Longword; extdecl; + function SetNoShade(aNoShade: PRBool): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHtmlElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + function GetVersion(aVersion: nsAString): Longword; extdecl; + function SetVersion(const aVersion: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLIFrameElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std18): Longword; extdecl; + end; + + nsIDOMHTMLImageElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetHeight(out aHeight: PRInt32): Longword; extdecl; + function SetHeight(aHeight: PRInt32): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetIsMap(out aIsMap: PRBool): Longword; extdecl; + function SetIsMap(aIsMap: PRBool): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLInputElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetDefaultChecked(out aDefaultChecked: PRBool): Longword; extdecl; + function SetDefaultChecked(aDefaultChecked: PRBool): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetAccept(aAccept: nsAString): Longword; extdecl; + function SetAccept(const aAccept: nsAString): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetChecked(out aChecked: PRBool): Longword; extdecl; + function SetChecked(aChecked: PRBool): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetSize(out aSize: PRUint32): Longword; extdecl; + function SetSize(aSize: PRUint32): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + function Click(): nsresult; extdecl; + end; + + nsIDOMHTMLIsIndexElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetPrompt(aPrompt: nsAString): Longword; extdecl; + function SetPrompt(const aPrompt: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLabelElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLegendElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLIElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(out aValue: PRInt32): Longword; extdecl; + function SetValue(aValue: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLLinkElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMapElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(out aAreas: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMenuElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLMetaElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + function GetContent(aContent: nsAString): Longword; extdecl; + function SetContent(const aContent: nsAString): Longword; extdecl; + function GetHttpEquiv(aHttpEquiv: nsAString): Longword; extdecl; + function SetHttpEquiv(const aHttpEquiv: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScheme(aScheme: nsAString): Longword; extdecl; + function SetScheme(const aScheme: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLModElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + function GetDateTime(aDateTime: nsAString): Longword; extdecl; + function SetDateTime(const aDateTime: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLObjectElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetCodeType(aCodeType: nsAString): Longword; extdecl; + function SetCodeType(const aCodeType: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetDeclare(out aDeclare: PRBool): Longword; extdecl; + function SetDeclare(aDeclare: PRBool): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetStandby(aStandby: nsAString): Longword; extdecl; + function SetStandby(const aStandby: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std18): Longword; extdecl; + end; + + nsIDOMHTMLOListElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetStart(out aStart: PRInt32): Longword; extdecl; + function SetStart(aStart: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptGroupElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetDefaultSelected(out aDefaultSelected: PRBool): Longword; extdecl; + function SetDefaultSelected(aDefaultSelected: PRBool): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + function GetSelected(out aSelected: PRBool): Longword; extdecl; + function SetSelected(aSelected: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionsCollection_std18 = interface(nsISupports_std18) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + end; + + nsIDOMHTMLParagraphElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLParamElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetValueType(aValueType: nsAString): Longword; extdecl; + function SetValueType(const aValueType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLPreElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLQuoteElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLScriptElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + function GetEvent(aEvent: nsAString): Longword; extdecl; + function SetEvent(const aEvent: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetDefer(out aDefer: PRBool): Longword; extdecl; + function SetDefer(aDefer: PRBool): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLSelectElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetSelectedIndex(out aSelectedIndex: PRInt32): Longword; extdecl; + function SetSelectedIndex(aSelectedIndex: PRInt32): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetOptions(out aOptions: nsIDOMHTMLOptionsCollection_std18): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMultiple(out aMultiple: PRBool): Longword; extdecl; + function SetMultiple(aMultiple: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function Add(element: nsIDOMHTMLElement_std18; before: nsIDOMHTMLElement_std18): nsresult; extdecl; + function Remove(index: PRInt32): nsresult; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLStyleElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCaptionElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCellElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(out aCellIndex: PRInt32): Longword; extdecl; + function GetAbbr(aAbbr: nsAString): Longword; extdecl; + function SetAbbr(const aAbbr: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAxis(aAxis: nsAString): Longword; extdecl; + function SetAxis(const aAxis: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetColSpan(out aColSpan: PRInt32): Longword; extdecl; + function SetColSpan(aColSpan: PRInt32): Longword; extdecl; + function GetHeaders(aHeaders: nsAString): Longword; extdecl; + function SetHeaders(const aHeaders: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetNoWrap(out aNoWrap: PRBool): Longword; extdecl; + function SetNoWrap(aNoWrap: PRBool): Longword; extdecl; + function GetRowSpan(out aRowSpan: PRInt32): Longword; extdecl; + function SetRowSpan(aRowSpan: PRInt32): Longword; extdecl; + function GetScope(aScope: nsAString): Longword; extdecl; + function SetScope(const aScope: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableColElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetSpan(out aSpan: PRInt32): Longword; extdecl; + function SetSpan(aSpan: PRInt32): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(out aCaption: nsIDOMHTMLTableCaptionElement_std18): Longword; extdecl; + function SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_std18): Longword; extdecl; + function GetTHead(out aTHead: nsIDOMHTMLTableSectionElement_std18): Longword; extdecl; + function SetTHead(aTHead: nsIDOMHTMLTableSectionElement_std18): Longword; extdecl; + function GetTFoot(out aTFoot: nsIDOMHTMLTableSectionElement_std18): Longword; extdecl; + function SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_std18): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetTBodies(out aTBodies: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCellPadding(aCellPadding: nsAString): Longword; extdecl; + function SetCellPadding(const aCellPadding: nsAString): Longword; extdecl; + function GetCellSpacing(aCellSpacing: nsAString): Longword; extdecl; + function SetCellSpacing(const aCellSpacing: nsAString): Longword; extdecl; + function GetFrame(aFrame: nsAString): Longword; extdecl; + function SetFrame(const aFrame: nsAString): Longword; extdecl; + function GetRules(aRules: nsAString): Longword; extdecl; + function SetRules(const aRules: nsAString): Longword; extdecl; + function GetSummary(aSummary: nsAString): Longword; extdecl; + function SetSummary(const aSummary: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function CreateTHead(out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteTHead(): nsresult; extdecl; + function CreateTFoot(out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteTFoot(): nsresult; extdecl; + function CreateCaption(out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteCaption(): nsresult; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableRowElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(out aRowIndex: PRInt32): Longword; extdecl; + function GetSectionRowIndex(out aSectionRowIndex: PRInt32): Longword; extdecl; + function GetCells(out aCells: nsIDOMHTMLCollection_std18): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function InsertCell(index: PRInt32; out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteCell(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableSectionElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std18): Longword; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std18): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTextAreaElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std18): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCols(out aCols: PRInt32): Longword; extdecl; + function SetCols(aCols: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetRows(out aRows: PRInt32): Longword; extdecl; + function SetRows(aRows: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + end; + + nsIDOMHTMLTitleElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLUListElement_std18 = interface(nsIDOMHTMLElement_std18) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMMediaList_std18 = interface(nsISupports_std18) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + function GetMediaText(aMediaText: nsAString): Longword; extdecl; + function SetMediaText(const aMediaText: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function DeleteMedium(const oldMedium: nsAString): nsresult; extdecl; + function AppendMedium(const newMedium: nsAString): nsresult; extdecl; + end; + + nsIDOMUIEvent_std18 = interface(nsIDOMEvent_std18) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(out aView: nsIDOMAbstractView_std18): Longword; extdecl; + function GetDetail(out aDetail: PRInt32): Longword; extdecl; + function InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std18; detailArg: PRInt32): nsresult; extdecl; + end; + + nsIDOMMouseEvent_std18 = interface(nsIDOMUIEvent_std18) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(out aScreenX: PRInt32): Longword; extdecl; + function GetScreenY(out aScreenY: PRInt32): Longword; extdecl; + function GetClientX(out aClientX: PRInt32): Longword; extdecl; + function GetClientY(out aClientY: PRInt32): Longword; extdecl; + function GetCtrlKey(out aCtrlKey: PRBool): Longword; extdecl; + function GetShiftKey(out aShiftKey: PRBool): Longword; extdecl; + function GetAltKey(out aAltKey: PRBool): Longword; extdecl; + function GetMetaKey(out aMetaKey: PRBool): Longword; extdecl; + function GetButton(out aButton: PRUint16): Longword; extdecl; + function GetRelatedTarget(out aRelatedTarget: nsIDOMEventTarget_std18): Longword; extdecl; + function InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std18; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_std18): nsresult; extdecl; + end; + + nsIDOMNamedNodeMap_std18 = interface(nsISupports_std18) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function SetNamedItem(arg: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function RemoveNamedItem(const name: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function SetNamedItemNS(arg: nsIDOMNode_std18; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std18): nsresult; extdecl; + end; + + nsIDOMNodeList_std18 = interface(nsISupports_std18) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32; out _retval: nsIDOMNode_std18): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + end; + + nsIDOMNotation_std18 = interface(nsIDOMNode_std18) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + end; + + nsIDOMNSDocumentStyle_std18 = interface(nsIDOMDocumentStyle_std18) + ['{4ecdf254-a21e-47b0-8d72-55da8208299f}'] + function GetPreferredStylesheetSet(aPreferredStylesheetSet: nsAString): Longword; extdecl; + end; + + nsIDOMProcessingInstruction_std18 = interface(nsIDOMNode_std18) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + end; + + nsIDOMRange_std18 = interface(nsISupports_std18) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(out aStartContainer: nsIDOMNode_std18): Longword; extdecl; + function GetStartOffset(out aStartOffset: PRInt32): Longword; extdecl; + function GetEndContainer(out aEndContainer: nsIDOMNode_std18): Longword; extdecl; + function GetEndOffset(out aEndOffset: PRInt32): Longword; extdecl; + function GetCollapsed(out aCollapsed: PRBool): Longword; extdecl; + function GetCommonAncestorContainer(out aCommonAncestorContainer: nsIDOMNode_std18): Longword; extdecl; + function SetStart(refNode: nsIDOMNode_std18; offset: PRInt32): nsresult; extdecl; + function SetEnd(refNode: nsIDOMNode_std18; offset: PRInt32): nsresult; extdecl; + function SetStartBefore(refNode: nsIDOMNode_std18): nsresult; extdecl; + function SetStartAfter(refNode: nsIDOMNode_std18): nsresult; extdecl; + function SetEndBefore(refNode: nsIDOMNode_std18): nsresult; extdecl; + function SetEndAfter(refNode: nsIDOMNode_std18): nsresult; extdecl; + function Collapse(toStart: PRBool): nsresult; extdecl; + function SelectNode(refNode: nsIDOMNode_std18): nsresult; extdecl; + function SelectNodeContents(refNode: nsIDOMNode_std18): nsresult; extdecl; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_std18; out _retval: PRInt16): nsresult; extdecl; + function DeleteContents(): nsresult; extdecl; + function ExtractContents(out _retval: nsIDOMDocumentFragment_std18): nsresult; extdecl; + function CloneContents(out _retval: nsIDOMDocumentFragment_std18): nsresult; extdecl; + function InsertNode(newNode: nsIDOMNode_std18): nsresult; extdecl; + function SurroundContents(newParent: nsIDOMNode_std18): nsresult; extdecl; + function CloneRange(out _retval: nsIDOMRange_std18): nsresult; extdecl; + function ToString(_retval: nsAString): nsresult; extdecl; + function Detach(): nsresult; extdecl; + end; + + nsIDOMRect_std18 = interface(nsISupports_std18) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(out aTop: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + function GetRight(out aRight: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + function GetBottom(out aBottom: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + function GetLeft(out aLeft: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + end; + + nsIDOMRGBColor_std18 = interface(nsISupports_std18) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(out aRed: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + function GetGreen(out aGreen: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + function GetBlue(out aBlue: nsIDOMCSSPrimitiveValue_std18): Longword; extdecl; + end; + + nsIDOMStyleSheetList_std18 = interface(nsISupports_std18) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMStyleSheet_std18): nsresult; extdecl; + end; + + nsIDOMWindow_std18 = interface(nsISupports_std18) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(out aDocument: nsIDOMDocument_std18): Longword; extdecl; + function GetParent(out aParent: nsIDOMWindow_std18): Longword; extdecl; + function GetTop(out aTop: nsIDOMWindow_std18): Longword; extdecl; + function GetScrollbars(out aScrollbars: nsIDOMBarProp_std18): Longword; extdecl; + function GetFrames(out aFrames: nsIDOMWindowCollection_std18): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTextZoom(out aTextZoom: Single): Longword; extdecl; + function SetTextZoom(aTextZoom: Single): Longword; extdecl; + function GetScrollX(out aScrollX: PRInt32): Longword; extdecl; + function GetScrollY(out aScrollY: PRInt32): Longword; extdecl; + function ScrollTo(xScroll: PRInt32; yScroll: PRInt32): nsresult; extdecl; + function ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32): nsresult; extdecl; + function GetSelection(out _retval: nsISelection_std18): nsresult; extdecl; + function ScrollByLines(numLines: PRInt32): nsresult; extdecl; + function ScrollByPages(numPages: PRInt32): nsresult; extdecl; + function SizeToContent(): nsresult; extdecl; + end; + + nsIDOMWindow2_std18 = interface(nsIDOMWindow_std18) + ['{65455132-b96a-40ec-adea-52fa22b1028c}'] + function GetWindowRoot(out aWindowRoot: nsIDOMEventTarget_std18): Longword; extdecl; + end; + + nsIDOMWindowCollection_std18 = interface(nsISupports_std18) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMWindow_std18): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMWindow_std18): nsresult; extdecl; + end; + + nsIDOMWindowUtils_std18 = interface(nsISupports_std18) + ['{8a157a4f-a81e-489f-baf2-bc8970d60472}'] + function GetImageAnimationMode(out aImageAnimationMode: PRUint16): Longword; extdecl; + function SetImageAnimationMode(aImageAnimationMode: PRUint16): Longword; extdecl; + function GetDocumentMetadata(const aName: nsAString; _retval: nsAString): nsresult; extdecl; + end; + + nsIEmbeddingSiteWindow_std18 = interface(nsISupports_std18) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + function SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32): nsresult; extdecl; + function GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32): nsresult; extdecl; + function SetFocus(): nsresult; extdecl; + function GetVisibility(out aVisibility: PRBool): Longword; extdecl; + function SetVisibility(aVisibility: PRBool): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetSiteWindow(out aSiteWindow: Pointer): Longword; extdecl; + end; + + nsIFactory_std18 = interface(nsISupports_std18) + ['{00000001-0000-0000-c000-000000000046}'] + function CreateInstance(aOuter: nsISupports_std18; constref iid: TGUID; out _result): nsresult; extdecl; + function LockFactory(lock: PRBool): nsresult; extdecl; + end; + + nsIURI_std18 = interface(nsISupports_std18) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + function GetSpec(aSpec: nsACString): Longword; extdecl; + function SetSpec(const aSpec: nsACString): Longword; extdecl; + function GetPrePath(aPrePath: nsACString): Longword; extdecl; + function GetScheme(aScheme: nsACString): Longword; extdecl; + function SetScheme(const aScheme: nsACString): Longword; extdecl; + function GetUserPass(aUserPass: nsACString): Longword; extdecl; + function SetUserPass(const aUserPass: nsACString): Longword; extdecl; + function GetUsername(aUsername: nsACString): Longword; extdecl; + function SetUsername(const aUsername: nsACString): Longword; extdecl; + function GetPassword(aPassword: nsACString): Longword; extdecl; + function SetPassword(const aPassword: nsACString): Longword; extdecl; + function GetHostPort(aHostPort: nsACString): Longword; extdecl; + function SetHostPort(const aHostPort: nsACString): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function SetHost(const aHost: nsACString): Longword; extdecl; + function GetPort(out aPort: PRInt32): Longword; extdecl; + function SetPort(aPort: PRInt32): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function SetPath(const aPath: nsACString): Longword; extdecl; + function Equals(other: nsIURI_std18; out _retval: PRBool): nsresult; extdecl; + function SchemeIs(const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Clone(out _retval: nsIURI_std18): nsresult; extdecl; + function Resolve(const relativePath: nsACString; _retval: nsACString): nsresult; extdecl; + function GetAsciiSpec(aAsciiSpec: nsACString): Longword; extdecl; + function GetAsciiHost(aAsciiHost: nsACString): Longword; extdecl; + function GetOriginCharset(aOriginCharset: nsACString): Longword; extdecl; + end; + + nsIURL_std18 = interface(nsIURI_std18) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + function GetFilePath(aFilePath: nsACString): Longword; extdecl; + function SetFilePath(const aFilePath: nsACString): Longword; extdecl; + function GetParam(aParam: nsACString): Longword; extdecl; + function SetParam(const aParam: nsACString): Longword; extdecl; + function GetQuery(aQuery: nsACString): Longword; extdecl; + function SetQuery(const aQuery: nsACString): Longword; extdecl; + function GetRef(aRef: nsACString): Longword; extdecl; + function SetRef(const aRef: nsACString): Longword; extdecl; + function GetDirectory(aDirectory: nsACString): Longword; extdecl; + function SetDirectory(const aDirectory: nsACString): Longword; extdecl; + function GetFileName(aFileName: nsACString): Longword; extdecl; + function SetFileName(const aFileName: nsACString): Longword; extdecl; + function GetFileBaseName(aFileBaseName: nsACString): Longword; extdecl; + function SetFileBaseName(const aFileBaseName: nsACString): Longword; extdecl; + function GetFileExtension(aFileExtension: nsACString): Longword; extdecl; + function SetFileExtension(const aFileExtension: nsACString): Longword; extdecl; + function GetCommonBaseSpec(aURIToCompare: nsIURI_std18; _retval: nsACString): nsresult; extdecl; + function GetRelativeSpec(aURIToCompare: nsIURI_std18; _retval: nsACString): nsresult; extdecl; + end; + + nsIFileURL_std18 = interface(nsIURL_std18) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(out aFile: nsIFile_std18): Longword; extdecl; + function SetFile(aFile: nsIFile_std18): Longword; extdecl; + end; + + nsIGlobalHistory_std18 = interface(nsISupports_std18) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + function AddPage(const aURL: PAnsiChar): nsresult; extdecl; + function IsVisited(const aURL: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIHistoryEntry_std18 = interface(nsISupports_std18) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(out aURI: nsIURI_std18): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function GetIsSubFrame(out aIsSubFrame: PRBool): Longword; extdecl; + end; + + nsIHttpChannel_std18 = interface(nsIChannel_std18) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + function GetRequestMethod(aRequestMethod: nsACString): Longword; extdecl; + function SetRequestMethod(const aRequestMethod: nsACString): Longword; extdecl; + function GetReferrer(out aReferrer: nsIURI_std18): Longword; extdecl; + function SetReferrer(aReferrer: nsIURI_std18): Longword; extdecl; + function GetRequestHeader(const aHeader: nsACString; _retval: nsACString): nsresult; extdecl; + function SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool): nsresult; extdecl; + function VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_std18): nsresult; extdecl; + function GetAllowPipelining(out aAllowPipelining: PRBool): Longword; extdecl; + function SetAllowPipelining(aAllowPipelining: PRBool): Longword; extdecl; + function GetRedirectionLimit(out aRedirectionLimit: PRUint32): Longword; extdecl; + function SetRedirectionLimit(aRedirectionLimit: PRUint32): Longword; extdecl; + function GetResponseStatus(out aResponseStatus: PRUint32): Longword; extdecl; + function GetResponseStatusText(aResponseStatusText: nsACString): Longword; extdecl; + function GetRequestSucceeded(out aRequestSucceeded: PRBool): Longword; extdecl; + function GetResponseHeader(const header: nsACString; _retval: nsACString): nsresult; extdecl; + function SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool): nsresult; extdecl; + function VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_std18): nsresult; extdecl; + function IsNoStoreResponse(out _retval: PRBool): nsresult; extdecl; + function IsNoCacheResponse(out _retval: PRBool): nsresult; extdecl; + end; + + nsIHttpHeaderVisitor_std18 = interface(nsISupports_std18) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + function VisitHeader(const aHeader: nsACString; const aValue: nsACString): nsresult; extdecl; + end; + + nsIInputStream_std18 = interface(nsISupports_std18) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aBuf: Pchar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIInterfaceRequestor_std18 = interface(nsISupports_std18) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + function GetInterface(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsIIOService_std18 = interface(nsISupports_std18) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar; out _retval: nsIProtocolHandler_std18): nsresult; extdecl; + function GetProtocolFlags(const aScheme: PAnsiChar; out _retval: PRUint32): nsresult; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std18; out _retval: nsIURI_std18): nsresult; extdecl; + function NewFileURI(aFile: nsIFile_std18; out _retval: nsIURI_std18): nsresult; extdecl; + function NewChannelFromURI(aURI: nsIURI_std18; out _retval: nsIChannel_std18): nsresult; extdecl; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std18; out _retval: nsIChannel_std18): nsresult; extdecl; + function GetOffline(out aOffline: PRBool): Longword; extdecl; + function SetOffline(aOffline: PRBool): Longword; extdecl; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function ExtractScheme(const urlString: nsACString; _retval: nsACString): nsresult; extdecl; + end; + + nsILoadGroup_std18 = interface(nsIRequest_std18) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(out aGroupObserver: nsIRequestObserver_std18): Longword; extdecl; + function SetGroupObserver(aGroupObserver: nsIRequestObserver_std18): Longword; extdecl; + function GetDefaultLoadRequest(out aDefaultLoadRequest: nsIRequest_std18): Longword; extdecl; + function SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_std18): Longword; extdecl; + function AddRequest(aRequest: nsIRequest_std18; aContext: nsISupports_std18): nsresult; extdecl; + function RemoveRequest(aRequest: nsIRequest_std18; aContext: nsISupports_std18; aStatus: nsresult): nsresult; extdecl; + function GetRequests(out aRequests: nsISimpleEnumerator_std18): Longword; extdecl; + function GetActiveCount(out aActiveCount: PRUint32): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std18): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std18): Longword; extdecl; + end; + + nsILocalFile_std18 = interface(nsIFile_std18) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + function InitWithPath(const filePath: nsAString): nsresult; extdecl; + function InitWithNativePath(const filePath: nsACString): nsresult; extdecl; + function InitWithFile(aFile: nsILocalFile_std18): nsresult; extdecl; + function GetFollowLinks(out aFollowLinks: PRBool): Longword; extdecl; + function SetFollowLinks(aFollowLinks: PRBool): Longword; extdecl; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32; out _retval: PPRFileDesc): nsresult; extdecl; + function OpenANSIFileDesc(const mode: PAnsiChar; out _retval: PFILE): nsresult; extdecl; + function Load(out _retval: PPRLibrary): nsresult; extdecl; + function GetDiskSpaceAvailable(out aDiskSpaceAvailable: PRInt64): Longword; extdecl; + function AppendRelativePath(const relativeFilePath: nsAString): nsresult; extdecl; + function AppendRelativeNativePath(const relativeFilePath: nsACString): nsresult; extdecl; + function GetPersistentDescriptor(aPersistentDescriptor: nsACString): Longword; extdecl; + function SetPersistentDescriptor(const aPersistentDescriptor: nsACString): Longword; extdecl; + function Reveal(): nsresult; extdecl; + function Launch(): nsresult; extdecl; + function GetRelativeDescriptor(fromFile: nsILocalFile_std18; _retval: nsACString): nsresult; extdecl; + function SetRelativeDescriptor(fromFile: nsILocalFile_std18; const relativeDesc: nsACString): nsresult; extdecl; + end; + + nsIMemory_std18 = interface(nsISupports_std18) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + function HeapMinimize(immediate: PRBool): nsresult; extdecl; + function IsLowMemory(out _retval: PRBool): nsresult; extdecl; + end; + + nsIModule_std18 = interface(nsISupports_std18) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + function GetClassObject(aCompMgr: nsIComponentManager_std18; constref aClass: TGUID; constref aIID: TGUID; out aResult): nsresult; extdecl; + function RegisterSelf(aCompMgr: nsIComponentManager_std18; aLocation: nsIFile_std18; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterSelf(aCompMgr: nsIComponentManager_std18; aLocation: nsIFile_std18; const aLoaderStr: PAnsiChar): nsresult; extdecl; + function CanUnload(aCompMgr: nsIComponentManager_std18; out _retval: PRBool): nsresult; extdecl; + end; + + nsIObserver_std18 = interface(nsISupports_std18) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + function Observe(aSubject: nsISupports_std18; const aTopic: PAnsiChar; const aData: PWideChar): nsresult; extdecl; + end; + + nsIObserverService_std18 = interface(nsISupports_std18) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + function AddObserver(anObserver: nsIObserver_std18; const aTopic: PAnsiChar; ownsWeak: PRBool): nsresult; extdecl; + function RemoveObserver(anObserver: nsIObserver_std18; const aTopic: PAnsiChar): nsresult; extdecl; + function NotifyObservers(aSubject: nsISupports_std18; const aTopic: PAnsiChar; const someData: PWideChar): nsresult; extdecl; + function EnumerateObservers(const aTopic: PAnsiChar; out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + end; + + nsIOutputStream_std18 = interface(nsISupports_std18) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Flush(): nsresult; extdecl; + function Write(const aBuf: PAnsiChar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteFrom(aFromStream: nsIInputStream_std18; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIPrefBranch_std18 = interface(nsISupports_std18) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(out aRoot: PAnsiChar): Longword; extdecl; + function GetPrefType(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function GetBoolPref(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetCharPref(const aPrefName: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar): nsresult; extdecl; + function GetIntPref(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue): nsresult; extdecl; + function SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_std18): nsresult; extdecl; + function ClearUserPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function LockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function PrefHasUserValue(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function PrefIsLocked(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function UnlockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function DeleteBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + function GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array): nsresult; extdecl; + function ResetBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + end; + + nsIPrefBranch2_std18 = interface(nsIPrefBranch_std18) + ['{74567534-eb94-4b1c-8f45-389643bfc555}'] + function AddObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_std18; aHoldWeak: PRBool): nsresult; extdecl; + function RemoveObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_std18): nsresult; extdecl; + end; + + nsIPrefLocalizedString_std18 = interface(nsISupports_std18) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(out aData: PWideChar): Longword; extdecl; + function SetData(const aData: PWideChar): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + function SetDataWithLength(length: PRUint32; const data: PWideChar): nsresult; extdecl; + end; + + nsIPrefService_std18 = interface(nsISupports_std18) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + function ReadUserPrefs(aFile: nsIFile_std18): nsresult; extdecl; + function ResetPrefs(): nsresult; extdecl; + function ResetUserPrefs(): nsresult; extdecl; + function SavePrefFile(aFile: nsIFile_std18): nsresult; extdecl; + function GetBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std18): nsresult; extdecl; + function GetDefaultBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std18): nsresult; extdecl; + end; + + nsIPrintSession_std18 = interface(nsISupports_std18) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_std18 = interface(nsISupports_std18) + ['{f1094df6-ce0e-42c9-9847-2f663172c38d}'] + function SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool): nsresult; extdecl; + function GetPrintOptions(aType: PRInt32; out _retval: PRBool): nsresult; extdecl; + function GetPrintOptionsBits(out _retval: PRInt32): nsresult; extdecl; + function GetPageSizeInTwips(out aWidth: PRInt32; out aHeight: PRInt32): nsresult; extdecl; + function Clone(out _retval: nsIPrintSettings_std18): nsresult; extdecl; + function Assign(aPS: nsIPrintSettings_std18): nsresult; extdecl; + function GetPrintSession(out aPrintSession: nsIPrintSession_std18): Longword; extdecl; + function SetPrintSession(aPrintSession: nsIPrintSession_std18): Longword; extdecl; + function GetStartPageRange(out aStartPageRange: PRInt32): Longword; extdecl; + function SetStartPageRange(aStartPageRange: PRInt32): Longword; extdecl; + function GetEndPageRange(out aEndPageRange: PRInt32): Longword; extdecl; + function SetEndPageRange(aEndPageRange: PRInt32): Longword; extdecl; + function GetMarginTop(out aMarginTop: Double): Longword; extdecl; + function SetMarginTop(aMarginTop: Double): Longword; extdecl; + function GetMarginLeft(out aMarginLeft: Double): Longword; extdecl; + function SetMarginLeft(aMarginLeft: Double): Longword; extdecl; + function GetMarginBottom(out aMarginBottom: Double): Longword; extdecl; + function SetMarginBottom(aMarginBottom: Double): Longword; extdecl; + function GetMarginRight(out aMarginRight: Double): Longword; extdecl; + function SetMarginRight(aMarginRight: Double): Longword; extdecl; + function GetScaling(out aScaling: Double): Longword; extdecl; + function SetScaling(aScaling: Double): Longword; extdecl; + function GetPrintBGColors(out aPrintBGColors: PRBool): Longword; extdecl; + function SetPrintBGColors(aPrintBGColors: PRBool): Longword; extdecl; + function GetPrintBGImages(out aPrintBGImages: PRBool): Longword; extdecl; + function SetPrintBGImages(aPrintBGImages: PRBool): Longword; extdecl; + function GetPrintRange(out aPrintRange: PRInt16): Longword; extdecl; + function SetPrintRange(aPrintRange: PRInt16): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetDocURL(out aDocURL: PWideChar): Longword; extdecl; + function SetDocURL(const aDocURL: PWideChar): Longword; extdecl; + function GetHeaderStrLeft(out aHeaderStrLeft: PWideChar): Longword; extdecl; + function SetHeaderStrLeft(const aHeaderStrLeft: PWideChar): Longword; extdecl; + function GetHeaderStrCenter(out aHeaderStrCenter: PWideChar): Longword; extdecl; + function SetHeaderStrCenter(const aHeaderStrCenter: PWideChar): Longword; extdecl; + function GetHeaderStrRight(out aHeaderStrRight: PWideChar): Longword; extdecl; + function SetHeaderStrRight(const aHeaderStrRight: PWideChar): Longword; extdecl; + function GetFooterStrLeft(out aFooterStrLeft: PWideChar): Longword; extdecl; + function SetFooterStrLeft(const aFooterStrLeft: PWideChar): Longword; extdecl; + function GetFooterStrCenter(out aFooterStrCenter: PWideChar): Longword; extdecl; + function SetFooterStrCenter(const aFooterStrCenter: PWideChar): Longword; extdecl; + function GetFooterStrRight(out aFooterStrRight: PWideChar): Longword; extdecl; + function SetFooterStrRight(const aFooterStrRight: PWideChar): Longword; extdecl; + function GetHowToEnableFrameUI(out aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function GetIsCancelled(out aIsCancelled: PRBool): Longword; extdecl; + function SetIsCancelled(aIsCancelled: PRBool): Longword; extdecl; + function GetPrintFrameTypeUsage(out aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function GetPrintFrameType(out aPrintFrameType: PRInt16): Longword; extdecl; + function SetPrintFrameType(aPrintFrameType: PRInt16): Longword; extdecl; + function GetPrintSilent(out aPrintSilent: PRBool): Longword; extdecl; + function SetPrintSilent(aPrintSilent: PRBool): Longword; extdecl; + function GetShrinkToFit(out aShrinkToFit: PRBool): Longword; extdecl; + function SetShrinkToFit(aShrinkToFit: PRBool): Longword; extdecl; + function GetShowPrintProgress(out aShowPrintProgress: PRBool): Longword; extdecl; + function SetShowPrintProgress(aShowPrintProgress: PRBool): Longword; extdecl; + function GetPaperName(out aPaperName: PWideChar): Longword; extdecl; + function SetPaperName(const aPaperName: PWideChar): Longword; extdecl; + function GetPaperSizeType(out aPaperSizeType: PRInt16): Longword; extdecl; + function SetPaperSizeType(aPaperSizeType: PRInt16): Longword; extdecl; + function GetPaperData(out aPaperData: PRInt16): Longword; extdecl; + function SetPaperData(aPaperData: PRInt16): Longword; extdecl; + function GetPaperWidth(out aPaperWidth: Double): Longword; extdecl; + function SetPaperWidth(aPaperWidth: Double): Longword; extdecl; + function GetPaperHeight(out aPaperHeight: Double): Longword; extdecl; + function SetPaperHeight(aPaperHeight: Double): Longword; extdecl; + function GetPaperSizeUnit(out aPaperSizeUnit: PRInt16): Longword; extdecl; + function SetPaperSizeUnit(aPaperSizeUnit: PRInt16): Longword; extdecl; + function GetPlexName(out aPlexName: PWideChar): Longword; extdecl; + function SetPlexName(const aPlexName: PWideChar): Longword; extdecl; + function GetColorspace(out aColorspace: PWideChar): Longword; extdecl; + function SetColorspace(const aColorspace: PWideChar): Longword; extdecl; + function GetResolutionName(out aResolutionName: PWideChar): Longword; extdecl; + function SetResolutionName(const aResolutionName: PWideChar): Longword; extdecl; + function GetDownloadFonts(out aDownloadFonts: PRBool): Longword; extdecl; + function SetDownloadFonts(aDownloadFonts: PRBool): Longword; extdecl; + function GetPrintReversed(out aPrintReversed: PRBool): Longword; extdecl; + function SetPrintReversed(aPrintReversed: PRBool): Longword; extdecl; + function GetPrintInColor(out aPrintInColor: PRBool): Longword; extdecl; + function SetPrintInColor(aPrintInColor: PRBool): Longword; extdecl; + function GetPaperSize(out aPaperSize: PRInt32): Longword; extdecl; + function SetPaperSize(aPaperSize: PRInt32): Longword; extdecl; + function GetOrientation(out aOrientation: PRInt32): Longword; extdecl; + function SetOrientation(aOrientation: PRInt32): Longword; extdecl; + function GetPrintCommand(out aPrintCommand: PWideChar): Longword; extdecl; + function SetPrintCommand(const aPrintCommand: PWideChar): Longword; extdecl; + function GetNumCopies(out aNumCopies: PRInt32): Longword; extdecl; + function SetNumCopies(aNumCopies: PRInt32): Longword; extdecl; + function GetPrinterName(out aPrinterName: PWideChar): Longword; extdecl; + function SetPrinterName(const aPrinterName: PWideChar): Longword; extdecl; + function GetPrintToFile(out aPrintToFile: PRBool): Longword; extdecl; + function SetPrintToFile(aPrintToFile: PRBool): Longword; extdecl; + function GetToFileName(out aToFileName: PWideChar): Longword; extdecl; + function SetToFileName(const aToFileName: PWideChar): Longword; extdecl; + function GetPrintPageDelay(out aPrintPageDelay: PRInt32): Longword; extdecl; + function SetPrintPageDelay(aPrintPageDelay: PRInt32): Longword; extdecl; + function GetIsInitializedFromPrinter(out aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function GetIsInitializedFromPrefs(out aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + function GetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + end; + + nsIProfile_std18 = interface(nsISupports_std18) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(out aProfileCount: PRInt32): Longword; extdecl; + function GetProfileList(out length: PRUint32; out profileNames_array): nsresult; extdecl; + function ProfileExists(const profileName: PWideChar; out _retval: PRBool): nsresult; extdecl; + function GetCurrentProfile(out aCurrentProfile: PWideChar): Longword; extdecl; + function SetCurrentProfile(const aCurrentProfile: PWideChar): Longword; extdecl; + function ShutDownCurrentProfile(shutDownType: PRUint32): nsresult; extdecl; + function CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool): nsresult; extdecl; + function RenameProfile(const oldName: PWideChar; const newName: PWideChar): nsresult; extdecl; + function DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool): nsresult; extdecl; + function CloneProfile(const profileName: PWideChar): nsresult; extdecl; + end; + + nsIProfileChangeStatus_std18 = interface(nsISupports_std18) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + function VetoChange(): nsresult; extdecl; + function ChangeFailed(): nsresult; extdecl; + end; + + nsIPrompt_std18 = interface(nsISupports_std18) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + function Alert(const dialogTitle: PWideChar; const text: PWideChar): nsresult; extdecl; + function AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): nsresult; extdecl; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIPromptService_std18 = interface(nsISupports_std18) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + function Alert(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar): nsresult; extdecl; + function AlertCheck(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): nsresult; extdecl; + function Confirm(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(aParent: nsIDOMWindow_std18; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIProperties_std18 = interface(nsISupports_std18) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + function Get(const prop: PAnsiChar; constref iid: TGUID; out _result): nsresult; extdecl; + function _Set(const prop: PAnsiChar; value: nsISupports_std18): nsresult; extdecl; + function Has(const prop: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Undefine(const prop: PAnsiChar): nsresult; extdecl; + function GetKeys(out count: PRUint32; out keys_array): nsresult; extdecl; + end; + + nsIProtocolHandler_std18 = interface(nsISupports_std18) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + function GetScheme(aScheme: nsACString): Longword; extdecl; + function GetDefaultPort(out aDefaultPort: PRInt32): Longword; extdecl; + function GetProtocolFlags(out aProtocolFlags: PRUint32): Longword; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std18; out _retval: nsIURI_std18): nsresult; extdecl; + function NewChannel(aURI: nsIURI_std18; out _retval: nsIChannel_std18): nsresult; extdecl; + function AllowPort(port: PRInt32; const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIRequestObserver_std18 = interface(nsISupports_std18) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + function OnStartRequest(aRequest: nsIRequest_std18; aContext: nsISupports_std18): nsresult; extdecl; + function OnStopRequest(aRequest: nsIRequest_std18; aContext: nsISupports_std18; aStatusCode: nsresult): nsresult; extdecl; + end; + + nsIScriptableInputStream_std18 = interface(nsISupports_std18) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + function Close(): nsresult; extdecl; + function Init(aInputStream: nsIInputStream_std18): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aCount: PRUint32; out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISecurityWarningDialogs_std18 = interface(nsISupports_std18) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_std18; out _retval: PRBool): nsresult; extdecl; + end; + + nsISelection_std18 = interface(nsISupports_std18) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(out aAnchorNode: nsIDOMNode_std18): Longword; extdecl; + function GetAnchorOffset(out aAnchorOffset: PRInt32): Longword; extdecl; + function GetFocusNode(out aFocusNode: nsIDOMNode_std18): Longword; extdecl; + function GetFocusOffset(out aFocusOffset: PRInt32): Longword; extdecl; + function GetIsCollapsed(out aIsCollapsed: PRBool): Longword; extdecl; + function GetRangeCount(out aRangeCount: PRInt32): Longword; extdecl; + function GetRangeAt(index: PRInt32; out _retval: nsIDOMRange_std18): nsresult; extdecl; + function Collapse(parentNode: nsIDOMNode_std18; offset: PRInt32): nsresult; extdecl; + function Extend(parentNode: nsIDOMNode_std18; offset: PRInt32): nsresult; extdecl; + function CollapseToStart(): nsresult; extdecl; + function CollapseToEnd(): nsresult; extdecl; + function ContainsNode(node: nsIDOMNode_std18; entirelyContained: PRBool; out _retval: PRBool): nsresult; extdecl; + function SelectAllChildren(parentNode: nsIDOMNode_std18): nsresult; extdecl; + function AddRange(range: nsIDOMRange_std18): nsresult; extdecl; + function RemoveRange(range: nsIDOMRange_std18): nsresult; extdecl; + function RemoveAllRanges(): nsresult; extdecl; + function DeleteFromDocument(): nsresult; extdecl; + function SelectionLanguageChange(langRTL: PRBool): nsresult; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsIServiceManager_std18 = interface(nsISupports_std18) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + function GetService(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + end; + + nsISHistory_std18 = interface(nsISupports_std18) + ['{7294fe9b-14d8-11d5-9882-00c04fa02f40}'] + function GetCount(out aCount: PRInt32): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool; out _retval: nsIHistoryEntry_std18): nsresult; extdecl; + function PurgeHistory(numEntries: PRInt32): nsresult; extdecl; + function AddSHistoryListener(aListener: nsISHistoryListener_std18): nsresult; extdecl; + function RemoveSHistoryListener(aListener: nsISHistoryListener_std18): nsresult; extdecl; + function GetSHistoryEnumerator(out aSHistoryEnumerator: nsISimpleEnumerator_std18): Longword; extdecl; + end; + + nsISHistoryListener_std18 = interface(nsISupports_std18) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + function OnHistoryNewEntry(aNewURI: nsIURI_std18): nsresult; extdecl; + function OnHistoryGoBack(aBackURI: nsIURI_std18; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGoForward(aForwardURI: nsIURI_std18; out _retval: PRBool): nsresult; extdecl; + function OnHistoryReload(aReloadURI: nsIURI_std18; aReloadFlags: PRUint32; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_std18; out _retval: PRBool): nsresult; extdecl; + function OnHistoryPurge(aNumEntries: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIStreamListener_std18 = interface(nsIRequestObserver_std18) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + function OnDataAvailable(aRequest: nsIRequest_std18; aContext: nsISupports_std18; aInputStream: nsIInputStream_std18; aOffset: PRUint32; aCount: PRUint32): nsresult; extdecl; + end; + + nsISupportsPrimitive_std18 = interface(nsISupports_std18) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(out aType: PRUint16): Longword; extdecl; + end; + + nsISupportsID_std18 = interface(nsISupportsPrimitive_std18) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PGUID): Longword; extdecl; + function SetData(const aData: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsCString_std18 = interface(nsISupportsPrimitive_std18) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsACString): Longword; extdecl; + function SetData(const aData: nsACString): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsString_std18 = interface(nsISupportsPrimitive_std18) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsISupportsPRBool_std18 = interface(nsISupportsPrimitive_std18) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRBool): Longword; extdecl; + function SetData(aData: PRBool): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint8_std18 = interface(nsISupportsPrimitive_std18) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint8): Longword; extdecl; + function SetData(aData: PRUint8): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint16_std18 = interface(nsISupportsPrimitive_std18) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint16): Longword; extdecl; + function SetData(aData: PRUint16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint32_std18 = interface(nsISupportsPrimitive_std18) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint32): Longword; extdecl; + function SetData(aData: PRUint32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint64_std18 = interface(nsISupportsPrimitive_std18) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint64): Longword; extdecl; + function SetData(aData: PRUint64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRTime_std18 = interface(nsISupportsPrimitive_std18) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRTime): Longword; extdecl; + function SetData(aData: PRTime): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsChar_std18 = interface(nsISupportsPrimitive_std18) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: AnsiChar): Longword; extdecl; + function SetData(aData: AnsiChar): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt16_std18 = interface(nsISupportsPrimitive_std18) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt16): Longword; extdecl; + function SetData(aData: PRInt16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt32_std18 = interface(nsISupportsPrimitive_std18) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt32): Longword; extdecl; + function SetData(aData: PRInt32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt64_std18 = interface(nsISupportsPrimitive_std18) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt64): Longword; extdecl; + function SetData(aData: PRInt64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsFloat_std18 = interface(nsISupportsPrimitive_std18) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Single): Longword; extdecl; + function SetData(aData: Single): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsDouble_std18 = interface(nsISupportsPrimitive_std18) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Double): Longword; extdecl; + function SetData(aData: Double): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsVoid_std18 = interface(nsISupportsPrimitive_std18) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(out aData: Pointer): Longword; extdecl; + function SetData(aData: Pointer): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsInterfacePointer_std18 = interface(nsISupportsPrimitive_std18) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(out aData: nsISupports_std18): Longword; extdecl; + function SetData(aData: nsISupports_std18): Longword; extdecl; + function GetDataIID(out aDataIID: PGUID): Longword; extdecl; + function SetDataIID(const aDataIID: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsITooltipListener_std18 = interface(nsISupports_std18) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + function OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar): nsresult; extdecl; + function OnHideTooltip(): nsresult; extdecl; + end; + + nsITooltipTextProvider_std18 = interface(nsISupports_std18) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_std18; out aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsITraceRefcnt_std18 = interface(nsISupports_std18) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + function LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar): nsresult; extdecl; + function LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_std18): nsresult; extdecl; + function LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_std18): nsresult; extdecl; + end; + + nsIUnicharStreamListener_std18 = interface(nsIRequestObserver_std18) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + function OnUnicharDataAvailable(aRequest: nsIRequest_std18; aContext: nsISupports_std18; const aData: nsAString): nsresult; extdecl; + end; + + nsIUploadChannel_std18 = interface(nsISupports_std18) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + function SetUploadStream(aStream: nsIInputStream_std18; const aContentType: nsACString; aContentLength: PRInt32): nsresult; extdecl; + function GetUploadStream(out aUploadStream: nsIInputStream_std18): Longword; extdecl; + end; + + nsIURIContentListener_std18 = interface(nsISupports_std18) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_std18; out _retval: PRBool): nsresult; extdecl; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_std18; out aContentHandler: nsIStreamListener_std18; out _retval: PRBool): nsresult; extdecl; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function GetLoadCookie(out aLoadCookie: nsISupports_std18): Longword; extdecl; + function SetLoadCookie(aLoadCookie: nsISupports_std18): Longword; extdecl; + function GetParentContentListener(out aParentContentListener: nsIURIContentListener_std18): Longword; extdecl; + function SetParentContentListener(aParentContentListener: nsIURIContentListener_std18): Longword; extdecl; + end; + + nsIWeakReference_std18 = interface(nsISupports_std18) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + function QueryReferent(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsISupportsWeakReference_std18 = interface(nsISupports_std18) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(out _retval: nsIWeakReference_std18): nsresult; extdecl; + end; + + nsIWebBrowser_std18 = interface(nsISupports_std18) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + function AddWebBrowserListener(aListener: nsIWeakReference_std18; constref aIID: TGUID): nsresult; extdecl; + function RemoveWebBrowserListener(aListener: nsIWeakReference_std18; constref aIID: TGUID): nsresult; extdecl; + function GetContainerWindow(out aContainerWindow: nsIWebBrowserChrome_std18): Longword; extdecl; + function SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_std18): Longword; extdecl; + function GetParentURIContentListener(out aParentURIContentListener: nsIURIContentListener_std18): Longword; extdecl; + function SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_std18): Longword; extdecl; + function GetContentDOMWindow(out aContentDOMWindow: nsIDOMWindow_std18): Longword; extdecl; + end; + + nsIWebBrowserChrome_std18 = interface(nsISupports_std18) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + function SetStatus(statusType: PRUint32; const status: PWideChar): nsresult; extdecl; + function GetWebBrowser(out aWebBrowser: nsIWebBrowser_std18): Longword; extdecl; + function SetWebBrowser(aWebBrowser: nsIWebBrowser_std18): Longword; extdecl; + function GetChromeFlags(out aChromeFlags: PRUint32): Longword; extdecl; + function SetChromeFlags(aChromeFlags: PRUint32): Longword; extdecl; + function DestroyBrowserWindow(): nsresult; extdecl; + function SizeBrowserTo(aCX: PRInt32; aCY: PRInt32): nsresult; extdecl; + function ShowAsModal(): nsresult; extdecl; + function IsWindowModal(out _retval: PRBool): nsresult; extdecl; + function ExitModalEventLoop(aStatus: nsresult): nsresult; extdecl; + end; + + nsIWebBrowserChromeFocus_std18 = interface(nsISupports_std18) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + function FocusNextElement(): nsresult; extdecl; + function FocusPrevElement(): nsresult; extdecl; + end; + + nsIWebBrowserFind_std18 = interface(nsISupports_std18) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(out _retval: PRBool): nsresult; extdecl; + function GetSearchString(out aSearchString: PWideChar): Longword; extdecl; + function SetSearchString(const aSearchString: PWideChar): Longword; extdecl; + function GetFindBackwards(out aFindBackwards: PRBool): Longword; extdecl; + function SetFindBackwards(aFindBackwards: PRBool): Longword; extdecl; + function GetWrapFind(out aWrapFind: PRBool): Longword; extdecl; + function SetWrapFind(aWrapFind: PRBool): Longword; extdecl; + function GetEntireWord(out aEntireWord: PRBool): Longword; extdecl; + function SetEntireWord(aEntireWord: PRBool): Longword; extdecl; + function GetMatchCase(out aMatchCase: PRBool): Longword; extdecl; + function SetMatchCase(aMatchCase: PRBool): Longword; extdecl; + function GetSearchFrames(out aSearchFrames: PRBool): Longword; extdecl; + function SetSearchFrames(aSearchFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFindInFrames_std18 = interface(nsISupports_std18) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(out aCurrentSearchFrame: nsIDOMWindow_std18): Longword; extdecl; + function SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_std18): Longword; extdecl; + function GetRootSearchFrame(out aRootSearchFrame: nsIDOMWindow_std18): Longword; extdecl; + function SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_std18): Longword; extdecl; + function GetSearchSubframes(out aSearchSubframes: PRBool): Longword; extdecl; + function SetSearchSubframes(aSearchSubframes: PRBool): Longword; extdecl; + function GetSearchParentFrames(out aSearchParentFrames: PRBool): Longword; extdecl; + function SetSearchParentFrames(aSearchParentFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFocus_std18 = interface(nsISupports_std18) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + function Activate(): nsresult; extdecl; + function Deactivate(): nsresult; extdecl; + function SetFocusAtFirstElement(): nsresult; extdecl; + function SetFocusAtLastElement(): nsresult; extdecl; + function GetFocusedWindow(out aFocusedWindow: nsIDOMWindow_std18): Longword; extdecl; + function SetFocusedWindow(aFocusedWindow: nsIDOMWindow_std18): Longword; extdecl; + function GetFocusedElement(out aFocusedElement: nsIDOMElement_std18): Longword; extdecl; + function SetFocusedElement(aFocusedElement: nsIDOMElement_std18): Longword; extdecl; + end; + + nsIWebBrowserPrint_std18 = interface(nsISupports_std18) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(out aGlobalPrintSettings: nsIPrintSettings_std18): Longword; extdecl; + function GetCurrentPrintSettings(out aCurrentPrintSettings: nsIPrintSettings_std18): Longword; extdecl; + function GetCurrentChildDOMWindow(out aCurrentChildDOMWindow: nsIDOMWindow_std18): Longword; extdecl; + function GetDoingPrint(out aDoingPrint: PRBool): Longword; extdecl; + function GetDoingPrintPreview(out aDoingPrintPreview: PRBool): Longword; extdecl; + function GetIsFramesetDocument(out aIsFramesetDocument: PRBool): Longword; extdecl; + function GetIsFramesetFrameSelected(out aIsFramesetFrameSelected: PRBool): Longword; extdecl; + function GetIsIFrameSelected(out aIsIFrameSelected: PRBool): Longword; extdecl; + function GetIsRangeSelection(out aIsRangeSelection: PRBool): Longword; extdecl; + function GetPrintPreviewNumPages(out aPrintPreviewNumPages: PRInt32): Longword; extdecl; + function Print(aThePrintSettings: nsIPrintSettings_std18; aWPListener: nsIWebProgressListener_std18): nsresult; extdecl; + function PrintPreview(aThePrintSettings: nsIPrintSettings_std18; aChildDOMWin: nsIDOMWindow_std18; aWPListener: nsIWebProgressListener_std18): nsresult; extdecl; + function PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32): nsresult; extdecl; + function Cancel(): nsresult; extdecl; + function EnumerateDocumentNames(out aCount: PRUint32; out aResult_array): nsresult; extdecl; + function ExitPrintPreview(): nsresult; extdecl; + end; + + nsIWebBrowserSetup_std18 = interface(nsISupports_std18) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + function SetProperty(aId: PRUint32; aValue: PRUint32): nsresult; extdecl; + end; + + nsIWebBrowserStream_std18 = interface(nsISupports_std18) + ['{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'] + function OpenStream(aBaseURI: nsIURI_std18; const aContentType: nsACString): nsresult; extdecl; + function AppendToStream(const aData_array; aLen: PRUint32): nsresult; extdecl; + function CloseStream(): nsresult; extdecl; + end; + + nsIWebProgress_std18 = interface(nsISupports_std18) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + function AddProgressListener(aListener: nsIWebProgressListener_std18; aNotifyMask: PRUint32): nsresult; extdecl; + function RemoveProgressListener(aListener: nsIWebProgressListener_std18): nsresult; extdecl; + function GetDOMWindow(out aDOMWindow: nsIDOMWindow_std18): Longword; extdecl; + function GetIsLoadingDocument(out aIsLoadingDocument: PRBool): Longword; extdecl; + end; + + nsIWebProgressListener_std18 = interface(nsISupports_std18) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + function OnStateChange(aWebProgress: nsIWebProgress_std18; aRequest: nsIRequest_std18; aStateFlags: PRUint32; aStatus: nsresult): nsresult; extdecl; + function OnProgressChange(aWebProgress: nsIWebProgress_std18; aRequest: nsIRequest_std18; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32): nsresult; extdecl; + function OnLocationChange(aWebProgress: nsIWebProgress_std18; aRequest: nsIRequest_std18; aLocation: nsIURI_std18): nsresult; extdecl; + function OnStatusChange(aWebProgress: nsIWebProgress_std18; aRequest: nsIRequest_std18; aStatus: nsresult; const aMessage: PWideChar): nsresult; extdecl; + function OnSecurityChange(aWebProgress: nsIWebProgress_std18; aRequest: nsIRequest_std18; aState: PRUint32): nsresult; extdecl; + end; + + nsIWindowCreator_std18 = interface(nsISupports_std18) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_std18; chromeFlags: PRUint32; out _retval: nsIWebBrowserChrome_std18): nsresult; extdecl; + end; + + nsIWindowWatcher_std18 = interface(nsISupports_std18) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_std18; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_std18; out _retval: nsIDOMWindow_std18): nsresult; extdecl; + function RegisterNotification(aObserver: nsIObserver_std18): nsresult; extdecl; + function UnregisterNotification(aObserver: nsIObserver_std18): nsresult; extdecl; + function GetWindowEnumerator(out _retval: nsISimpleEnumerator_std18): nsresult; extdecl; + function GetNewPrompter(aParent: nsIDOMWindow_std18; out _retval: nsIPrompt_std18): nsresult; extdecl; + function GetNewAuthPrompter(aParent: nsIDOMWindow_std18; out _retval: nsIAuthPrompt_std18): nsresult; extdecl; + function SetWindowCreator(creator: nsIWindowCreator_std18): nsresult; extdecl; + function GetChromeForWindow(aWindow: nsIDOMWindow_std18; out _retval: nsIWebBrowserChrome_std18): nsresult; extdecl; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_std18; out _retval: nsIDOMWindow_std18): nsresult; extdecl; + function GetActiveWindow(out aActiveWindow: nsIDOMWindow_std18): Longword; extdecl; + function SetActiveWindow(aActiveWindow: nsIDOMWindow_std18): Longword; extdecl; + end; + + nsIX509Cert_std18 = interface(nsISupports_std18) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + function GetNickname(aNickname: nsAString): Longword; extdecl; + function GetEmailAddress(aEmailAddress: nsAString): Longword; extdecl; + function GetEmailAddresses(out length: PRUint32; out addresses_array): nsresult; extdecl; + function ContainsEmailAddress(const aEmailAddress: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetSubjectName(aSubjectName: nsAString): Longword; extdecl; + function GetCommonName(aCommonName: nsAString): Longword; extdecl; + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetSha1Fingerprint(aSha1Fingerprint: nsAString): Longword; extdecl; + function GetMd5Fingerprint(aMd5Fingerprint: nsAString): Longword; extdecl; + function GetTokenName(aTokenName: nsAString): Longword; extdecl; + function GetIssuerName(aIssuerName: nsAString): Longword; extdecl; + function GetSerialNumber(aSerialNumber: nsAString): Longword; extdecl; + function GetIssuerCommonName(aIssuerCommonName: nsAString): Longword; extdecl; + function GetIssuerOrganization(aIssuerOrganization: nsAString): Longword; extdecl; + function GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString): Longword; extdecl; + function GetIssuer(out aIssuer: nsIX509Cert_std18): Longword; extdecl; + function GetValidity(out aValidity: nsIX509CertValidity_std18): Longword; extdecl; + function GetDbKey(out aDbKey: PAnsiChar): Longword; extdecl; + function GetWindowTitle(out aWindowTitle: PAnsiChar): Longword; extdecl; + function GetChain(out _retval: nsIArray_std18): nsresult; extdecl; + function GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array): nsresult; extdecl; + function GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString): nsresult; extdecl; + function VerifyForUsage(usage: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function GetASN1Structure(out aASN1Structure: nsIASN1Object_std18): Longword; extdecl; + function GetRawDER(out length: PRUint32; out data_array): nsresult; extdecl; + function Equals(other: nsIX509Cert_std18; out _retval: PRBool): nsresult; extdecl; + end; + + nsIX509CertDB_std18 = interface(nsISupports_std18) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_std18; const aNickname: nsAString; out _retval: nsIX509Cert_std18): nsresult; extdecl; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_std18; out _retval: nsIX509Cert_std18): nsresult; extdecl; + function FindCertNicknames(aToken: nsISupports_std18; aType: PRUint32; out count: PRUint32; out certNameList_array): nsresult; extdecl; + function FindEmailEncryptionCert(const aNickname: nsAString; out _retval: nsIX509Cert_std18): nsresult; extdecl; + function FindEmailSigningCert(const aNickname: nsAString; out _retval: nsIX509Cert_std18): nsresult; extdecl; + function FindCertByEmailAddress(aToken: nsISupports_std18; const aEmailAddress: PAnsiChar; out _retval: nsIX509Cert_std18): nsresult; extdecl; + function ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_std18): nsresult; extdecl; + function ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std18): nsresult; extdecl; + function ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std18): nsresult; extdecl; + function ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std18): nsresult; extdecl; + function DeleteCertificate(aCert: nsIX509Cert_std18): nsresult; extdecl; + function SetCertTrust(cert: nsIX509Cert_std18; _type: PRUint32; trust: PRUint32): nsresult; extdecl; + function IsCertTrusted(cert: nsIX509Cert_std18; certType: PRUint32; trustType: PRUint32; out _retval: PRBool): nsresult; extdecl; + function ImportCertsFromFile(aToken: nsISupports_std18; aFile: nsILocalFile_std18; aType: PRUint32): nsresult; extdecl; + function ImportPKCS12File(aToken: nsISupports_std18; aFile: nsILocalFile_std18): nsresult; extdecl; + function ExportPKCS12File(aToken: nsISupports_std18; aFile: nsILocalFile_std18; count: PRUint32; const aCerts_array): nsresult; extdecl; + function GetOCSPResponders(out _retval: nsIArray_std18): nsresult; extdecl; + function GetIsOcspOn(out aIsOcspOn: PRBool): Longword; extdecl; + function ConstructX509FromBase64(const base64: PAnsiChar; out _retval: nsIX509Cert_std18): nsresult; extdecl; + end; + + nsIX509CertValidity_std18 = interface(nsISupports_std18) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(out aNotBefore: PRTime): Longword; extdecl; + function GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString): Longword; extdecl; + function GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString): Longword; extdecl; + function GetNotBeforeGMT(aNotBeforeGMT: nsAString): Longword; extdecl; + function GetNotAfter(out aNotAfter: PRTime): Longword; extdecl; + function GetNotAfterLocalTime(aNotAfterLocalTime: nsAString): Longword; extdecl; + function GetNotAfterLocalDay(aNotAfterLocalDay: nsAString): Longword; extdecl; + function GetNotAfterGMT(aNotAfterGMT: nsAString): Longword; extdecl; + end; + +implementation + +end. diff --git a/components/geckoport/version2/each-version/nsXPCOM_std19.pas b/components/geckoport/version2/each-version/nsXPCOM_std19.pas new file mode 100644 index 000000000..ad0745433 --- /dev/null +++ b/components/geckoport/version2/each-version/nsXPCOM_std19.pas @@ -0,0 +1,3698 @@ +unit nsXPCOM_std19; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsGeckoStrings, +{$IFDEF Unix} + BaseUnix, +{$ENDIF} + nsTypes; + +const + NS_ISUPPORTS_STD19_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_STD19_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_STD19_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IASN1OBJECT_STD19_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_STD19_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_STD19_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_STD19_ASN1_INTEGER = 2; + NS_IASN1OBJECT_STD19_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_STD19_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_STD19_ASN1_NULL = 5; + NS_IASN1OBJECT_STD19_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_STD19_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_STD19_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_STD19_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_STD19_ASN1_SET = 17; + NS_IASN1OBJECT_STD19_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_STD19_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_STD19_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_STD19_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_STD19_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_STD19_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_STD19_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_STD19_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_STD19_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_STD19_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_STD19_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_STD19_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_STD19_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_STD19_IID: TGUID = '{358089f9-ee4b-4711-82fd-bcd07fc62061}'; + NS_IAUTHPROMPT_STD19_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_STD19_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_STD19_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_ISIMPLEENUMERATOR_STD19_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICATEGORYMANAGER_STD19_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_STD19_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_STD19_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_STD19_LOAD_NORMAL = 0; + NS_IREQUEST_STD19_LOAD_BACKGROUND = 1; + NS_IREQUEST_STD19_INHIBIT_CACHING = 128; + NS_IREQUEST_STD19_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_STD19_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_STD19_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_STD19_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_STD19_VALIDATE_NEVER = 4096; + NS_IREQUEST_STD19_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_STD19_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_STD19_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_STD19_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_STD19_LOAD_REPLACE = 262144; + NS_ICHANNEL_STD19_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_STD19_LOAD_TARGETED = 1048576; + NS_ICHANNEL_STD19_LOAD_CALL_CONTENT_SNIFFERS = 2097152; + + NS_ICLASSINFO_STD19_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_STD19_SINGLETON = 1; + NS_ICLASSINFO_STD19_THREADSAFE = 2; + NS_ICLASSINFO_STD19_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_STD19_DOM_OBJECT = 8; + NS_ICLASSINFO_STD19_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_STD19_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_STD19_CONTENT_NODE = 64; + NS_ICLASSINFO_STD19_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_STD19_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_STD19_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_STD19_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_STD19_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_STD19_CONTEXT_INPUT = 16; + + NS_ICOOKIE_STD19_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_STD19_STATUS_UNKNOWN = 0; + NS_ICOOKIE_STD19_STATUS_ACCEPTED = 1; + NS_ICOOKIE_STD19_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_STD19_STATUS_FLAGGED = 3; + NS_ICOOKIE_STD19_STATUS_REJECTED = 4; + NS_ICOOKIE_STD19_POLICY_UNKNOWN = 0; + NS_ICOOKIE_STD19_POLICY_NONE = 1; + NS_ICOOKIE_STD19_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_STD19_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_STD19_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_STD19_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_STD19_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_STD19_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_STD19_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_STD19_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_STD19_NORMAL_FILE_TYPE = 0; + NS_IFILE_STD19_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_STD19_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_STD19_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_STD19_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOM3DOCUMENTEVENT_STD19_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_STD19_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_STD19_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_STD19_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_STD19_ELEMENT_NODE = 1; + NS_IDOMNODE_STD19_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_STD19_TEXT_NODE = 3; + NS_IDOMNODE_STD19_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_STD19_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_STD19_ENTITY_NODE = 6; + NS_IDOMNODE_STD19_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_STD19_COMMENT_NODE = 8; + NS_IDOMNODE_STD19_DOCUMENT_NODE = 9; + NS_IDOMNODE_STD19_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_STD19_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_STD19_NOTATION_NODE = 12; + + NS_IDOMATTR_STD19_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_STD19_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_STD19_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_STD19_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_STD19_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_STD19_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_STD19_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_STD19_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_STD19_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_STD19_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_STD19_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_STD19_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_STD19_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_STD19_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_STD19_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_STD19_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_STD19_STYLE_RULE = 1; + NS_IDOMCSSRULE_STD19_CHARSET_RULE = 2; + NS_IDOMCSSRULE_STD19_IMPORT_RULE = 3; + NS_IDOMCSSRULE_STD19_MEDIA_RULE = 4; + NS_IDOMCSSRULE_STD19_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_STD19_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_STD19_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_STD19_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_STD19_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_STD19_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_STD19_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_STD19_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_STD19_CAPTURING_PHASE = 1; + NS_IDOMEVENT_STD19_AT_TARGET = 2; + NS_IDOMEVENT_STD19_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_STD19_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_STD19_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_STD19_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_STD19_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_STD19_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_STD19_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_STD19_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_STD19_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_STD19_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_STD19_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_STD19_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_STD19_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_STD19_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_STD19_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_STD19_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_STD19_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_STD19_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_STD19_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_STD19_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_STD19_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_STD19_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_STD19_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_STD19_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_STD19_INVALID_ACCESS_ERR = 15; + NS_IDOMDOMEXCEPTION_STD19_VALIDATION_ERR = 16; + NS_IDOMDOMEXCEPTION_STD19_TYPE_MISMATCH_ERR = 17; + + NS_IDOMDOMIMPLEMENTATION_STD19_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_STD19_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENTCSSINLINESTYLE_STD19_IID: TGUID = '{99715845-95fc-4a56-aa53-214b65c26e22}'; + + NS_IDOMENTITY_STD19_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_STD19_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_STD19_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_STD19_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_STD19_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_STD19_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_STD19_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_STD19_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_STD19_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_STD19_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_STD19_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_STD19_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_STD19_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_STD19_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_STD19_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_STD19_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_STD19_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_STD19_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_STD19_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_STD19_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_STD19_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_STD19_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_STD19_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_STD19_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_STD19_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_STD19_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_STD19_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_STD19_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_STD19_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_STD19_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_STD19_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_STD19_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_STD19_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_STD19_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_STD19_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_STD19_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_STD19_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_STD19_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_STD19_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_STD19_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_STD19_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_STD19_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_STD19_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_STD19_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_STD19_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_STD19_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_STD19_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_STD19_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_STD19_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_STD19_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_STD19_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_STD19_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_STD19_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_STD19_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_STD19_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_STD19_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_STD19_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_STD19_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_STD19_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_STD19_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_STD19_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_STD19_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_STD19_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_STD19_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_STD19_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_STD19_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_STD19_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_STD19_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMOFFLINERESOURCELIST_STD19_IID: TGUID = '{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'; + NS_IDOMOFFLINERESOURCELIST_STD19_UNCACHED = 0; + NS_IDOMOFFLINERESOURCELIST_STD19_IDLE = 1; + NS_IDOMOFFLINERESOURCELIST_STD19_CHECKING = 2; + NS_IDOMOFFLINERESOURCELIST_STD19_DOWNLOADING = 3; + NS_IDOMOFFLINERESOURCELIST_STD19_UPDATEREADY = 4; + + NS_IDOMPROCESSINGINSTRUCTION_STD19_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_STD19_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_STD19_START_TO_START = 0; + NS_IDOMRANGE_STD19_START_TO_END = 1; + NS_IDOMRANGE_STD19_END_TO_END = 2; + NS_IDOMRANGE_STD19_END_TO_START = 3; + + NS_IDOMRECT_STD19_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_STD19_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTORAGE_STD19_IID: TGUID = '{95cc1383-3b62-4b89-aaef-1004a513ef47}'; + + NS_IDOMSTORAGEEVENT_STD19_IID: TGUID = '{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'; + + NS_IDOMSTORAGEITEM_STD19_IID: TGUID = '{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'; + + NS_IDOMSTORAGELIST_STD19_IID: TGUID = '{f2166929-91b6-4372-8d5f-c366f47a5f54}'; + + NS_IDOMSTORAGEWINDOW_STD19_IID: TGUID = '{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'; + + NS_IDOMSTYLESHEETLIST_STD19_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_STD19_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_STD19_IID: TGUID = '{73c5fa35-3add-4c87-a303-a850ccf4d65a}'; + + NS_IDOMWINDOWCOLLECTION_STD19_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOWUTILS_STD19_IID: TGUID = '{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'; + + NS_IEMBEDDINGSITEWINDOW_STD19_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_STD19_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_STD19_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_STD19_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_STD19_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_STD19_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_STD19_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_STD19_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_STD19_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHASHABLE_STD19_IID: TGUID = '{17e595fa-b57a-4933-bd0f-b1812e8ab188}'; + + NS_IHISTORYENTRY_STD19_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_STD19_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_STD19_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_STD19_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_STD19_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_STD19_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_IJSON_STD19_IID: TGUID = '{45464c36-efde-4cb5-8e00-07480533ff35}'; + + NS_ILOADGROUP_STD19_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_STD19_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_STD19_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_STD19_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IMUTABLEARRAY_STD19_IID: TGUID = '{af059da0-c85b-40ec-af07-ae4bfdc192cc}'; + + NS_IOBSERVER_STD19_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_STD19_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_STD19_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPREFBRANCH_STD19_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_STD19_PREF_INVALID = 0; + NS_IPREFBRANCH_STD19_PREF_STRING = 32; + NS_IPREFBRANCH_STD19_PREF_INT = 64; + NS_IPREFBRANCH_STD19_PREF_BOOL = 128; + + NS_IPREFBRANCH2_STD19_IID: TGUID = '{74567534-eb94-4b1c-8f45-389643bfc555}'; + + NS_IPREFLOCALIZEDSTRING_STD19_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_STD19_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_STD19_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_STD19_IID: TGUID = '{5af07661-6477-4235-8814-4a45215855b8}'; + NS_IPRINTSETTINGS_STD19_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_STD19_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_STD19_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_STD19_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_STD19_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_STD19_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_STD19_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_STD19_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_STD19_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_STD19_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_STD19_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_STD19_kInitSaveUnwriteableMargins = 16384; + NS_IPRINTSETTINGS_STD19_kInitSaveEdges = 32768; + NS_IPRINTSETTINGS_STD19_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_STD19_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_STD19_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_STD19_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_STD19_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_STD19_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_STD19_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_STD19_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_STD19_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_STD19_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_STD19_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_STD19_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_STD19_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_STD19_kInitSaveColorspace = 536870912; + NS_IPRINTSETTINGS_STD19_kInitSaveResolutionName = 1073741824; + NS_IPRINTSETTINGS_STD19_kInitSaveDownloadFonts = 2147483648; + NS_IPRINTSETTINGS_STD19_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_STD19_kPrintOddPages = 1; + NS_IPRINTSETTINGS_STD19_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_STD19_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_STD19_kRangeAllPages = 0; + NS_IPRINTSETTINGS_STD19_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_STD19_kRangeSelection = 2; + NS_IPRINTSETTINGS_STD19_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_STD19_kJustLeft = 0; + NS_IPRINTSETTINGS_STD19_kJustCenter = 1; + NS_IPRINTSETTINGS_STD19_kJustRight = 2; + NS_IPRINTSETTINGS_STD19_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_STD19_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_STD19_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_STD19_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_STD19_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_STD19_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_STD19_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_STD19_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_STD19_kNoFrames = 0; + NS_IPRINTSETTINGS_STD19_kFramesAsIs = 1; + NS_IPRINTSETTINGS_STD19_kSelectedFrame = 2; + NS_IPRINTSETTINGS_STD19_kEachFrameSep = 3; + NS_IPRINTSETTINGS_STD19_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_STD19_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_STD19_kFrameEnableAsIsAndEach = 2; + NS_IPRINTSETTINGS_STD19_kOutputFormatNative = 0; + NS_IPRINTSETTINGS_STD19_kOutputFormatPS = 1; + NS_IPRINTSETTINGS_STD19_kOutputFormatPDF = 2; + + NS_IPROFILE_STD19_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_STD19_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_STD19_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_STD19_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROGRAMMINGLANGUAGE_STD19_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_STD19_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_STD19_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_STD19_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_STD19_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_STD19_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_STD19_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_STD19_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_STD19_JAVASCRIPT2 = 7; + NS_IPROGRAMMINGLANGUAGE_STD19_RUBY = 8; + NS_IPROGRAMMINGLANGUAGE_STD19_PHP = 9; + NS_IPROGRAMMINGLANGUAGE_STD19_TCL = 10; + NS_IPROGRAMMINGLANGUAGE_STD19_MAX = 10; + + NS_IPROMPT_STD19_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + NS_IPROMPT_STD19_BUTTON_POS_0 = 1; + NS_IPROMPT_STD19_BUTTON_POS_1 = 256; + NS_IPROMPT_STD19_BUTTON_POS_2 = 65536; + NS_IPROMPT_STD19_BUTTON_TITLE_OK = 1; + NS_IPROMPT_STD19_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_STD19_BUTTON_TITLE_YES = 3; + NS_IPROMPT_STD19_BUTTON_TITLE_NO = 4; + NS_IPROMPT_STD19_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_STD19_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_STD19_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_STD19_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_STD19_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_STD19_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_STD19_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_STD19_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_STD19_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPT_STD19_STD_YES_NO_BUTTONS = 1027; + + NS_IPROMPTSERVICE_STD19_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_STD19_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_STD19_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_STD19_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_STD19_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_STD19_STD_YES_NO_BUTTONS = 1027; + + NS_IPROPERTIES_STD19_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_STD19_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_STD19_URI_STD = 0; + NS_IPROTOCOLHANDLER_STD19_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_STD19_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_STD19_URI_INHERITS_SECURITY_CONTEXT = 16; + NS_IPROTOCOLHANDLER_STD19_URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = 32; + NS_IPROTOCOLHANDLER_STD19_URI_LOADABLE_BY_ANYONE = 64; + NS_IPROTOCOLHANDLER_STD19_URI_DANGEROUS_TO_LOAD = 128; + NS_IPROTOCOLHANDLER_STD19_URI_IS_UI_RESOURCE = 256; + NS_IPROTOCOLHANDLER_STD19_URI_IS_LOCAL_FILE = 512; + NS_IPROTOCOLHANDLER_STD19_URI_NON_PERSISTABLE = 1024; + NS_IPROTOCOLHANDLER_STD19_URI_DOES_NOT_RETURN_DATA = 2048; + NS_IPROTOCOLHANDLER_STD19_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_STD19_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_STD19_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_STD19_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_STD19_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_STD19_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_STD19_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_STD19_IID: TGUID = '{9883609f-cdd8-4d83-9b55-868ff08ad433}'; + + NS_ISHISTORYLISTENER_STD19_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_STD19_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_STD19_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_STD19_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_STD19_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_STD19_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_STD19_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_STD19_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_STD19_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_STD19_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_STD19_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_STD19_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_STD19_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_STD19_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_STD19_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_STD19_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_STD19_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_STD19_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_STD19_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_STD19_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_STD19_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_STD19_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_STD19_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_STD19_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_STD19_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_STD19_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_STD19_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_STD19_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_STD19_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_STD19_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_STD19_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_STD19_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_STD19_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_STD19_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_STD19_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_STD19_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_STD19_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_STD19_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_STD19_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_STD19_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_STD19_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_STD19_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_STD19_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_STD19_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_STD19_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_STD19_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_STD19_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_STD19_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_STD19_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_STD19_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_STD19_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_STD19_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_STD19_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_STD19_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_STD19_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_STD19_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_STD19_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_STD19_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_STD19_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_STD19_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_STD19_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_STD19_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_STD19_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_STD19_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_STD19_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_STD19_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_STD19_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_STD19_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_STD19_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_STD19_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_STD19_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBBROWSERSTREAM_STD19_IID: TGUID = '{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'; + + NS_IWEBPROGRESS_STD19_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_STD19_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_STD19_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_STD19_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_STD19_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_STD19_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_STD19_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_STD19_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_STD19_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_STD19_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_STD19_NOTIFY_REFRESH = 256; + NS_IWEBPROGRESS_STD19_NOTIFY_ALL = 511; + + NS_IWEBPROGRESSLISTENER_STD19_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_STD19_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_STD19_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_STD19_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_STD19_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_STD19_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_STD19_STATE_RESTORING = 16777216; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_STD19_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_STD19_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_STD19_STATE_SECURE_LOW = 131072; + NS_IWEBPROGRESSLISTENER_STD19_STATE_IDENTITY_EV_TOPLEVEL = 1048576; + + NS_IWINDOWCREATOR_STD19_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_STD19_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_STD19_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_STD19_UNKNOWN_CERT = 0; + NS_IX509CERT_STD19_CA_CERT = 1; + NS_IX509CERT_STD19_USER_CERT = 2; + NS_IX509CERT_STD19_EMAIL_CERT = 4; + NS_IX509CERT_STD19_SERVER_CERT = 8; + NS_IX509CERT_STD19_VERIFIED_OK = 0; + NS_IX509CERT_STD19_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_STD19_CERT_REVOKED = 2; + NS_IX509CERT_STD19_CERT_EXPIRED = 4; + NS_IX509CERT_STD19_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_STD19_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_STD19_ISSUER_UNKNOWN = 32; + NS_IX509CERT_STD19_INVALID_CA = 64; + NS_IX509CERT_STD19_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_STD19_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_STD19_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_STD19_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_STD19_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_STD19_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_STD19_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_STD19_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_STD19_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_STD19_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_STD19_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_STD19_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_STD19_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_STD19_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_STD19_UNTRUSTED = 0; + NS_IX509CERTDB_STD19_TRUSTED_SSL = 1; + NS_IX509CERTDB_STD19_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_STD19_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_STD19_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports_std19 = interface; + mozIJSSubScriptLoader_std19 = interface; + nsIArray_std19 = interface; + nsIASN1Object_std19 = interface; + nsIASN1Sequence_std19 = interface; + nsIAuthPrompt_std19 = interface; + nsISimpleEnumerator_std19 = interface; + nsICategoryManager_std19 = interface; + nsICertificateDialogs_std19 = interface; + nsIRequest_std19 = interface; + nsIChannel_std19 = interface; + nsIClassInfo_std19 = interface; + nsIClipboardCommands_std19 = interface; + nsIComponentManager_std19 = interface; + nsIComponentRegistrar_std19 = interface; + nsIContextMenuListener_std19 = interface; + nsICookie_std19 = interface; + nsICookieManager_std19 = interface; + nsICRLInfo_std19 = interface; + nsIDebug_std19 = interface; + nsIFile_std19 = interface; + nsIDirectoryServiceProvider_std19 = interface; + nsIDirectoryServiceProvider2_std19 = interface; + nsIDirectoryService_std19 = interface; + nsIDOM3DocumentEvent_std19 = interface; + nsIDOM3EventTarget_std19 = interface; + nsIDOMAbstractView_std19 = interface; + nsIDOMNode_std19 = interface; + nsIDOMAttr_std19 = interface; + nsIDOMBarProp_std19 = interface; + nsIDOMCharacterData_std19 = interface; + nsIDOMText_std19 = interface; + nsIDOMCDATASection_std19 = interface; + nsIDOMComment_std19 = interface; + nsIDOMCounter_std19 = interface; + nsIDOMCSSValue_std19 = interface; + nsIDOMCSSPrimitiveValue_std19 = interface; + nsIDOMCSSRule_std19 = interface; + nsIDOMCSSRuleList_std19 = interface; + nsIDOMCSSStyleDeclaration_std19 = interface; + nsIDOMStyleSheet_std19 = interface; + nsIDOMCSSStyleSheet_std19 = interface; + nsIDOMCSSValueList_std19 = interface; + nsIDOMEvent_std19 = interface; + nsIDOMCustomEvent_std19 = interface; + nsIDOMDocument_std19 = interface; + nsIDOMDocumentEvent_std19 = interface; + nsIDOMDocumentFragment_std19 = interface; + nsIDOMDocumentRange_std19 = interface; + nsIDOMDocumentStyle_std19 = interface; + nsIDOMDocumentType_std19 = interface; + nsIDOMDocumentView_std19 = interface; + nsIDOMDOMException_std19 = interface; + nsIDOMDOMImplementation_std19 = interface; + nsIDOMElement_std19 = interface; + nsIDOMElementCSSInlineStyle_std19 = interface; + nsIDOMEntity_std19 = interface; + nsIDOMEntityReference_std19 = interface; + nsIDOMEventGroup_std19 = interface; + nsIDOMEventListener_std19 = interface; + nsIDOMEventTarget_std19 = interface; + nsIDOMHTMLElement_std19 = interface; + nsIDOMHTMLAnchorElement_std19 = interface; + nsIDOMHTMLAppletElement_std19 = interface; + nsIDOMHTMLAreaElement_std19 = interface; + nsIDOMHTMLBaseElement_std19 = interface; + nsIDOMHTMLBaseFontElement_std19 = interface; + nsIDOMHTMLBodyElement_std19 = interface; + nsIDOMHTMLBRElement_std19 = interface; + nsIDOMHTMLButtonElement_std19 = interface; + nsIDOMHTMLCollection_std19 = interface; + nsIDOMHTMLDirectoryElement_std19 = interface; + nsIDOMHTMLDivElement_std19 = interface; + nsIDOMHTMLDListElement_std19 = interface; + nsIDOMHTMLDocument_std19 = interface; + nsIDOMHTMLEmbedElement_std19 = interface; + nsIDOMHTMLFieldSetElement_std19 = interface; + nsIDOMHTMLFontElement_std19 = interface; + nsIDOMHTMLFormElement_std19 = interface; + nsIDOMHTMLFrameElement_std19 = interface; + nsIDOMHTMLFrameSetElement_std19 = interface; + nsIDOMHTMLHeadElement_std19 = interface; + nsIDOMHTMLHeadingElement_std19 = interface; + nsIDOMHTMLHRElement_std19 = interface; + nsIDOMHTMLHtmlElement_std19 = interface; + nsIDOMHTMLIFrameElement_std19 = interface; + nsIDOMHTMLImageElement_std19 = interface; + nsIDOMHTMLInputElement_std19 = interface; + nsIDOMHTMLIsIndexElement_std19 = interface; + nsIDOMHTMLLabelElement_std19 = interface; + nsIDOMHTMLLegendElement_std19 = interface; + nsIDOMHTMLLIElement_std19 = interface; + nsIDOMHTMLLinkElement_std19 = interface; + nsIDOMHTMLMapElement_std19 = interface; + nsIDOMHTMLMenuElement_std19 = interface; + nsIDOMHTMLMetaElement_std19 = interface; + nsIDOMHTMLModElement_std19 = interface; + nsIDOMHTMLObjectElement_std19 = interface; + nsIDOMHTMLOListElement_std19 = interface; + nsIDOMHTMLOptGroupElement_std19 = interface; + nsIDOMHTMLOptionElement_std19 = interface; + nsIDOMHTMLOptionsCollection_std19 = interface; + nsIDOMHTMLParagraphElement_std19 = interface; + nsIDOMHTMLParamElement_std19 = interface; + nsIDOMHTMLPreElement_std19 = interface; + nsIDOMHTMLQuoteElement_std19 = interface; + nsIDOMHTMLScriptElement_std19 = interface; + nsIDOMHTMLSelectElement_std19 = interface; + nsIDOMHTMLStyleElement_std19 = interface; + nsIDOMHTMLTableCaptionElement_std19 = interface; + nsIDOMHTMLTableCellElement_std19 = interface; + nsIDOMHTMLTableColElement_std19 = interface; + nsIDOMHTMLTableElement_std19 = interface; + nsIDOMHTMLTableRowElement_std19 = interface; + nsIDOMHTMLTableSectionElement_std19 = interface; + nsIDOMHTMLTextAreaElement_std19 = interface; + nsIDOMHTMLTitleElement_std19 = interface; + nsIDOMHTMLUListElement_std19 = interface; + nsIDOMMediaList_std19 = interface; + nsIDOMUIEvent_std19 = interface; + nsIDOMMouseEvent_std19 = interface; + nsIDOMNamedNodeMap_std19 = interface; + nsIDOMNodeList_std19 = interface; + nsIDOMNotation_std19 = interface; + nsIDOMOfflineResourceList_std19 = interface; + nsIDOMProcessingInstruction_std19 = interface; + nsIDOMRange_std19 = interface; + nsIDOMRect_std19 = interface; + nsIDOMRGBColor_std19 = interface; + nsIDOMStorage_std19 = interface; + nsIDOMStorageEvent_std19 = interface; + nsIDOMStorageItem_std19 = interface; + nsIDOMStorageList_std19 = interface; + nsIDOMStorageWindow_std19 = interface; + nsIDOMStyleSheetList_std19 = interface; + nsIDOMWindow_std19 = interface; + nsIDOMWindow2_std19 = interface; + nsIDOMWindowCollection_std19 = interface; + nsIDOMWindowUtils_std19 = interface; + nsIEmbeddingSiteWindow_std19 = interface; + nsIFactory_std19 = interface; + nsIURI_std19 = interface; + nsIURL_std19 = interface; + nsIFileURL_std19 = interface; + nsIGlobalHistory_std19 = interface; + nsIHashable_std19 = interface; + nsIHistoryEntry_std19 = interface; + nsIHttpChannel_std19 = interface; + nsIHttpHeaderVisitor_std19 = interface; + nsIInputStream_std19 = interface; + nsIInterfaceRequestor_std19 = interface; + nsIIOService_std19 = interface; + nsIJSON_std19 = interface; + nsILoadGroup_std19 = interface; + nsILocalFile_std19 = interface; + nsIMemory_std19 = interface; + nsIModule_std19 = interface; + nsIMutableArray_std19 = interface; + nsIObserver_std19 = interface; + nsIObserverService_std19 = interface; + nsIOutputStream_std19 = interface; + nsIPrefBranch_std19 = interface; + nsIPrefBranch2_std19 = interface; + nsIPrefLocalizedString_std19 = interface; + nsIPrefService_std19 = interface; + nsIPrintSession_std19 = interface; + nsIPrintSettings_std19 = interface; + nsIProfile_std19 = interface; + nsIProfileChangeStatus_std19 = interface; + nsIProgrammingLanguage_std19 = interface; + nsIPrompt_std19 = interface; + nsIPromptService_std19 = interface; + nsIProperties_std19 = interface; + nsIProtocolHandler_std19 = interface; + nsIRequestObserver_std19 = interface; + nsIScriptableInputStream_std19 = interface; + nsISecurityWarningDialogs_std19 = interface; + nsISelection_std19 = interface; + nsIServiceManager_std19 = interface; + nsISHistory_std19 = interface; + nsISHistoryListener_std19 = interface; + nsIStreamListener_std19 = interface; + nsISupportsPrimitive_std19 = interface; + nsISupportsID_std19 = interface; + nsISupportsCString_std19 = interface; + nsISupportsString_std19 = interface; + nsISupportsPRBool_std19 = interface; + nsISupportsPRUint8_std19 = interface; + nsISupportsPRUint16_std19 = interface; + nsISupportsPRUint32_std19 = interface; + nsISupportsPRUint64_std19 = interface; + nsISupportsPRTime_std19 = interface; + nsISupportsChar_std19 = interface; + nsISupportsPRInt16_std19 = interface; + nsISupportsPRInt32_std19 = interface; + nsISupportsPRInt64_std19 = interface; + nsISupportsFloat_std19 = interface; + nsISupportsDouble_std19 = interface; + nsISupportsVoid_std19 = interface; + nsISupportsInterfacePointer_std19 = interface; + nsITooltipListener_std19 = interface; + nsITooltipTextProvider_std19 = interface; + nsITraceRefcnt_std19 = interface; + nsIUnicharStreamListener_std19 = interface; + nsIUploadChannel_std19 = interface; + nsIURIContentListener_std19 = interface; + nsIWeakReference_std19 = interface; + nsISupportsWeakReference_std19 = interface; + nsIWebBrowser_std19 = interface; + nsIWebBrowserChrome_std19 = interface; + nsIWebBrowserChromeFocus_std19 = interface; + nsIWebBrowserFind_std19 = interface; + nsIWebBrowserFindInFrames_std19 = interface; + nsIWebBrowserFocus_std19 = interface; + nsIWebBrowserPrint_std19 = interface; + nsIWebBrowserSetup_std19 = interface; + nsIWebBrowserStream_std19 = interface; + nsIWebProgress_std19 = interface; + nsIWebProgressListener_std19 = interface; + nsIWindowCreator_std19 = interface; + nsIWindowWatcher_std19 = interface; + nsIX509Cert_std19 = interface; + nsIX509CertDB_std19 = interface; + nsIX509CertValidity_std19 = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream_std19; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream_std19; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports_std19 = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader_std19 = interface(nsISupports_std19) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + function LoadSubScript(const url: PWideChar): nsresult; extdecl; + end; + + nsIArray_std19 = interface(nsISupports_std19) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result): nsresult; extdecl; + function IndexOf(startIndex: PRUint32; element: nsISupports_std19; out _retval: PRUint32): nsresult; extdecl; + function Enumerate(out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + end; + + nsIASN1Object_std19 = interface(nsISupports_std19) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(out aType: PRUint32): Longword; extdecl; + function SetType(aType: PRUint32): Longword; extdecl; + function GetTag(out aTag: PRUint32): Longword; extdecl; + function SetTag(aTag: PRUint32): Longword; extdecl; + function GetDisplayName(aDisplayName: nsAString): Longword; extdecl; + function SetDisplayName(const aDisplayName: nsAString): Longword; extdecl; + function GetDisplayValue(aDisplayValue: nsAString): Longword; extdecl; + function SetDisplayValue(const aDisplayValue: nsAString): Longword; extdecl; + end; + + nsIASN1Sequence_std19 = interface(nsIASN1Object_std19) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(out aASN1Objects: nsIMutableArray_std19): Longword; extdecl; + function SetASN1Objects(aASN1Objects: nsIMutableArray_std19): Longword; extdecl; + function GetIsValidContainer(out aIsValidContainer: PRBool): Longword; extdecl; + function SetIsValidContainer(aIsValidContainer: PRBool): Longword; extdecl; + function GetIsExpanded(out aIsExpanded: PRBool): Longword; extdecl; + function SetIsExpanded(aIsExpanded: PRBool): Longword; extdecl; + end; + + nsIAuthPrompt_std19 = interface(nsISupports_std19) + ['{358089f9-ee4b-4711-82fd-bcd07fc62061}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsISimpleEnumerator_std19 = interface(nsISupports_std19) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(out _retval: PRBool): nsresult; extdecl; + function GetNext(out _retval: nsISupports_std19): nsresult; extdecl; + end; + + nsICategoryManager_std19 = interface(nsISupports_std19) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool; out _retval: PAnsiChar): nsresult; extdecl; + function DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool): nsresult; extdecl; + function DeleteCategory(const aCategory: PAnsiChar): nsresult; extdecl; + function EnumerateCategory(const aCategory: PAnsiChar; out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + function EnumerateCategories(out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + end; + + nsICertificateDialogs_std19 = interface(nsISupports_std19) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor_std19; cert: nsIX509Cert_std19; out trust: PRUint32; out _retval: PRBool): nsresult; extdecl; + function NotifyCACertExists(ctx: nsIInterfaceRequestor_std19): nsresult; extdecl; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std19; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor_std19; password: nsAString; out _retval: PRBool): nsresult; extdecl; + function ViewCert(ctx: nsIInterfaceRequestor_std19; cert: nsIX509Cert_std19): nsresult; extdecl; + function CrlImportStatusDialog(ctx: nsIInterfaceRequestor_std19; crl: nsICRLInfo_std19): nsresult; extdecl; + end; + + nsIRequest_std19 = interface(nsISupports_std19) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + function GetName(aName: nsACString): Longword; extdecl; + function IsPending(out _retval: PRBool): nsresult; extdecl; + function GetStatus(out aStatus: nsresult): Longword; extdecl; + function Cancel(aStatus: nsresult): nsresult; extdecl; + function Suspend(): nsresult; extdecl; + function Resume(): nsresult; extdecl; + function GetLoadGroup(out aLoadGroup: nsILoadGroup_std19): Longword; extdecl; + function SetLoadGroup(aLoadGroup: nsILoadGroup_std19): Longword; extdecl; + function GetLoadFlags(out aLoadFlags: nsLoadFlags): Longword; extdecl; + function SetLoadFlags(aLoadFlags: nsLoadFlags): Longword; extdecl; + end; + + nsIChannel_std19 = interface(nsIRequest_std19) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(out aOriginalURI: nsIURI_std19): Longword; extdecl; + function SetOriginalURI(aOriginalURI: nsIURI_std19): Longword; extdecl; + function GetURI(out aURI: nsIURI_std19): Longword; extdecl; + function GetOwner(out aOwner: nsISupports_std19): Longword; extdecl; + function SetOwner(aOwner: nsISupports_std19): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std19): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std19): Longword; extdecl; + function GetSecurityInfo(out aSecurityInfo: nsISupports_std19): Longword; extdecl; + function GetContentType(aContentType: nsACString): Longword; extdecl; + function SetContentType(const aContentType: nsACString): Longword; extdecl; + function GetContentCharset(aContentCharset: nsACString): Longword; extdecl; + function SetContentCharset(const aContentCharset: nsACString): Longword; extdecl; + function GetContentLength(out aContentLength: PRInt32): Longword; extdecl; + function SetContentLength(aContentLength: PRInt32): Longword; extdecl; + function Open(out _retval: nsIInputStream_std19): nsresult; extdecl; + function AsyncOpen(aListener: nsIStreamListener_std19; aContext: nsISupports_std19): nsresult; extdecl; + end; + + nsIClassInfo_std19 = interface(nsISupports_std19) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + function GetInterfaces(out count: PRUint32; out _array_array): nsresult; extdecl; + function GetHelperForLanguage(language: PRUint32; out _retval: nsISupports_std19): nsresult; extdecl; + function GetContractID(out aContractID: PAnsiChar): Longword; extdecl; + function GetClassDescription(out aClassDescription: PAnsiChar): Longword; extdecl; + function GetClassID(out aClassID: PGUID): Longword; extdecl; + function GetImplementationLanguage(out aImplementationLanguage: PRUint32): Longword; extdecl; + function GetFlags(out aFlags: PRUint32): Longword; extdecl; + function GetClassIDNoAlloc(out aClassIDNoAlloc: TGUID): Longword; extdecl; + end; + + nsIClipboardCommands_std19 = interface(nsISupports_std19) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(out _retval: PRBool): nsresult; extdecl; + function CanCopySelection(out _retval: PRBool): nsresult; extdecl; + function CanCopyLinkLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageLocation(out _retval: PRBool): nsresult; extdecl; + function CanCopyImageContents(out _retval: PRBool): nsresult; extdecl; + function CanPaste(out _retval: PRBool): nsresult; extdecl; + function CutSelection(): nsresult; extdecl; + function CopySelection(): nsresult; extdecl; + function CopyLinkLocation(): nsresult; extdecl; + function CopyImageLocation(): nsresult; extdecl; + function CopyImageContents(): nsresult; extdecl; + function Paste(): nsresult; extdecl; + function SelectAll(): nsresult; extdecl; + function SelectNone(): nsresult; extdecl; + end; + + nsIComponentManager_std19 = interface(nsISupports_std19) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + function GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstance(constref aClass: TGUID; aDelegate: nsISupports_std19; constref aIID: TGUID; out _result): nsresult; extdecl; + function CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports_std19; constref aIID: TGUID; out _result): nsresult; extdecl; + end; + + nsIComponentRegistrar_std19 = interface(nsISupports_std19) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + function AutoRegister(aSpec: nsIFile_std19): nsresult; extdecl; + function AutoUnregister(aSpec: nsIFile_std19): nsresult; extdecl; + function RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory_std19): nsresult; extdecl; + function UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory_std19): nsresult; extdecl; + function RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile_std19; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile_std19): nsresult; extdecl; + function IsCIDRegistered(constref aClass: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsContractIDRegistered(const aContractID: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function EnumerateCIDs(out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + function EnumerateContractIDs(out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + function CIDToContractID(constref aClass: TGUID; out _retval: PAnsiChar): nsresult; extdecl; + function ContractIDToCID(const aContractID: PAnsiChar; out _retval: PGUID): nsresult; extdecl; + end; + + nsIContextMenuListener_std19 = interface(nsISupports_std19) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + function OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent_std19; aNode: nsIDOMNode_std19): nsresult; extdecl; + end; + + nsICookie_std19 = interface(nsISupports_std19) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + function GetName(aName: nsACString): Longword; extdecl; + function GetValue(aValue: nsACString): Longword; extdecl; + function GetIsDomain(out aIsDomain: PRBool): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function GetIsSecure(out aIsSecure: PRBool): Longword; extdecl; + function GetExpires(out aExpires: PRUint64): Longword; extdecl; + function GetStatus(out aStatus: nsCookieStatus): Longword; extdecl; + function GetPolicy(out aPolicy: nsCookiePolicy): Longword; extdecl; + end; + + nsICookieManager_std19 = interface(nsISupports_std19) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + function RemoveAll(): nsresult; extdecl; + function GetEnumerator(out aEnumerator: nsISimpleEnumerator_std19): Longword; extdecl; + function Remove(const aDomain: nsACString; const aName: nsACString; const aPath: nsACString; aBlocked: PRBool): nsresult; extdecl; + end; + + nsICRLInfo_std19 = interface(nsISupports_std19) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetLastUpdate(out aLastUpdate: PRTime): Longword; extdecl; + function GetNextUpdate(out aNextUpdate: PRTime): Longword; extdecl; + function GetLastUpdateLocale(aLastUpdateLocale: nsAString): Longword; extdecl; + function GetNextUpdateLocale(aNextUpdateLocale: nsAString): Longword; extdecl; + function GetNameInDb(aNameInDb: nsAString): Longword; extdecl; + function GetLastFetchURL(aLastFetchURL: nsACString): Longword; extdecl; + end; + + nsIDebug_std19 = interface(nsISupports_std19) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + function Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Break(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + function Abort(const aFile: PAnsiChar; aLine: PRInt32): nsresult; extdecl; + end; + + nsIFile_std19 = interface(nsISupports_std19) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + function Append(const node: nsAString): nsresult; extdecl; + function AppendNative(const node: nsACString): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function Create(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function GetLeafName(aLeafName: nsAString): Longword; extdecl; + function SetLeafName(const aLeafName: nsAString): Longword; extdecl; + function GetNativeLeafName(aNativeLeafName: nsACString): Longword; extdecl; + function SetNativeLeafName(const aNativeLeafName: nsACString): Longword; extdecl; + function CopyTo(newParentDir: nsIFile_std19; const newName: nsAString): nsresult; extdecl; + function CopyToNative(newParentDir: nsIFile_std19; const newName: nsACString): nsresult; extdecl; + function CopyToFollowingLinks(newParentDir: nsIFile_std19; const newName: nsAString): nsresult; extdecl; + function CopyToFollowingLinksNative(newParentDir: nsIFile_std19; const newName: nsACString): nsresult; extdecl; + function MoveTo(newParentDir: nsIFile_std19; const newName: nsAString): nsresult; extdecl; + function MoveToNative(newParentDir: nsIFile_std19; const newName: nsACString): nsresult; extdecl; + function Remove(recursive: PRBool): nsresult; extdecl; + function GetPermissions(out aPermissions: PRUint32): Longword; extdecl; + function SetPermissions(aPermissions: PRUint32): Longword; extdecl; + function GetPermissionsOfLink(out aPermissionsOfLink: PRUint32): Longword; extdecl; + function SetPermissionsOfLink(aPermissionsOfLink: PRUint32): Longword; extdecl; + function GetLastModifiedTime(out aLastModifiedTime: PRInt64): Longword; extdecl; + function SetLastModifiedTime(aLastModifiedTime: PRInt64): Longword; extdecl; + function GetLastModifiedTimeOfLink(out aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64): Longword; extdecl; + function GetFileSize(out aFileSize: PRInt64): Longword; extdecl; + function SetFileSize(aFileSize: PRInt64): Longword; extdecl; + function GetFileSizeOfLink(out aFileSizeOfLink: PRInt64): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetNativeTarget(aNativeTarget: nsACString): Longword; extdecl; + function GetPath(aPath: nsAString): Longword; extdecl; + function GetNativePath(aNativePath: nsACString): Longword; extdecl; + function Exists(out _retval: PRBool): nsresult; extdecl; + function IsWritable(out _retval: PRBool): nsresult; extdecl; + function IsReadable(out _retval: PRBool): nsresult; extdecl; + function IsExecutable(out _retval: PRBool): nsresult; extdecl; + function IsHidden(out _retval: PRBool): nsresult; extdecl; + function IsDirectory(out _retval: PRBool): nsresult; extdecl; + function IsFile(out _retval: PRBool): nsresult; extdecl; + function IsSymlink(out _retval: PRBool): nsresult; extdecl; + function IsSpecial(out _retval: PRBool): nsresult; extdecl; + function CreateUnique(_type: PRUint32; permissions: PRUint32): nsresult; extdecl; + function Clone(out _retval: nsIFile_std19): nsresult; extdecl; + function Equals(inFile: nsIFile_std19; out _retval: PRBool): nsresult; extdecl; + function _Contains(inFile: nsIFile_std19; recur: PRBool; out _retval: PRBool): nsresult; extdecl; + function GetParent(out aParent: nsIFile_std19): Longword; extdecl; + function GetDirectoryEntries(out aDirectoryEntries: nsISimpleEnumerator_std19): Longword; extdecl; + end; + + nsIDirectoryServiceProvider_std19 = interface(nsISupports_std19) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool; out _retval: nsIFile_std19): nsresult; extdecl; + end; + + nsIDirectoryServiceProvider2_std19 = interface(nsIDirectoryServiceProvider_std19) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar; out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + end; + + nsIDirectoryService_std19 = interface(nsISupports_std19) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + function Init(): nsresult; extdecl; + function RegisterProvider(prov: nsIDirectoryServiceProvider_std19): nsresult; extdecl; + function UnregisterProvider(prov: nsIDirectoryServiceProvider_std19): nsresult; extdecl; + end; + + nsIDOM3DocumentEvent_std19 = interface(nsISupports_std19) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(out _retval: nsIDOMEventGroup_std19): nsresult; extdecl; + end; + + nsIDOM3EventTarget_std19 = interface(nsISupports_std19) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + function AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std19; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std19): nsresult; extdecl; + function RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener_std19; useCapture: PRBool; evtGroup: nsIDOMEventGroup_std19): nsresult; extdecl; + function CanTrigger(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + function IsRegisteredHere(const _type: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAbstractView_std19 = interface(nsISupports_std19) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(out aDocument: nsIDOMDocumentView_std19): Longword; extdecl; + end; + + nsIDOMNode_std19 = interface(nsISupports_std19) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + function GetNodeName(aNodeName: nsAString): Longword; extdecl; + function GetNodeValue(aNodeValue: nsAString): Longword; extdecl; + function SetNodeValue(const aNodeValue: nsAString): Longword; extdecl; + function GetNodeType(out aNodeType: PRUint16): Longword; extdecl; + function GetParentNode(out aParentNode: nsIDOMNode_std19): Longword; extdecl; + function GetChildNodes(out aChildNodes: nsIDOMNodeList_std19): Longword; extdecl; + function GetFirstChild(out aFirstChild: nsIDOMNode_std19): Longword; extdecl; + function GetLastChild(out aLastChild: nsIDOMNode_std19): Longword; extdecl; + function GetPreviousSibling(out aPreviousSibling: nsIDOMNode_std19): Longword; extdecl; + function GetNextSibling(out aNextSibling: nsIDOMNode_std19): Longword; extdecl; + function GetAttributes(out aAttributes: nsIDOMNamedNodeMap_std19): Longword; extdecl; + function GetOwnerDocument(out aOwnerDocument: nsIDOMDocument_std19): Longword; extdecl; + function InsertBefore(newChild: nsIDOMNode_std19; refChild: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function ReplaceChild(newChild: nsIDOMNode_std19; oldChild: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function RemoveChild(oldChild: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function AppendChild(newChild: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function HasChildNodes(out _retval: PRBool): nsresult; extdecl; + function CloneNode(deep: PRBool; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function Normalize(): nsresult; extdecl; + function IsSupported(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetNamespaceURI(aNamespaceURI: nsAString): Longword; extdecl; + function GetPrefix(aPrefix: nsAString): Longword; extdecl; + function SetPrefix(const aPrefix: nsAString): Longword; extdecl; + function GetLocalName(aLocalName: nsAString): Longword; extdecl; + function HasAttributes(out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMAttr_std19 = interface(nsIDOMNode_std19) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetSpecified(out aSpecified: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetOwnerElement(out aOwnerElement: nsIDOMElement_std19): Longword; extdecl; + end; + + nsIDOMBarProp_std19 = interface(nsISupports_std19) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(out aVisible: PRBool): Longword; extdecl; + function SetVisible(aVisible: PRBool): Longword; extdecl; + end; + + nsIDOMCharacterData_std19 = interface(nsIDOMNode_std19) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString): nsresult; extdecl; + function AppendData(const arg: nsAString): nsresult; extdecl; + function InsertData(offset: PRUint32; const arg: nsAString): nsresult; extdecl; + function DeleteData(offset: PRUint32; count: PRUint32): nsresult; extdecl; + function ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString): nsresult; extdecl; + end; + + nsIDOMText_std19 = interface(nsIDOMCharacterData_std19) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32; out _retval: nsIDOMText_std19): nsresult; extdecl; + end; + + nsIDOMCDATASection_std19 = interface(nsIDOMText_std19) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment_std19 = interface(nsIDOMCharacterData_std19) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter_std19 = interface(nsISupports_std19) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + function GetIdentifier(aIdentifier: nsAString): Longword; extdecl; + function GetListStyle(aListStyle: nsAString): Longword; extdecl; + function GetSeparator(aSeparator: nsAString): Longword; extdecl; + end; + + nsIDOMCSSValue_std19 = interface(nsISupports_std19) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetCssValueType(out aCssValueType: PRUint16): Longword; extdecl; + end; + + nsIDOMCSSPrimitiveValue_std19 = interface(nsIDOMCSSValue_std19) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(out aPrimitiveType: PRUint16): Longword; extdecl; + function SetFloatValue(unitType: PRUint16; floatValue: Single): nsresult; extdecl; + function GetFloatValue(unitType: PRUint16; out _retval: Single): nsresult; extdecl; + function SetStringValue(stringType: PRUint16; const stringValue: nsAString): nsresult; extdecl; + function GetStringValue(_retval: nsAString): nsresult; extdecl; + function GetCounterValue(out _retval: nsIDOMCounter_std19): nsresult; extdecl; + function GetRectValue(out _retval: nsIDOMRect_std19): nsresult; extdecl; + function GetRGBColorValue(out _retval: nsIDOMRGBColor_std19): nsresult; extdecl; + end; + + nsIDOMCSSRule_std19 = interface(nsISupports_std19) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(out aType: PRUint16): Longword; extdecl; + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMCSSStyleSheet_std19): Longword; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std19): Longword; extdecl; + end; + + nsIDOMCSSRuleList_std19 = interface(nsISupports_std19) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSRule_std19): nsresult; extdecl; + end; + + nsIDOMCSSStyleDeclaration_std19 = interface(nsISupports_std19) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + function GetCssText(aCssText: nsAString): Longword; extdecl; + function SetCssText(const aCssText: nsAString): Longword; extdecl; + function GetPropertyValue(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyCSSValue(const propertyName: nsAString; out _retval: nsIDOMCSSValue_std19): nsresult; extdecl; + function RemoveProperty(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function GetPropertyPriority(const propertyName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function GetParentRule(out aParentRule: nsIDOMCSSRule_std19): Longword; extdecl; + end; + + nsIDOMStyleSheet_std19 = interface(nsISupports_std19) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetOwnerNode(out aOwnerNode: nsIDOMNode_std19): Longword; extdecl; + function GetParentStyleSheet(out aParentStyleSheet: nsIDOMStyleSheet_std19): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function GetMedia(out aMedia: nsIDOMMediaList_std19): Longword; extdecl; + end; + + nsIDOMCSSStyleSheet_std19 = interface(nsIDOMStyleSheet_std19) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(out aOwnerRule: nsIDOMCSSRule_std19): Longword; extdecl; + function GetCssRules(out aCssRules: nsIDOMCSSRuleList_std19): Longword; extdecl; + function InsertRule(const rule: nsAString; index: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function DeleteRule(index: PRUint32): nsresult; extdecl; + end; + + nsIDOMCSSValueList_std19 = interface(nsIDOMCSSValue_std19) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMCSSValue_std19): nsresult; extdecl; + end; + + nsIDOMEvent_std19 = interface(nsISupports_std19) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetTarget(out aTarget: nsIDOMEventTarget_std19): Longword; extdecl; + function GetCurrentTarget(out aCurrentTarget: nsIDOMEventTarget_std19): Longword; extdecl; + function GetEventPhase(out aEventPhase: PRUint16): Longword; extdecl; + function GetBubbles(out aBubbles: PRBool): Longword; extdecl; + function GetCancelable(out aCancelable: PRBool): Longword; extdecl; + function GetTimeStamp(out aTimeStamp: DOMTimeStamp): Longword; extdecl; + function StopPropagation(): nsresult; extdecl; + function PreventDefault(): nsresult; extdecl; + function InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool): nsresult; extdecl; + end; + + nsIDOMCustomEvent_std19 = interface(nsIDOMEvent_std19) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + function SetCurrentTarget(target: nsIDOMNode_std19): nsresult; extdecl; + function SetEventPhase(phase: PRUint16): nsresult; extdecl; + end; + + nsIDOMDocument_std19 = interface(nsIDOMNode_std19) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(out aDoctype: nsIDOMDocumentType_std19): Longword; extdecl; + function GetImplementation(out aImplementation: nsIDOMDOMImplementation_std19): Longword; extdecl; + function GetDocumentElement(out aDocumentElement: nsIDOMElement_std19): Longword; extdecl; + function CreateElement(const tagName: nsAString; out _retval: nsIDOMElement_std19): nsresult; extdecl; + function CreateDocumentFragment(out _retval: nsIDOMDocumentFragment_std19): nsresult; extdecl; + function CreateTextNode(const data: nsAString; out _retval: nsIDOMText_std19): nsresult; extdecl; + function CreateComment(const data: nsAString; out _retval: nsIDOMComment_std19): nsresult; extdecl; + function CreateCDATASection(const data: nsAString; out _retval: nsIDOMCDATASection_std19): nsresult; extdecl; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString; out _retval: nsIDOMProcessingInstruction_std19): nsresult; extdecl; + function CreateAttribute(const name: nsAString; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function CreateEntityReference(const name: nsAString; out _retval: nsIDOMEntityReference_std19): nsresult; extdecl; + function GetElementsByTagName(const tagname: nsAString; out _retval: nsIDOMNodeList_std19): nsresult; extdecl; + function ImportNode(importedNode: nsIDOMNode_std19; deep: PRBool; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMElement_std19): nsresult; extdecl; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std19): nsresult; extdecl; + function GetElementById(const elementId: nsAString; out _retval: nsIDOMElement_std19): nsresult; extdecl; + end; + + nsIDOMDocumentEvent_std19 = interface(nsISupports_std19) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString; out _retval: nsIDOMEvent_std19): nsresult; extdecl; + end; + + nsIDOMDocumentFragment_std19 = interface(nsIDOMNode_std19) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange_std19 = interface(nsISupports_std19) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(out _retval: nsIDOMRange_std19): nsresult; extdecl; + end; + + nsIDOMDocumentStyle_std19 = interface(nsISupports_std19) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(out aStyleSheets: nsIDOMStyleSheetList_std19): Longword; extdecl; + end; + + nsIDOMDocumentType_std19 = interface(nsIDOMNode_std19) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function GetEntities(out aEntities: nsIDOMNamedNodeMap_std19): Longword; extdecl; + function GetNotations(out aNotations: nsIDOMNamedNodeMap_std19): Longword; extdecl; + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetInternalSubset(aInternalSubset: nsAString): Longword; extdecl; + end; + + nsIDOMDocumentView_std19 = interface(nsISupports_std19) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(out aDefaultView: nsIDOMAbstractView_std19): Longword; extdecl; + end; + + nsIDOMDOMException_std19 = interface(nsISupports_std19) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(out aCode: PRUint32): Longword; extdecl; + end; + + nsIDOMDOMImplementation_std19 = interface(nsISupports_std19) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString; out _retval: PRBool): nsresult; extdecl; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString; out _retval: nsIDOMDocumentType_std19): nsresult; extdecl; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType_std19; out _retval: nsIDOMDocument_std19): nsresult; extdecl; + end; + + nsIDOMElement_std19 = interface(nsIDOMNode_std19) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + function GetTagName(aTagName: nsAString): Longword; extdecl; + function GetAttribute(const name: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttribute(const name: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttribute(const name: nsAString): nsresult; extdecl; + function GetAttributeNode(const name: nsAString; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function SetAttributeNode(newAttr: nsIDOMAttr_std19; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function RemoveAttributeNode(oldAttr: nsIDOMAttr_std19; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function GetElementsByTagName(const name: nsAString; out _retval: nsIDOMNodeList_std19): nsresult; extdecl; + function GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString): nsresult; extdecl; + function SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString): nsresult; extdecl; + function RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString): nsresult; extdecl; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function SetAttributeNodeNS(newAttr: nsIDOMAttr_std19; out _retval: nsIDOMAttr_std19): nsresult; extdecl; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNodeList_std19): nsresult; extdecl; + function HasAttribute(const name: nsAString; out _retval: PRBool): nsresult; extdecl; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMElementCSSInlineStyle_std19 = interface(nsISupports_std19) + ['{99715845-95fc-4a56-aa53-214b65c26e22}'] + function GetStyle(out aStyle: nsIDOMCSSStyleDeclaration_std19): Longword; extdecl; + end; + + nsIDOMEntity_std19 = interface(nsIDOMNode_std19) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + function GetNotationName(aNotationName: nsAString): Longword; extdecl; + end; + + nsIDOMEntityReference_std19 = interface(nsIDOMNode_std19) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup_std19 = interface(nsISupports_std19) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup_std19; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMEventListener_std19 = interface(nsISupports_std19) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + function HandleEvent(event: nsIDOMEvent_std19): nsresult; extdecl; + end; + + nsIDOMEventTarget_std19 = interface(nsISupports_std19) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + function AddEventListener(const _type: nsAString; listener: nsIDOMEventListener_std19; useCapture: PRBool): nsresult; extdecl; + function RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener_std19; useCapture: PRBool): nsresult; extdecl; + function DispatchEvent(evt: nsIDOMEvent_std19; out _retval: PRBool): nsresult; extdecl; + end; + + nsIDOMHTMLElement_std19 = interface(nsIDOMElement_std19) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + function GetId(aId: nsAString): Longword; extdecl; + function SetId(const aId: nsAString): Longword; extdecl; + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetLang(aLang: nsAString): Longword; extdecl; + function SetLang(const aLang: nsAString): Longword; extdecl; + function GetDir(aDir: nsAString): Longword; extdecl; + function SetDir(const aDir: nsAString): Longword; extdecl; + function GetClassName(aClassName: nsAString): Longword; extdecl; + function SetClassName(const aClassName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAnchorElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLAppletElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetObject(aObject: nsAString): Longword; extdecl; + function SetObject(const aObject: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLAreaElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetCoords(aCoords: nsAString): Longword; extdecl; + function SetCoords(const aCoords: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetNoHref(out aNoHref: PRBool): Longword; extdecl; + function SetNoHref(aNoHref: PRBool): Longword; extdecl; + function GetShape(aShape: nsAString): Longword; extdecl; + function SetShape(const aShape: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBaseFontElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLBodyElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + function GetALink(aALink: nsAString): Longword; extdecl; + function SetALink(const aALink: nsAString): Longword; extdecl; + function GetBackground(aBackground: nsAString): Longword; extdecl; + function SetBackground(const aBackground: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetLink(aLink: nsAString): Longword; extdecl; + function SetLink(const aLink: nsAString): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetVLink(aVLink: nsAString): Longword; extdecl; + function SetVLink(const aVLink: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLBRElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + function GetClear(aClear: nsAString): Longword; extdecl; + function SetClear(const aClear: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLButtonElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLCollection_std19 = interface(nsISupports_std19) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + end; + + nsIDOMHTMLDirectoryElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDivElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLDListElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLDocument_std19 = interface(nsIDOMDocument_std19) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + function GetTitle(aTitle: nsAString): Longword; extdecl; + function SetTitle(const aTitle: nsAString): Longword; extdecl; + function GetReferrer(aReferrer: nsAString): Longword; extdecl; + function GetDomain(aDomain: nsAString): Longword; extdecl; + function GetURL(aURL: nsAString): Longword; extdecl; + function GetBody(out aBody: nsIDOMHTMLElement_std19): Longword; extdecl; + function SetBody(aBody: nsIDOMHTMLElement_std19): Longword; extdecl; + function GetImages(out aImages: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetApplets(out aApplets: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetLinks(out aLinks: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetForms(out aForms: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetAnchors(out aAnchors: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetCookie(aCookie: nsAString): Longword; extdecl; + function SetCookie(const aCookie: nsAString): Longword; extdecl; + function Open(): nsresult; extdecl; + function Close(): nsresult; extdecl; + function Write(const text: nsAString): nsresult; extdecl; + function Writeln(const text: nsAString): nsresult; extdecl; + function GetElementsByName(const elementName: nsAString; out _retval: nsIDOMNodeList_std19): nsresult; extdecl; + end; + + nsIDOMHTMLEmbedElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFieldSetElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + end; + + nsIDOMHTMLFontElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + function GetColor(aColor: nsAString): Longword; extdecl; + function SetColor(const aColor: nsAString): Longword; extdecl; + function GetFace(aFace: nsAString): Longword; extdecl; + function SetFace(const aFace: nsAString): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLFormElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(out aElements: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetLength(out aLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAcceptCharset(aAcceptCharset: nsAString): Longword; extdecl; + function SetAcceptCharset(const aAcceptCharset: nsAString): Longword; extdecl; + function GetAction(aAction: nsAString): Longword; extdecl; + function SetAction(const aAction: nsAString): Longword; extdecl; + function GetEnctype(aEnctype: nsAString): Longword; extdecl; + function SetEnctype(const aEnctype: nsAString): Longword; extdecl; + function GetMethod(aMethod: nsAString): Longword; extdecl; + function SetMethod(const aMethod: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function Submit(): nsresult; extdecl; + function Reset(): nsresult; extdecl; + end; + + nsIDOMHTMLFrameElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetNoResize(out aNoResize: PRBool): Longword; extdecl; + function SetNoResize(aNoResize: PRBool): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std19): Longword; extdecl; + end; + + nsIDOMHTMLFrameSetElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + function GetCols(aCols: nsAString): Longword; extdecl; + function SetCols(const aCols: nsAString): Longword; extdecl; + function GetRows(aRows: nsAString): Longword; extdecl; + function SetRows(const aRows: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + function GetProfile(aProfile: nsAString): Longword; extdecl; + function SetProfile(const aProfile: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHeadingElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHRElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetNoShade(out aNoShade: PRBool): Longword; extdecl; + function SetNoShade(aNoShade: PRBool): Longword; extdecl; + function GetSize(aSize: nsAString): Longword; extdecl; + function SetSize(const aSize: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLHtmlElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + function GetVersion(aVersion: nsAString): Longword; extdecl; + function SetVersion(const aVersion: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLIFrameElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetFrameBorder(aFrameBorder: nsAString): Longword; extdecl; + function SetFrameBorder(const aFrameBorder: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetMarginHeight(aMarginHeight: nsAString): Longword; extdecl; + function SetMarginHeight(const aMarginHeight: nsAString): Longword; extdecl; + function GetMarginWidth(aMarginWidth: nsAString): Longword; extdecl; + function SetMarginWidth(const aMarginWidth: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScrolling(aScrolling: nsAString): Longword; extdecl; + function SetScrolling(const aScrolling: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std19): Longword; extdecl; + end; + + nsIDOMHTMLImageElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetHeight(out aHeight: PRInt32): Longword; extdecl; + function SetHeight(aHeight: PRInt32): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetIsMap(out aIsMap: PRBool): Longword; extdecl; + function SetIsMap(aIsMap: PRBool): Longword; extdecl; + function GetLongDesc(aLongDesc: nsAString): Longword; extdecl; + function SetLongDesc(const aLongDesc: nsAString): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLInputElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetDefaultChecked(out aDefaultChecked: PRBool): Longword; extdecl; + function SetDefaultChecked(aDefaultChecked: PRBool): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetAccept(aAccept: nsAString): Longword; extdecl; + function SetAccept(const aAccept: nsAString): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAlt(aAlt: nsAString): Longword; extdecl; + function SetAlt(const aAlt: nsAString): Longword; extdecl; + function GetChecked(out aChecked: PRBool): Longword; extdecl; + function SetChecked(aChecked: PRBool): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetSize(out aSize: PRUint32): Longword; extdecl; + function SetSize(aSize: PRUint32): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + function Click(): nsresult; extdecl; + end; + + nsIDOMHTMLIsIndexElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetPrompt(aPrompt: nsAString): Longword; extdecl; + function SetPrompt(const aPrompt: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLabelElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLegendElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLLIElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(out aValue: PRInt32): Longword; extdecl; + function SetValue(aValue: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLLinkElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetHref(aHref: nsAString): Longword; extdecl; + function SetHref(const aHref: nsAString): Longword; extdecl; + function GetHreflang(aHreflang: nsAString): Longword; extdecl; + function SetHreflang(const aHreflang: nsAString): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetRel(aRel: nsAString): Longword; extdecl; + function SetRel(const aRel: nsAString): Longword; extdecl; + function GetRev(aRev: nsAString): Longword; extdecl; + function SetRev(const aRev: nsAString): Longword; extdecl; + function GetTarget(aTarget: nsAString): Longword; extdecl; + function SetTarget(const aTarget: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMapElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(out aAreas: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLMenuElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + end; + + nsIDOMHTMLMetaElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + function GetContent(aContent: nsAString): Longword; extdecl; + function SetContent(const aContent: nsAString): Longword; extdecl; + function GetHttpEquiv(aHttpEquiv: nsAString): Longword; extdecl; + function SetHttpEquiv(const aHttpEquiv: nsAString): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetScheme(aScheme: nsAString): Longword; extdecl; + function SetScheme(const aScheme: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLModElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + function GetDateTime(aDateTime: nsAString): Longword; extdecl; + function SetDateTime(const aDateTime: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLObjectElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetCode(aCode: nsAString): Longword; extdecl; + function SetCode(const aCode: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetArchive(aArchive: nsAString): Longword; extdecl; + function SetArchive(const aArchive: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCodeBase(aCodeBase: nsAString): Longword; extdecl; + function SetCodeBase(const aCodeBase: nsAString): Longword; extdecl; + function GetCodeType(aCodeType: nsAString): Longword; extdecl; + function SetCodeType(const aCodeType: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function GetDeclare(out aDeclare: PRBool): Longword; extdecl; + function SetDeclare(aDeclare: PRBool): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetHspace(out aHspace: PRInt32): Longword; extdecl; + function SetHspace(aHspace: PRInt32): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetStandby(aStandby: nsAString): Longword; extdecl; + function SetStandby(const aStandby: nsAString): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetUseMap(aUseMap: nsAString): Longword; extdecl; + function SetUseMap(const aUseMap: nsAString): Longword; extdecl; + function GetVspace(out aVspace: PRInt32): Longword; extdecl; + function SetVspace(aVspace: PRInt32): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function GetContentDocument(out aContentDocument: nsIDOMDocument_std19): Longword; extdecl; + end; + + nsIDOMHTMLOListElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetStart(out aStart: PRInt32): Longword; extdecl; + function SetStart(aStart: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptGroupElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetDefaultSelected(out aDefaultSelected: PRBool): Longword; extdecl; + function SetDefaultSelected(aDefaultSelected: PRBool): Longword; extdecl; + function GetText(aText: nsAString): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetLabel(aLabel: nsAString): Longword; extdecl; + function SetLabel(const aLabel: nsAString): Longword; extdecl; + function GetSelected(out aSelected: PRBool): Longword; extdecl; + function SetSelected(aSelected: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLOptionsCollection_std19 = interface(nsISupports_std19) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + end; + + nsIDOMHTMLParagraphElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLParamElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetValueType(aValueType: nsAString): Longword; extdecl; + function SetValueType(const aValueType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLPreElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(out aWidth: PRInt32): Longword; extdecl; + function SetWidth(aWidth: PRInt32): Longword; extdecl; + end; + + nsIDOMHTMLQuoteElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + function GetCite(aCite: nsAString): Longword; extdecl; + function SetCite(const aCite: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLScriptElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + function GetHtmlFor(aHtmlFor: nsAString): Longword; extdecl; + function SetHtmlFor(const aHtmlFor: nsAString): Longword; extdecl; + function GetEvent(aEvent: nsAString): Longword; extdecl; + function SetEvent(const aEvent: nsAString): Longword; extdecl; + function GetCharset(aCharset: nsAString): Longword; extdecl; + function SetCharset(const aCharset: nsAString): Longword; extdecl; + function GetDefer(out aDefer: PRBool): Longword; extdecl; + function SetDefer(aDefer: PRBool): Longword; extdecl; + function GetSrc(aSrc: nsAString): Longword; extdecl; + function SetSrc(const aSrc: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLSelectElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + function GetType(aType: nsAString): Longword; extdecl; + function GetSelectedIndex(out aSelectedIndex: PRInt32): Longword; extdecl; + function SetSelectedIndex(aSelectedIndex: PRInt32): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function SetLength(aLength: PRUint32): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetOptions(out aOptions: nsIDOMHTMLOptionsCollection_std19): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMultiple(out aMultiple: PRBool): Longword; extdecl; + function SetMultiple(aMultiple: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetSize(out aSize: PRInt32): Longword; extdecl; + function SetSize(aSize: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function Add(element: nsIDOMHTMLElement_std19; before: nsIDOMHTMLElement_std19): nsresult; extdecl; + function Remove(index: PRInt32): nsresult; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + end; + + nsIDOMHTMLStyleElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetMedia(aMedia: nsAString): Longword; extdecl; + function SetMedia(const aMedia: nsAString): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCaptionElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableCellElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(out aCellIndex: PRInt32): Longword; extdecl; + function GetAbbr(aAbbr: nsAString): Longword; extdecl; + function SetAbbr(const aAbbr: nsAString): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetAxis(aAxis: nsAString): Longword; extdecl; + function SetAxis(const aAxis: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetColSpan(out aColSpan: PRInt32): Longword; extdecl; + function SetColSpan(aColSpan: PRInt32): Longword; extdecl; + function GetHeaders(aHeaders: nsAString): Longword; extdecl; + function SetHeaders(const aHeaders: nsAString): Longword; extdecl; + function GetHeight(aHeight: nsAString): Longword; extdecl; + function SetHeight(const aHeight: nsAString): Longword; extdecl; + function GetNoWrap(out aNoWrap: PRBool): Longword; extdecl; + function SetNoWrap(aNoWrap: PRBool): Longword; extdecl; + function GetRowSpan(out aRowSpan: PRInt32): Longword; extdecl; + function SetRowSpan(aRowSpan: PRInt32): Longword; extdecl; + function GetScope(aScope: nsAString): Longword; extdecl; + function SetScope(const aScope: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableColElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetSpan(out aSpan: PRInt32): Longword; extdecl; + function SetSpan(aSpan: PRInt32): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLTableElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(out aCaption: nsIDOMHTMLTableCaptionElement_std19): Longword; extdecl; + function SetCaption(aCaption: nsIDOMHTMLTableCaptionElement_std19): Longword; extdecl; + function GetTHead(out aTHead: nsIDOMHTMLTableSectionElement_std19): Longword; extdecl; + function SetTHead(aTHead: nsIDOMHTMLTableSectionElement_std19): Longword; extdecl; + function GetTFoot(out aTFoot: nsIDOMHTMLTableSectionElement_std19): Longword; extdecl; + function SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement_std19): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetTBodies(out aTBodies: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetBorder(aBorder: nsAString): Longword; extdecl; + function SetBorder(const aBorder: nsAString): Longword; extdecl; + function GetCellPadding(aCellPadding: nsAString): Longword; extdecl; + function SetCellPadding(const aCellPadding: nsAString): Longword; extdecl; + function GetCellSpacing(aCellSpacing: nsAString): Longword; extdecl; + function SetCellSpacing(const aCellSpacing: nsAString): Longword; extdecl; + function GetFrame(aFrame: nsAString): Longword; extdecl; + function SetFrame(const aFrame: nsAString): Longword; extdecl; + function GetRules(aRules: nsAString): Longword; extdecl; + function SetRules(const aRules: nsAString): Longword; extdecl; + function GetSummary(aSummary: nsAString): Longword; extdecl; + function SetSummary(const aSummary: nsAString): Longword; extdecl; + function GetWidth(aWidth: nsAString): Longword; extdecl; + function SetWidth(const aWidth: nsAString): Longword; extdecl; + function CreateTHead(out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteTHead(): nsresult; extdecl; + function CreateTFoot(out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteTFoot(): nsresult; extdecl; + function CreateCaption(out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteCaption(): nsresult; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableRowElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(out aRowIndex: PRInt32): Longword; extdecl; + function GetSectionRowIndex(out aSectionRowIndex: PRInt32): Longword; extdecl; + function GetCells(out aCells: nsIDOMHTMLCollection_std19): Longword; extdecl; + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetBgColor(aBgColor: nsAString): Longword; extdecl; + function SetBgColor(const aBgColor: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function InsertCell(index: PRInt32; out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteCell(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTableSectionElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + function GetAlign(aAlign: nsAString): Longword; extdecl; + function SetAlign(const aAlign: nsAString): Longword; extdecl; + function GetCh(aCh: nsAString): Longword; extdecl; + function SetCh(const aCh: nsAString): Longword; extdecl; + function GetChOff(aChOff: nsAString): Longword; extdecl; + function SetChOff(const aChOff: nsAString): Longword; extdecl; + function GetVAlign(aVAlign: nsAString): Longword; extdecl; + function SetVAlign(const aVAlign: nsAString): Longword; extdecl; + function GetRows(out aRows: nsIDOMHTMLCollection_std19): Longword; extdecl; + function InsertRow(index: PRInt32; out _retval: nsIDOMHTMLElement_std19): nsresult; extdecl; + function DeleteRow(index: PRInt32): nsresult; extdecl; + end; + + nsIDOMHTMLTextAreaElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + function GetDefaultValue(aDefaultValue: nsAString): Longword; extdecl; + function SetDefaultValue(const aDefaultValue: nsAString): Longword; extdecl; + function GetForm(out aForm: nsIDOMHTMLFormElement_std19): Longword; extdecl; + function GetAccessKey(aAccessKey: nsAString): Longword; extdecl; + function SetAccessKey(const aAccessKey: nsAString): Longword; extdecl; + function GetCols(out aCols: PRInt32): Longword; extdecl; + function SetCols(aCols: PRInt32): Longword; extdecl; + function GetDisabled(out aDisabled: PRBool): Longword; extdecl; + function SetDisabled(aDisabled: PRBool): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetReadOnly(out aReadOnly: PRBool): Longword; extdecl; + function SetReadOnly(aReadOnly: PRBool): Longword; extdecl; + function GetRows(out aRows: PRInt32): Longword; extdecl; + function SetRows(aRows: PRInt32): Longword; extdecl; + function GetTabIndex(out aTabIndex: PRInt32): Longword; extdecl; + function SetTabIndex(aTabIndex: PRInt32): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + function Blur(): nsresult; extdecl; + function Focus(): nsresult; extdecl; + function Select(): nsresult; extdecl; + end; + + nsIDOMHTMLTitleElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + function GetText(aText: nsAString): Longword; extdecl; + function SetText(const aText: nsAString): Longword; extdecl; + end; + + nsIDOMHTMLUListElement_std19 = interface(nsIDOMHTMLElement_std19) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(out aCompact: PRBool): Longword; extdecl; + function SetCompact(aCompact: PRBool): Longword; extdecl; + function GetType(aType: nsAString): Longword; extdecl; + function SetType(const aType: nsAString): Longword; extdecl; + end; + + nsIDOMMediaList_std19 = interface(nsISupports_std19) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + function GetMediaText(aMediaText: nsAString): Longword; extdecl; + function SetMediaText(const aMediaText: nsAString): Longword; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function DeleteMedium(const oldMedium: nsAString): nsresult; extdecl; + function AppendMedium(const newMedium: nsAString): nsresult; extdecl; + end; + + nsIDOMUIEvent_std19 = interface(nsIDOMEvent_std19) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(out aView: nsIDOMAbstractView_std19): Longword; extdecl; + function GetDetail(out aDetail: PRInt32): Longword; extdecl; + function InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std19; detailArg: PRInt32): nsresult; extdecl; + end; + + nsIDOMMouseEvent_std19 = interface(nsIDOMUIEvent_std19) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(out aScreenX: PRInt32): Longword; extdecl; + function GetScreenY(out aScreenY: PRInt32): Longword; extdecl; + function GetClientX(out aClientX: PRInt32): Longword; extdecl; + function GetClientY(out aClientY: PRInt32): Longword; extdecl; + function GetCtrlKey(out aCtrlKey: PRBool): Longword; extdecl; + function GetShiftKey(out aShiftKey: PRBool): Longword; extdecl; + function GetAltKey(out aAltKey: PRBool): Longword; extdecl; + function GetMetaKey(out aMetaKey: PRBool): Longword; extdecl; + function GetButton(out aButton: PRUint16): Longword; extdecl; + function GetRelatedTarget(out aRelatedTarget: nsIDOMEventTarget_std19): Longword; extdecl; + function InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView_std19; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget_std19): nsresult; extdecl; + end; + + nsIDOMNamedNodeMap_std19 = interface(nsISupports_std19) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function SetNamedItem(arg: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function RemoveNamedItem(const name: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function SetNamedItemNS(arg: nsIDOMNode_std19; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString; out _retval: nsIDOMNode_std19): nsresult; extdecl; + end; + + nsIDOMNodeList_std19 = interface(nsISupports_std19) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32; out _retval: nsIDOMNode_std19): nsresult; extdecl; + function GetLength(out aLength: PRUint32): Longword; extdecl; + end; + + nsIDOMNotation_std19 = interface(nsIDOMNode_std19) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + function GetPublicId(aPublicId: nsAString): Longword; extdecl; + function GetSystemId(aSystemId: nsAString): Longword; extdecl; + end; + + nsIDOMOfflineResourceList_std19 = interface(nsISupports_std19) + ['{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function Add(const uri: nsAString): nsresult; extdecl; + function Remove(const uri: nsAString): nsresult; extdecl; + function GetStatus(out aStatus: PRUint16): Longword; extdecl; + function Update(): nsresult; extdecl; + function SwapCache(): nsresult; extdecl; + function GetOnchecking(out aOnchecking: nsIDOMEventListener_std19): Longword; extdecl; + function SetOnchecking(aOnchecking: nsIDOMEventListener_std19): Longword; extdecl; + function GetOnerror(out aOnerror: nsIDOMEventListener_std19): Longword; extdecl; + function SetOnerror(aOnerror: nsIDOMEventListener_std19): Longword; extdecl; + function GetOnnoupdate(out aOnnoupdate: nsIDOMEventListener_std19): Longword; extdecl; + function SetOnnoupdate(aOnnoupdate: nsIDOMEventListener_std19): Longword; extdecl; + function GetOndownloading(out aOndownloading: nsIDOMEventListener_std19): Longword; extdecl; + function SetOndownloading(aOndownloading: nsIDOMEventListener_std19): Longword; extdecl; + function GetOnprogress(out aOnprogress: nsIDOMEventListener_std19): Longword; extdecl; + function SetOnprogress(aOnprogress: nsIDOMEventListener_std19): Longword; extdecl; + function GetOnupdateready(out aOnupdateready: nsIDOMEventListener_std19): Longword; extdecl; + function SetOnupdateready(aOnupdateready: nsIDOMEventListener_std19): Longword; extdecl; + function GetOncached(out aOncached: nsIDOMEventListener_std19): Longword; extdecl; + function SetOncached(aOncached: nsIDOMEventListener_std19): Longword; extdecl; + end; + + nsIDOMProcessingInstruction_std19 = interface(nsIDOMNode_std19) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + function GetTarget(aTarget: nsAString): Longword; extdecl; + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + end; + + nsIDOMRange_std19 = interface(nsISupports_std19) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(out aStartContainer: nsIDOMNode_std19): Longword; extdecl; + function GetStartOffset(out aStartOffset: PRInt32): Longword; extdecl; + function GetEndContainer(out aEndContainer: nsIDOMNode_std19): Longword; extdecl; + function GetEndOffset(out aEndOffset: PRInt32): Longword; extdecl; + function GetCollapsed(out aCollapsed: PRBool): Longword; extdecl; + function GetCommonAncestorContainer(out aCommonAncestorContainer: nsIDOMNode_std19): Longword; extdecl; + function SetStart(refNode: nsIDOMNode_std19; offset: PRInt32): nsresult; extdecl; + function SetEnd(refNode: nsIDOMNode_std19; offset: PRInt32): nsresult; extdecl; + function SetStartBefore(refNode: nsIDOMNode_std19): nsresult; extdecl; + function SetStartAfter(refNode: nsIDOMNode_std19): nsresult; extdecl; + function SetEndBefore(refNode: nsIDOMNode_std19): nsresult; extdecl; + function SetEndAfter(refNode: nsIDOMNode_std19): nsresult; extdecl; + function Collapse(toStart: PRBool): nsresult; extdecl; + function SelectNode(refNode: nsIDOMNode_std19): nsresult; extdecl; + function SelectNodeContents(refNode: nsIDOMNode_std19): nsresult; extdecl; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange_std19; out _retval: PRInt16): nsresult; extdecl; + function DeleteContents(): nsresult; extdecl; + function ExtractContents(out _retval: nsIDOMDocumentFragment_std19): nsresult; extdecl; + function CloneContents(out _retval: nsIDOMDocumentFragment_std19): nsresult; extdecl; + function InsertNode(newNode: nsIDOMNode_std19): nsresult; extdecl; + function SurroundContents(newParent: nsIDOMNode_std19): nsresult; extdecl; + function CloneRange(out _retval: nsIDOMRange_std19): nsresult; extdecl; + function ToString(_retval: nsAString): nsresult; extdecl; + function Detach(): nsresult; extdecl; + end; + + nsIDOMRect_std19 = interface(nsISupports_std19) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(out aTop: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + function GetRight(out aRight: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + function GetBottom(out aBottom: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + function GetLeft(out aLeft: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + end; + + nsIDOMRGBColor_std19 = interface(nsISupports_std19) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(out aRed: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + function GetGreen(out aGreen: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + function GetBlue(out aBlue: nsIDOMCSSPrimitiveValue_std19): Longword; extdecl; + end; + + nsIDOMStorage_std19 = interface(nsISupports_std19) + ['{95cc1383-3b62-4b89-aaef-1004a513ef47}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Key(index: PRUint32; _retval: nsAString): nsresult; extdecl; + function GetItem(const key: nsAString; out _retval: nsIDOMStorageItem_std19): nsresult; extdecl; + function SetItem(const key: nsAString; const data: nsAString): nsresult; extdecl; + function RemoveItem(const key: nsAString): nsresult; extdecl; + end; + + nsIDOMStorageEvent_std19 = interface(nsIDOMEvent_std19) + ['{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'] + function GetDomain(aDomain: nsAString): Longword; extdecl; + function InitStorageEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString): nsresult; extdecl; + function InitStorageEventNS(const namespaceURIArg: nsAString; const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString): nsresult; extdecl; + end; + + nsIDOMStorageItem_std19 = interface(nsISupports_std19) + ['{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'] + function GetSecure(out aSecure: PRBool): Longword; extdecl; + function SetSecure(aSecure: PRBool): Longword; extdecl; + function GetValue(aValue: nsAString): Longword; extdecl; + function SetValue(const aValue: nsAString): Longword; extdecl; + end; + + nsIDOMStorageList_std19 = interface(nsISupports_std19) + ['{f2166929-91b6-4372-8d5f-c366f47a5f54}'] + function NamedItem(const domain: nsAString; out _retval: nsIDOMStorage_std19): nsresult; extdecl; + end; + + nsIDOMStorageWindow_std19 = interface(nsISupports_std19) + ['{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'] + function GetSessionStorage(out aSessionStorage: nsIDOMStorage_std19): Longword; extdecl; + function GetGlobalStorage(out aGlobalStorage: nsIDOMStorageList_std19): Longword; extdecl; + end; + + nsIDOMStyleSheetList_std19 = interface(nsISupports_std19) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMStyleSheet_std19): nsresult; extdecl; + end; + + nsIDOMWindow_std19 = interface(nsISupports_std19) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(out aDocument: nsIDOMDocument_std19): Longword; extdecl; + function GetParent(out aParent: nsIDOMWindow_std19): Longword; extdecl; + function GetTop(out aTop: nsIDOMWindow_std19): Longword; extdecl; + function GetScrollbars(out aScrollbars: nsIDOMBarProp_std19): Longword; extdecl; + function GetFrames(out aFrames: nsIDOMWindowCollection_std19): Longword; extdecl; + function GetName(aName: nsAString): Longword; extdecl; + function SetName(const aName: nsAString): Longword; extdecl; + function GetTextZoom(out aTextZoom: Single): Longword; extdecl; + function SetTextZoom(aTextZoom: Single): Longword; extdecl; + function GetScrollX(out aScrollX: PRInt32): Longword; extdecl; + function GetScrollY(out aScrollY: PRInt32): Longword; extdecl; + function ScrollTo(xScroll: PRInt32; yScroll: PRInt32): nsresult; extdecl; + function ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32): nsresult; extdecl; + function GetSelection(out _retval: nsISelection_std19): nsresult; extdecl; + function ScrollByLines(numLines: PRInt32): nsresult; extdecl; + function ScrollByPages(numPages: PRInt32): nsresult; extdecl; + function SizeToContent(): nsresult; extdecl; + end; + + nsIDOMWindow2_std19 = interface(nsIDOMWindow_std19) + ['{73c5fa35-3add-4c87-a303-a850ccf4d65a}'] + function GetWindowRoot(out aWindowRoot: nsIDOMEventTarget_std19): Longword; extdecl; + function GetApplicationCache(out aApplicationCache: nsIDOMOfflineResourceList_std19): Longword; extdecl; + end; + + nsIDOMWindowCollection_std19 = interface(nsISupports_std19) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(out aLength: PRUint32): Longword; extdecl; + function Item(index: PRUint32; out _retval: nsIDOMWindow_std19): nsresult; extdecl; + function NamedItem(const name: nsAString; out _retval: nsIDOMWindow_std19): nsresult; extdecl; + end; + + nsIDOMWindowUtils_std19 = interface(nsISupports_std19) + ['{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'] + function GetImageAnimationMode(out aImageAnimationMode: PRUint16): Longword; extdecl; + function SetImageAnimationMode(aImageAnimationMode: PRUint16): Longword; extdecl; + function GetDocCharsetIsForced(out aDocCharsetIsForced: PRBool): Longword; extdecl; + function GetDocumentMetadata(const aName: nsAString; _retval: nsAString): nsresult; extdecl; + function Redraw(): nsresult; extdecl; + function SendMouseEvent(const aType: nsAString; aX: PRInt32; aY: PRInt32; aButton: PRInt32; aClickCount: PRInt32; aModifiers: PRInt32): nsresult; extdecl; + function SendKeyEvent(const aType: nsAString; aKeyCode: PRInt32; aCharCode: PRInt32; aModifiers: PRInt32): nsresult; extdecl; + function SendNativeKeyEvent(aNativeKeyboardLayout: PRInt32; aNativeKeyCode: PRInt32; aModifierFlags: PRInt32; const aCharacters: nsAString; const aUnmodifiedCharacters: nsAString): nsresult; extdecl; + function Focus(aElement: nsIDOMElement_std19): nsresult; extdecl; + function GarbageCollect(): nsresult; extdecl; + end; + + nsIEmbeddingSiteWindow_std19 = interface(nsISupports_std19) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + function SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32): nsresult; extdecl; + function GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32): nsresult; extdecl; + function SetFocus(): nsresult; extdecl; + function GetVisibility(out aVisibility: PRBool): Longword; extdecl; + function SetVisibility(aVisibility: PRBool): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetSiteWindow(out aSiteWindow: Pointer): Longword; extdecl; + end; + + nsIFactory_std19 = interface(nsISupports_std19) + ['{00000001-0000-0000-c000-000000000046}'] + function CreateInstance(aOuter: nsISupports_std19; constref iid: TGUID; out _result): nsresult; extdecl; + function LockFactory(lock: PRBool): nsresult; extdecl; + end; + + nsIURI_std19 = interface(nsISupports_std19) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + function GetSpec(aSpec: nsACString): Longword; extdecl; + function SetSpec(const aSpec: nsACString): Longword; extdecl; + function GetPrePath(aPrePath: nsACString): Longword; extdecl; + function GetScheme(aScheme: nsACString): Longword; extdecl; + function SetScheme(const aScheme: nsACString): Longword; extdecl; + function GetUserPass(aUserPass: nsACString): Longword; extdecl; + function SetUserPass(const aUserPass: nsACString): Longword; extdecl; + function GetUsername(aUsername: nsACString): Longword; extdecl; + function SetUsername(const aUsername: nsACString): Longword; extdecl; + function GetPassword(aPassword: nsACString): Longword; extdecl; + function SetPassword(const aPassword: nsACString): Longword; extdecl; + function GetHostPort(aHostPort: nsACString): Longword; extdecl; + function SetHostPort(const aHostPort: nsACString): Longword; extdecl; + function GetHost(aHost: nsACString): Longword; extdecl; + function SetHost(const aHost: nsACString): Longword; extdecl; + function GetPort(out aPort: PRInt32): Longword; extdecl; + function SetPort(aPort: PRInt32): Longword; extdecl; + function GetPath(aPath: nsACString): Longword; extdecl; + function SetPath(const aPath: nsACString): Longword; extdecl; + function Equals(other: nsIURI_std19; out _retval: PRBool): nsresult; extdecl; + function SchemeIs(const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Clone(out _retval: nsIURI_std19): nsresult; extdecl; + function Resolve(const relativePath: nsACString; _retval: nsACString): nsresult; extdecl; + function GetAsciiSpec(aAsciiSpec: nsACString): Longword; extdecl; + function GetAsciiHost(aAsciiHost: nsACString): Longword; extdecl; + function GetOriginCharset(aOriginCharset: nsACString): Longword; extdecl; + end; + + nsIURL_std19 = interface(nsIURI_std19) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + function GetFilePath(aFilePath: nsACString): Longword; extdecl; + function SetFilePath(const aFilePath: nsACString): Longword; extdecl; + function GetParam(aParam: nsACString): Longword; extdecl; + function SetParam(const aParam: nsACString): Longword; extdecl; + function GetQuery(aQuery: nsACString): Longword; extdecl; + function SetQuery(const aQuery: nsACString): Longword; extdecl; + function GetRef(aRef: nsACString): Longword; extdecl; + function SetRef(const aRef: nsACString): Longword; extdecl; + function GetDirectory(aDirectory: nsACString): Longword; extdecl; + function SetDirectory(const aDirectory: nsACString): Longword; extdecl; + function GetFileName(aFileName: nsACString): Longword; extdecl; + function SetFileName(const aFileName: nsACString): Longword; extdecl; + function GetFileBaseName(aFileBaseName: nsACString): Longword; extdecl; + function SetFileBaseName(const aFileBaseName: nsACString): Longword; extdecl; + function GetFileExtension(aFileExtension: nsACString): Longword; extdecl; + function SetFileExtension(const aFileExtension: nsACString): Longword; extdecl; + function GetCommonBaseSpec(aURIToCompare: nsIURI_std19; _retval: nsACString): nsresult; extdecl; + function GetRelativeSpec(aURIToCompare: nsIURI_std19; _retval: nsACString): nsresult; extdecl; + end; + + nsIFileURL_std19 = interface(nsIURL_std19) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(out aFile: nsIFile_std19): Longword; extdecl; + function SetFile(aFile: nsIFile_std19): Longword; extdecl; + end; + + nsIGlobalHistory_std19 = interface(nsISupports_std19) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + function AddPage(const aURL: PAnsiChar): nsresult; extdecl; + function IsVisited(const aURL: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIHashable_std19 = interface(nsISupports_std19) + ['{17e595fa-b57a-4933-bd0f-b1812e8ab188}'] + function Equals(aOther: nsIHashable_std19; out _retval: PRBool): nsresult; extdecl; + function GetHashCode(out aHashCode: PRUint32): Longword; extdecl; + end; + + nsIHistoryEntry_std19 = interface(nsISupports_std19) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(out aURI: nsIURI_std19): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function GetIsSubFrame(out aIsSubFrame: PRBool): Longword; extdecl; + end; + + nsIHttpChannel_std19 = interface(nsIChannel_std19) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + function GetRequestMethod(aRequestMethod: nsACString): Longword; extdecl; + function SetRequestMethod(const aRequestMethod: nsACString): Longword; extdecl; + function GetReferrer(out aReferrer: nsIURI_std19): Longword; extdecl; + function SetReferrer(aReferrer: nsIURI_std19): Longword; extdecl; + function GetRequestHeader(const aHeader: nsACString; _retval: nsACString): nsresult; extdecl; + function SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool): nsresult; extdecl; + function VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor_std19): nsresult; extdecl; + function GetAllowPipelining(out aAllowPipelining: PRBool): Longword; extdecl; + function SetAllowPipelining(aAllowPipelining: PRBool): Longword; extdecl; + function GetRedirectionLimit(out aRedirectionLimit: PRUint32): Longword; extdecl; + function SetRedirectionLimit(aRedirectionLimit: PRUint32): Longword; extdecl; + function GetResponseStatus(out aResponseStatus: PRUint32): Longword; extdecl; + function GetResponseStatusText(aResponseStatusText: nsACString): Longword; extdecl; + function GetRequestSucceeded(out aRequestSucceeded: PRBool): Longword; extdecl; + function GetResponseHeader(const header: nsACString; _retval: nsACString): nsresult; extdecl; + function SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool): nsresult; extdecl; + function VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor_std19): nsresult; extdecl; + function IsNoStoreResponse(out _retval: PRBool): nsresult; extdecl; + function IsNoCacheResponse(out _retval: PRBool): nsresult; extdecl; + end; + + nsIHttpHeaderVisitor_std19 = interface(nsISupports_std19) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + function VisitHeader(const aHeader: nsACString; const aValue: nsACString): nsresult; extdecl; + end; + + nsIInputStream_std19 = interface(nsISupports_std19) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aBuf: Pchar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIInterfaceRequestor_std19 = interface(nsISupports_std19) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + function GetInterface(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsIIOService_std19 = interface(nsISupports_std19) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar; out _retval: nsIProtocolHandler_std19): nsresult; extdecl; + function GetProtocolFlags(const aScheme: PAnsiChar; out _retval: PRUint32): nsresult; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std19; out _retval: nsIURI_std19): nsresult; extdecl; + function NewFileURI(aFile: nsIFile_std19; out _retval: nsIURI_std19): nsresult; extdecl; + function NewChannelFromURI(aURI: nsIURI_std19; out _retval: nsIChannel_std19): nsresult; extdecl; + function NewChannel(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std19; out _retval: nsIChannel_std19): nsresult; extdecl; + function GetOffline(out aOffline: PRBool): Longword; extdecl; + function SetOffline(aOffline: PRBool): Longword; extdecl; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function ExtractScheme(const urlString: nsACString; _retval: nsACString): nsresult; extdecl; + end; + + nsIJSON_std19 = interface(nsISupports_std19) + ['{45464c36-efde-4cb5-8e00-07480533ff35}'] + function Encode(_retval: nsAString): nsresult; extdecl; + function EncodeToStream(stream: nsIOutputStream_std19; const charset: PAnsiChar; writeBOM: PRBool): nsresult; extdecl; + function Decode(const str: nsAString): nsresult; extdecl; + function DecodeFromStream(stream: nsIInputStream_std19; contentLength: PRInt32): nsresult; extdecl; + end; + + nsILoadGroup_std19 = interface(nsIRequest_std19) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(out aGroupObserver: nsIRequestObserver_std19): Longword; extdecl; + function SetGroupObserver(aGroupObserver: nsIRequestObserver_std19): Longword; extdecl; + function GetDefaultLoadRequest(out aDefaultLoadRequest: nsIRequest_std19): Longword; extdecl; + function SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest_std19): Longword; extdecl; + function AddRequest(aRequest: nsIRequest_std19; aContext: nsISupports_std19): nsresult; extdecl; + function RemoveRequest(aRequest: nsIRequest_std19; aContext: nsISupports_std19; aStatus: nsresult): nsresult; extdecl; + function GetRequests(out aRequests: nsISimpleEnumerator_std19): Longword; extdecl; + function GetActiveCount(out aActiveCount: PRUint32): Longword; extdecl; + function GetNotificationCallbacks(out aNotificationCallbacks: nsIInterfaceRequestor_std19): Longword; extdecl; + function SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor_std19): Longword; extdecl; + end; + + nsILocalFile_std19 = interface(nsIFile_std19) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + function InitWithPath(const filePath: nsAString): nsresult; extdecl; + function InitWithNativePath(const filePath: nsACString): nsresult; extdecl; + function InitWithFile(aFile: nsILocalFile_std19): nsresult; extdecl; + function GetFollowLinks(out aFollowLinks: PRBool): Longword; extdecl; + function SetFollowLinks(aFollowLinks: PRBool): Longword; extdecl; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32; out _retval: PPRFileDesc): nsresult; extdecl; + function OpenANSIFileDesc(const mode: PAnsiChar; out _retval: PFILE): nsresult; extdecl; + function Load(out _retval: PPRLibrary): nsresult; extdecl; + function GetDiskSpaceAvailable(out aDiskSpaceAvailable: PRInt64): Longword; extdecl; + function AppendRelativePath(const relativeFilePath: nsAString): nsresult; extdecl; + function AppendRelativeNativePath(const relativeFilePath: nsACString): nsresult; extdecl; + function GetPersistentDescriptor(aPersistentDescriptor: nsACString): Longword; extdecl; + function SetPersistentDescriptor(const aPersistentDescriptor: nsACString): Longword; extdecl; + function Reveal(): nsresult; extdecl; + function Launch(): nsresult; extdecl; + function GetRelativeDescriptor(fromFile: nsILocalFile_std19; _retval: nsACString): nsresult; extdecl; + function SetRelativeDescriptor(fromFile: nsILocalFile_std19; const relativeDesc: nsACString): nsresult; extdecl; + end; + + nsIMemory_std19 = interface(nsISupports_std19) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + function HeapMinimize(immediate: PRBool): nsresult; extdecl; + function IsLowMemory(out _retval: PRBool): nsresult; extdecl; + end; + + nsIModule_std19 = interface(nsISupports_std19) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + function GetClassObject(aCompMgr: nsIComponentManager_std19; constref aClass: TGUID; constref aIID: TGUID; out aResult): nsresult; extdecl; + function RegisterSelf(aCompMgr: nsIComponentManager_std19; aLocation: nsIFile_std19; const aLoaderStr: PAnsiChar; const aType: PAnsiChar): nsresult; extdecl; + function UnregisterSelf(aCompMgr: nsIComponentManager_std19; aLocation: nsIFile_std19; const aLoaderStr: PAnsiChar): nsresult; extdecl; + function CanUnload(aCompMgr: nsIComponentManager_std19; out _retval: PRBool): nsresult; extdecl; + end; + + nsIMutableArray_std19 = interface(nsIArray_std19) + ['{af059da0-c85b-40ec-af07-ae4bfdc192cc}'] + function AppendElement(element: nsISupports_std19; weak: PRBool): nsresult; extdecl; + function RemoveElementAt(index: PRUint32): nsresult; extdecl; + function InsertElementAt(element: nsISupports_std19; index: PRUint32; weak: PRBool): nsresult; extdecl; + function ReplaceElementAt(element: nsISupports_std19; index: PRUint32; weak: PRBool): nsresult; extdecl; + function Clear(): nsresult; extdecl; + end; + + nsIObserver_std19 = interface(nsISupports_std19) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + function Observe(aSubject: nsISupports_std19; const aTopic: PAnsiChar; const aData: PWideChar): nsresult; extdecl; + end; + + nsIObserverService_std19 = interface(nsISupports_std19) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + function AddObserver(anObserver: nsIObserver_std19; const aTopic: PAnsiChar; ownsWeak: PRBool): nsresult; extdecl; + function RemoveObserver(anObserver: nsIObserver_std19; const aTopic: PAnsiChar): nsresult; extdecl; + function NotifyObservers(aSubject: nsISupports_std19; const aTopic: PAnsiChar; const someData: PWideChar): nsresult; extdecl; + function EnumerateObservers(const aTopic: PAnsiChar; out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + end; + + nsIOutputStream_std19 = interface(nsISupports_std19) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + function Close(): nsresult; extdecl; + function Flush(): nsresult; extdecl; + function Write(const aBuf: PAnsiChar; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteFrom(aFromStream: nsIInputStream_std19; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function IsNonBlocking(out _retval: PRBool): nsresult; extdecl; + end; + + nsIPrefBranch_std19 = interface(nsISupports_std19) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(out aRoot: PAnsiChar): Longword; extdecl; + function GetPrefType(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function GetBoolPref(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetCharPref(const aPrefName: PAnsiChar; out _retval: PAnsiChar): nsresult; extdecl; + function SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar): nsresult; extdecl; + function GetIntPref(const aPrefName: PAnsiChar; out _retval: PRInt32): nsresult; extdecl; + function SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32): nsresult; extdecl; + function GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue): nsresult; extdecl; + function SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports_std19): nsresult; extdecl; + function ClearUserPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function LockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function PrefHasUserValue(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function PrefIsLocked(const aPrefName: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function UnlockPref(const aPrefName: PAnsiChar): nsresult; extdecl; + function DeleteBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + function GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array): nsresult; extdecl; + function ResetBranch(const aStartingAt: PAnsiChar): nsresult; extdecl; + end; + + nsIPrefBranch2_std19 = interface(nsIPrefBranch_std19) + ['{74567534-eb94-4b1c-8f45-389643bfc555}'] + function AddObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_std19; aHoldWeak: PRBool): nsresult; extdecl; + function RemoveObserver(const aDomain: PAnsiChar; aObserver: nsIObserver_std19): nsresult; extdecl; + end; + + nsIPrefLocalizedString_std19 = interface(nsISupports_std19) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(out aData: PWideChar): Longword; extdecl; + function SetData(const aData: PWideChar): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + function SetDataWithLength(length: PRUint32; const data: PWideChar): nsresult; extdecl; + end; + + nsIPrefService_std19 = interface(nsISupports_std19) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + function ReadUserPrefs(aFile: nsIFile_std19): nsresult; extdecl; + function ResetPrefs(): nsresult; extdecl; + function ResetUserPrefs(): nsresult; extdecl; + function SavePrefFile(aFile: nsIFile_std19): nsresult; extdecl; + function GetBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std19): nsresult; extdecl; + function GetDefaultBranch(const aPrefRoot: PAnsiChar; out _retval: nsIPrefBranch_std19): nsresult; extdecl; + end; + + nsIPrintSession_std19 = interface(nsISupports_std19) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings_std19 = interface(nsISupports_std19) + ['{5af07661-6477-4235-8814-4a45215855b8}'] + function SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool): nsresult; extdecl; + function GetPrintOptions(aType: PRInt32; out _retval: PRBool): nsresult; extdecl; + function GetPrintOptionsBits(out _retval: PRInt32): nsresult; extdecl; + function GetEffectivePageSize(out aWidth: Double; out aHeight: Double): nsresult; extdecl; + function Clone(out _retval: nsIPrintSettings_std19): nsresult; extdecl; + function Assign(aPS: nsIPrintSettings_std19): nsresult; extdecl; + function GetPrintSession(out aPrintSession: nsIPrintSession_std19): Longword; extdecl; + function SetPrintSession(aPrintSession: nsIPrintSession_std19): Longword; extdecl; + function GetStartPageRange(out aStartPageRange: PRInt32): Longword; extdecl; + function SetStartPageRange(aStartPageRange: PRInt32): Longword; extdecl; + function GetEndPageRange(out aEndPageRange: PRInt32): Longword; extdecl; + function SetEndPageRange(aEndPageRange: PRInt32): Longword; extdecl; + function GetEdgeTop(out aEdgeTop: Double): Longword; extdecl; + function SetEdgeTop(aEdgeTop: Double): Longword; extdecl; + function GetEdgeLeft(out aEdgeLeft: Double): Longword; extdecl; + function SetEdgeLeft(aEdgeLeft: Double): Longword; extdecl; + function GetEdgeBottom(out aEdgeBottom: Double): Longword; extdecl; + function SetEdgeBottom(aEdgeBottom: Double): Longword; extdecl; + function GetEdgeRight(out aEdgeRight: Double): Longword; extdecl; + function SetEdgeRight(aEdgeRight: Double): Longword; extdecl; + function GetMarginTop(out aMarginTop: Double): Longword; extdecl; + function SetMarginTop(aMarginTop: Double): Longword; extdecl; + function GetMarginLeft(out aMarginLeft: Double): Longword; extdecl; + function SetMarginLeft(aMarginLeft: Double): Longword; extdecl; + function GetMarginBottom(out aMarginBottom: Double): Longword; extdecl; + function SetMarginBottom(aMarginBottom: Double): Longword; extdecl; + function GetMarginRight(out aMarginRight: Double): Longword; extdecl; + function SetMarginRight(aMarginRight: Double): Longword; extdecl; + function GetUnwriteableMarginTop(out aUnwriteableMarginTop: Double): Longword; extdecl; + function SetUnwriteableMarginTop(aUnwriteableMarginTop: Double): Longword; extdecl; + function GetUnwriteableMarginLeft(out aUnwriteableMarginLeft: Double): Longword; extdecl; + function SetUnwriteableMarginLeft(aUnwriteableMarginLeft: Double): Longword; extdecl; + function GetUnwriteableMarginBottom(out aUnwriteableMarginBottom: Double): Longword; extdecl; + function SetUnwriteableMarginBottom(aUnwriteableMarginBottom: Double): Longword; extdecl; + function GetUnwriteableMarginRight(out aUnwriteableMarginRight: Double): Longword; extdecl; + function SetUnwriteableMarginRight(aUnwriteableMarginRight: Double): Longword; extdecl; + function GetScaling(out aScaling: Double): Longword; extdecl; + function SetScaling(aScaling: Double): Longword; extdecl; + function GetPrintBGColors(out aPrintBGColors: PRBool): Longword; extdecl; + function SetPrintBGColors(aPrintBGColors: PRBool): Longword; extdecl; + function GetPrintBGImages(out aPrintBGImages: PRBool): Longword; extdecl; + function SetPrintBGImages(aPrintBGImages: PRBool): Longword; extdecl; + function GetPrintRange(out aPrintRange: PRInt16): Longword; extdecl; + function SetPrintRange(aPrintRange: PRInt16): Longword; extdecl; + function GetTitle(out aTitle: PWideChar): Longword; extdecl; + function SetTitle(const aTitle: PWideChar): Longword; extdecl; + function GetDocURL(out aDocURL: PWideChar): Longword; extdecl; + function SetDocURL(const aDocURL: PWideChar): Longword; extdecl; + function GetHeaderStrLeft(out aHeaderStrLeft: PWideChar): Longword; extdecl; + function SetHeaderStrLeft(const aHeaderStrLeft: PWideChar): Longword; extdecl; + function GetHeaderStrCenter(out aHeaderStrCenter: PWideChar): Longword; extdecl; + function SetHeaderStrCenter(const aHeaderStrCenter: PWideChar): Longword; extdecl; + function GetHeaderStrRight(out aHeaderStrRight: PWideChar): Longword; extdecl; + function SetHeaderStrRight(const aHeaderStrRight: PWideChar): Longword; extdecl; + function GetFooterStrLeft(out aFooterStrLeft: PWideChar): Longword; extdecl; + function SetFooterStrLeft(const aFooterStrLeft: PWideChar): Longword; extdecl; + function GetFooterStrCenter(out aFooterStrCenter: PWideChar): Longword; extdecl; + function SetFooterStrCenter(const aFooterStrCenter: PWideChar): Longword; extdecl; + function GetFooterStrRight(out aFooterStrRight: PWideChar): Longword; extdecl; + function SetFooterStrRight(const aFooterStrRight: PWideChar): Longword; extdecl; + function GetHowToEnableFrameUI(out aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16): Longword; extdecl; + function GetIsCancelled(out aIsCancelled: PRBool): Longword; extdecl; + function SetIsCancelled(aIsCancelled: PRBool): Longword; extdecl; + function GetPrintFrameTypeUsage(out aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16): Longword; extdecl; + function GetPrintFrameType(out aPrintFrameType: PRInt16): Longword; extdecl; + function SetPrintFrameType(aPrintFrameType: PRInt16): Longword; extdecl; + function GetPrintSilent(out aPrintSilent: PRBool): Longword; extdecl; + function SetPrintSilent(aPrintSilent: PRBool): Longword; extdecl; + function GetShrinkToFit(out aShrinkToFit: PRBool): Longword; extdecl; + function SetShrinkToFit(aShrinkToFit: PRBool): Longword; extdecl; + function GetShowPrintProgress(out aShowPrintProgress: PRBool): Longword; extdecl; + function SetShowPrintProgress(aShowPrintProgress: PRBool): Longword; extdecl; + function GetPaperName(out aPaperName: PWideChar): Longword; extdecl; + function SetPaperName(const aPaperName: PWideChar): Longword; extdecl; + function GetPaperSizeType(out aPaperSizeType: PRInt16): Longword; extdecl; + function SetPaperSizeType(aPaperSizeType: PRInt16): Longword; extdecl; + function GetPaperData(out aPaperData: PRInt16): Longword; extdecl; + function SetPaperData(aPaperData: PRInt16): Longword; extdecl; + function GetPaperWidth(out aPaperWidth: Double): Longword; extdecl; + function SetPaperWidth(aPaperWidth: Double): Longword; extdecl; + function GetPaperHeight(out aPaperHeight: Double): Longword; extdecl; + function SetPaperHeight(aPaperHeight: Double): Longword; extdecl; + function GetPaperSizeUnit(out aPaperSizeUnit: PRInt16): Longword; extdecl; + function SetPaperSizeUnit(aPaperSizeUnit: PRInt16): Longword; extdecl; + function GetPlexName(out aPlexName: PWideChar): Longword; extdecl; + function SetPlexName(const aPlexName: PWideChar): Longword; extdecl; + function GetColorspace(out aColorspace: PWideChar): Longword; extdecl; + function SetColorspace(const aColorspace: PWideChar): Longword; extdecl; + function GetResolutionName(out aResolutionName: PWideChar): Longword; extdecl; + function SetResolutionName(const aResolutionName: PWideChar): Longword; extdecl; + function GetDownloadFonts(out aDownloadFonts: PRBool): Longword; extdecl; + function SetDownloadFonts(aDownloadFonts: PRBool): Longword; extdecl; + function GetPrintReversed(out aPrintReversed: PRBool): Longword; extdecl; + function SetPrintReversed(aPrintReversed: PRBool): Longword; extdecl; + function GetPrintInColor(out aPrintInColor: PRBool): Longword; extdecl; + function SetPrintInColor(aPrintInColor: PRBool): Longword; extdecl; + function GetOrientation(out aOrientation: PRInt32): Longword; extdecl; + function SetOrientation(aOrientation: PRInt32): Longword; extdecl; + function GetPrintCommand(out aPrintCommand: PWideChar): Longword; extdecl; + function SetPrintCommand(const aPrintCommand: PWideChar): Longword; extdecl; + function GetNumCopies(out aNumCopies: PRInt32): Longword; extdecl; + function SetNumCopies(aNumCopies: PRInt32): Longword; extdecl; + function GetPrinterName(out aPrinterName: PWideChar): Longword; extdecl; + function SetPrinterName(const aPrinterName: PWideChar): Longword; extdecl; + function GetPrintToFile(out aPrintToFile: PRBool): Longword; extdecl; + function SetPrintToFile(aPrintToFile: PRBool): Longword; extdecl; + function GetToFileName(out aToFileName: PWideChar): Longword; extdecl; + function SetToFileName(const aToFileName: PWideChar): Longword; extdecl; + function GetOutputFormat(out aOutputFormat: PRInt16): Longword; extdecl; + function SetOutputFormat(aOutputFormat: PRInt16): Longword; extdecl; + function GetPrintPageDelay(out aPrintPageDelay: PRInt32): Longword; extdecl; + function SetPrintPageDelay(aPrintPageDelay: PRInt32): Longword; extdecl; + function GetIsInitializedFromPrinter(out aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool): Longword; extdecl; + function GetIsInitializedFromPrefs(out aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool): Longword; extdecl; + function SetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + function SetEdgeInTwips(var aEdge: nsMargin): nsresult; extdecl; + function GetMarginInTwips(var aMargin: nsMargin): nsresult; extdecl; + function GetEdgeInTwips(var aEdge: nsMargin): nsresult; extdecl; + function SetupSilentPrinting(): nsresult; extdecl; + function SetUnwriteableMarginInTwips(var aEdge: nsMargin): nsresult; extdecl; + function GetUnwriteableMarginInTwips(var aEdge: nsMargin): nsresult; extdecl; + end; + + nsIProfile_std19 = interface(nsISupports_std19) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(out aProfileCount: PRInt32): Longword; extdecl; + function GetProfileList(out length: PRUint32; out profileNames_array): nsresult; extdecl; + function ProfileExists(const profileName: PWideChar; out _retval: PRBool): nsresult; extdecl; + function GetCurrentProfile(out aCurrentProfile: PWideChar): Longword; extdecl; + function SetCurrentProfile(const aCurrentProfile: PWideChar): Longword; extdecl; + function ShutDownCurrentProfile(shutDownType: PRUint32): nsresult; extdecl; + function CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool): nsresult; extdecl; + function RenameProfile(const oldName: PWideChar; const newName: PWideChar): nsresult; extdecl; + function DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool): nsresult; extdecl; + function CloneProfile(const profileName: PWideChar): nsresult; extdecl; + end; + + nsIProfileChangeStatus_std19 = interface(nsISupports_std19) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + function VetoChange(): nsresult; extdecl; + function ChangeFailed(): nsresult; extdecl; + end; + + nsIProgrammingLanguage_std19 = interface(nsISupports_std19) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIPrompt_std19 = interface(nsISupports_std19) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + function Alert(const dialogTitle: PWideChar; const text: PWideChar): nsresult; extdecl; + function AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): nsresult; extdecl; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIPromptService_std19 = interface(nsISupports_std19) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + function Alert(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar): nsresult; extdecl; + function AlertCheck(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): nsresult; extdecl; + function Confirm(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + function ConfirmCheck(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function ConfirmEx(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRInt32): nsresult; extdecl; + function Prompt(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; out aValue: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptUsernameAndPassword(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function PromptPassword(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool; out _retval: PRBool): nsresult; extdecl; + function Select(aParent: nsIDOMWindow_std19; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIProperties_std19 = interface(nsISupports_std19) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + function Get(const prop: PAnsiChar; constref iid: TGUID; out _result): nsresult; extdecl; + function _Set(const prop: PAnsiChar; value: nsISupports_std19): nsresult; extdecl; + function Has(const prop: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function Undefine(const prop: PAnsiChar): nsresult; extdecl; + function GetKeys(out count: PRUint32; out keys_array): nsresult; extdecl; + end; + + nsIProtocolHandler_std19 = interface(nsISupports_std19) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + function GetScheme(aScheme: nsACString): Longword; extdecl; + function GetDefaultPort(out aDefaultPort: PRInt32): Longword; extdecl; + function GetProtocolFlags(out aProtocolFlags: PRUint32): Longword; extdecl; + function NewURI(const aSpec: nsACString; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI_std19; out _retval: nsIURI_std19): nsresult; extdecl; + function NewChannel(aURI: nsIURI_std19; out _retval: nsIChannel_std19): nsresult; extdecl; + function AllowPort(port: PRInt32; const scheme: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsIRequestObserver_std19 = interface(nsISupports_std19) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + function OnStartRequest(aRequest: nsIRequest_std19; aContext: nsISupports_std19): nsresult; extdecl; + function OnStopRequest(aRequest: nsIRequest_std19; aContext: nsISupports_std19; aStatusCode: nsresult): nsresult; extdecl; + end; + + nsIScriptableInputStream_std19 = interface(nsISupports_std19) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + function Close(): nsresult; extdecl; + function Init(aInputStream: nsIInputStream_std19): nsresult; extdecl; + function Available(out _retval: PRUint32): nsresult; extdecl; + function Read(aCount: PRUint32; out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISecurityWarningDialogs_std19 = interface(nsISupports_std19) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor_std19; out _retval: PRBool): nsresult; extdecl; + end; + + nsISelection_std19 = interface(nsISupports_std19) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(out aAnchorNode: nsIDOMNode_std19): Longword; extdecl; + function GetAnchorOffset(out aAnchorOffset: PRInt32): Longword; extdecl; + function GetFocusNode(out aFocusNode: nsIDOMNode_std19): Longword; extdecl; + function GetFocusOffset(out aFocusOffset: PRInt32): Longword; extdecl; + function GetIsCollapsed(out aIsCollapsed: PRBool): Longword; extdecl; + function GetRangeCount(out aRangeCount: PRInt32): Longword; extdecl; + function GetRangeAt(index: PRInt32; out _retval: nsIDOMRange_std19): nsresult; extdecl; + function Collapse(parentNode: nsIDOMNode_std19; offset: PRInt32): nsresult; extdecl; + function Extend(parentNode: nsIDOMNode_std19; offset: PRInt32): nsresult; extdecl; + function CollapseToStart(): nsresult; extdecl; + function CollapseToEnd(): nsresult; extdecl; + function ContainsNode(node: nsIDOMNode_std19; partlyContained: PRBool; out _retval: PRBool): nsresult; extdecl; + function SelectAllChildren(parentNode: nsIDOMNode_std19): nsresult; extdecl; + function AddRange(range: nsIDOMRange_std19): nsresult; extdecl; + function RemoveRange(range: nsIDOMRange_std19): nsresult; extdecl; + function RemoveAllRanges(): nsresult; extdecl; + function DeleteFromDocument(): nsresult; extdecl; + function SelectionLanguageChange(langRTL: PRBool): nsresult; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsIServiceManager_std19 = interface(nsISupports_std19) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + function GetService(constref aClass: TGUID; constref aIID: TGUID; out _result): nsresult; extdecl; + function GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result): nsresult; extdecl; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _retval: PRBool): nsresult; extdecl; + end; + + nsISHistory_std19 = interface(nsISupports_std19) + ['{9883609f-cdd8-4d83-9b55-868ff08ad433}'] + function GetCount(out aCount: PRInt32): Longword; extdecl; + function GetIndex(out aIndex: PRInt32): Longword; extdecl; + function GetRequestedIndex(out aRequestedIndex: PRInt32): Longword; extdecl; + function GetMaxLength(out aMaxLength: PRInt32): Longword; extdecl; + function SetMaxLength(aMaxLength: PRInt32): Longword; extdecl; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool; out _retval: nsIHistoryEntry_std19): nsresult; extdecl; + function PurgeHistory(numEntries: PRInt32): nsresult; extdecl; + function AddSHistoryListener(aListener: nsISHistoryListener_std19): nsresult; extdecl; + function RemoveSHistoryListener(aListener: nsISHistoryListener_std19): nsresult; extdecl; + function GetSHistoryEnumerator(out aSHistoryEnumerator: nsISimpleEnumerator_std19): Longword; extdecl; + end; + + nsISHistoryListener_std19 = interface(nsISupports_std19) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + function OnHistoryNewEntry(aNewURI: nsIURI_std19): nsresult; extdecl; + function OnHistoryGoBack(aBackURI: nsIURI_std19; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGoForward(aForwardURI: nsIURI_std19; out _retval: PRBool): nsresult; extdecl; + function OnHistoryReload(aReloadURI: nsIURI_std19; aReloadFlags: PRUint32; out _retval: PRBool): nsresult; extdecl; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI_std19; out _retval: PRBool): nsresult; extdecl; + function OnHistoryPurge(aNumEntries: PRInt32; out _retval: PRBool): nsresult; extdecl; + end; + + nsIStreamListener_std19 = interface(nsIRequestObserver_std19) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + function OnDataAvailable(aRequest: nsIRequest_std19; aContext: nsISupports_std19; aInputStream: nsIInputStream_std19; aOffset: PRUint32; aCount: PRUint32): nsresult; extdecl; + end; + + nsISupportsPrimitive_std19 = interface(nsISupports_std19) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(out aType: PRUint16): Longword; extdecl; + end; + + nsISupportsID_std19 = interface(nsISupportsPrimitive_std19) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PGUID): Longword; extdecl; + function SetData(const aData: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsCString_std19 = interface(nsISupportsPrimitive_std19) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsACString): Longword; extdecl; + function SetData(const aData: nsACString): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsString_std19 = interface(nsISupportsPrimitive_std19) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + function GetData(aData: nsAString): Longword; extdecl; + function SetData(const aData: nsAString): Longword; extdecl; + function ToString(out _retval: PWideChar): nsresult; extdecl; + end; + + nsISupportsPRBool_std19 = interface(nsISupportsPrimitive_std19) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRBool): Longword; extdecl; + function SetData(aData: PRBool): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint8_std19 = interface(nsISupportsPrimitive_std19) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint8): Longword; extdecl; + function SetData(aData: PRUint8): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint16_std19 = interface(nsISupportsPrimitive_std19) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint16): Longword; extdecl; + function SetData(aData: PRUint16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint32_std19 = interface(nsISupportsPrimitive_std19) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint32): Longword; extdecl; + function SetData(aData: PRUint32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRUint64_std19 = interface(nsISupportsPrimitive_std19) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRUint64): Longword; extdecl; + function SetData(aData: PRUint64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRTime_std19 = interface(nsISupportsPrimitive_std19) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRTime): Longword; extdecl; + function SetData(aData: PRTime): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsChar_std19 = interface(nsISupportsPrimitive_std19) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: AnsiChar): Longword; extdecl; + function SetData(aData: AnsiChar): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt16_std19 = interface(nsISupportsPrimitive_std19) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt16): Longword; extdecl; + function SetData(aData: PRInt16): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt32_std19 = interface(nsISupportsPrimitive_std19) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt32): Longword; extdecl; + function SetData(aData: PRInt32): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsPRInt64_std19 = interface(nsISupportsPrimitive_std19) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(out aData: PRInt64): Longword; extdecl; + function SetData(aData: PRInt64): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsFloat_std19 = interface(nsISupportsPrimitive_std19) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Single): Longword; extdecl; + function SetData(aData: Single): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsDouble_std19 = interface(nsISupportsPrimitive_std19) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(out aData: Double): Longword; extdecl; + function SetData(aData: Double): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsVoid_std19 = interface(nsISupportsPrimitive_std19) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(out aData: Pointer): Longword; extdecl; + function SetData(aData: Pointer): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsISupportsInterfacePointer_std19 = interface(nsISupportsPrimitive_std19) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(out aData: nsISupports_std19): Longword; extdecl; + function SetData(aData: nsISupports_std19): Longword; extdecl; + function GetDataIID(out aDataIID: PGUID): Longword; extdecl; + function SetDataIID(const aDataIID: PGUID): Longword; extdecl; + function ToString(out _retval: PAnsiChar): nsresult; extdecl; + end; + + nsITooltipListener_std19 = interface(nsISupports_std19) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + function OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar): nsresult; extdecl; + function OnHideTooltip(): nsresult; extdecl; + end; + + nsITooltipTextProvider_std19 = interface(nsISupports_std19) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode_std19; out aText: PWideChar; out _retval: PRBool): nsresult; extdecl; + end; + + nsITraceRefcnt_std19 = interface(nsISupports_std19) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + function LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar): nsresult; extdecl; + function LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32): nsresult; extdecl; + function LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports_std19): nsresult; extdecl; + function LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports_std19): nsresult; extdecl; + end; + + nsIUnicharStreamListener_std19 = interface(nsIRequestObserver_std19) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + function OnUnicharDataAvailable(aRequest: nsIRequest_std19; aContext: nsISupports_std19; const aData: nsAString): nsresult; extdecl; + end; + + nsIUploadChannel_std19 = interface(nsISupports_std19) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + function SetUploadStream(aStream: nsIInputStream_std19; const aContentType: nsACString; aContentLength: PRInt32): nsresult; extdecl; + function GetUploadStream(out aUploadStream: nsIInputStream_std19): Longword; extdecl; + end; + + nsIURIContentListener_std19 = interface(nsISupports_std19) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI_std19; out _retval: PRBool): nsresult; extdecl; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest_std19; out aContentHandler: nsIStreamListener_std19; out _retval: PRBool): nsresult; extdecl; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar; out _retval: PRBool): nsresult; extdecl; + function GetLoadCookie(out aLoadCookie: nsISupports_std19): Longword; extdecl; + function SetLoadCookie(aLoadCookie: nsISupports_std19): Longword; extdecl; + function GetParentContentListener(out aParentContentListener: nsIURIContentListener_std19): Longword; extdecl; + function SetParentContentListener(aParentContentListener: nsIURIContentListener_std19): Longword; extdecl; + end; + + nsIWeakReference_std19 = interface(nsISupports_std19) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + function QueryReferent(constref uuid: TGUID; out _result): nsresult; extdecl; + end; + + nsISupportsWeakReference_std19 = interface(nsISupports_std19) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(out _retval: nsIWeakReference_std19): nsresult; extdecl; + end; + + nsIWebBrowser_std19 = interface(nsISupports_std19) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + function AddWebBrowserListener(aListener: nsIWeakReference_std19; constref aIID: TGUID): nsresult; extdecl; + function RemoveWebBrowserListener(aListener: nsIWeakReference_std19; constref aIID: TGUID): nsresult; extdecl; + function GetContainerWindow(out aContainerWindow: nsIWebBrowserChrome_std19): Longword; extdecl; + function SetContainerWindow(aContainerWindow: nsIWebBrowserChrome_std19): Longword; extdecl; + function GetParentURIContentListener(out aParentURIContentListener: nsIURIContentListener_std19): Longword; extdecl; + function SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener_std19): Longword; extdecl; + function GetContentDOMWindow(out aContentDOMWindow: nsIDOMWindow_std19): Longword; extdecl; + end; + + nsIWebBrowserChrome_std19 = interface(nsISupports_std19) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + function SetStatus(statusType: PRUint32; const status: PWideChar): nsresult; extdecl; + function GetWebBrowser(out aWebBrowser: nsIWebBrowser_std19): Longword; extdecl; + function SetWebBrowser(aWebBrowser: nsIWebBrowser_std19): Longword; extdecl; + function GetChromeFlags(out aChromeFlags: PRUint32): Longword; extdecl; + function SetChromeFlags(aChromeFlags: PRUint32): Longword; extdecl; + function DestroyBrowserWindow(): nsresult; extdecl; + function SizeBrowserTo(aCX: PRInt32; aCY: PRInt32): nsresult; extdecl; + function ShowAsModal(): nsresult; extdecl; + function IsWindowModal(out _retval: PRBool): nsresult; extdecl; + function ExitModalEventLoop(aStatus: nsresult): nsresult; extdecl; + end; + + nsIWebBrowserChromeFocus_std19 = interface(nsISupports_std19) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + function FocusNextElement(): nsresult; extdecl; + function FocusPrevElement(): nsresult; extdecl; + end; + + nsIWebBrowserFind_std19 = interface(nsISupports_std19) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(out _retval: PRBool): nsresult; extdecl; + function GetSearchString(out aSearchString: PWideChar): Longword; extdecl; + function SetSearchString(const aSearchString: PWideChar): Longword; extdecl; + function GetFindBackwards(out aFindBackwards: PRBool): Longword; extdecl; + function SetFindBackwards(aFindBackwards: PRBool): Longword; extdecl; + function GetWrapFind(out aWrapFind: PRBool): Longword; extdecl; + function SetWrapFind(aWrapFind: PRBool): Longword; extdecl; + function GetEntireWord(out aEntireWord: PRBool): Longword; extdecl; + function SetEntireWord(aEntireWord: PRBool): Longword; extdecl; + function GetMatchCase(out aMatchCase: PRBool): Longword; extdecl; + function SetMatchCase(aMatchCase: PRBool): Longword; extdecl; + function GetSearchFrames(out aSearchFrames: PRBool): Longword; extdecl; + function SetSearchFrames(aSearchFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFindInFrames_std19 = interface(nsISupports_std19) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(out aCurrentSearchFrame: nsIDOMWindow_std19): Longword; extdecl; + function SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow_std19): Longword; extdecl; + function GetRootSearchFrame(out aRootSearchFrame: nsIDOMWindow_std19): Longword; extdecl; + function SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow_std19): Longword; extdecl; + function GetSearchSubframes(out aSearchSubframes: PRBool): Longword; extdecl; + function SetSearchSubframes(aSearchSubframes: PRBool): Longword; extdecl; + function GetSearchParentFrames(out aSearchParentFrames: PRBool): Longword; extdecl; + function SetSearchParentFrames(aSearchParentFrames: PRBool): Longword; extdecl; + end; + + nsIWebBrowserFocus_std19 = interface(nsISupports_std19) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + function Activate(): nsresult; extdecl; + function Deactivate(): nsresult; extdecl; + function SetFocusAtFirstElement(): nsresult; extdecl; + function SetFocusAtLastElement(): nsresult; extdecl; + function GetFocusedWindow(out aFocusedWindow: nsIDOMWindow_std19): Longword; extdecl; + function SetFocusedWindow(aFocusedWindow: nsIDOMWindow_std19): Longword; extdecl; + function GetFocusedElement(out aFocusedElement: nsIDOMElement_std19): Longword; extdecl; + function SetFocusedElement(aFocusedElement: nsIDOMElement_std19): Longword; extdecl; + end; + + nsIWebBrowserPrint_std19 = interface(nsISupports_std19) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(out aGlobalPrintSettings: nsIPrintSettings_std19): Longword; extdecl; + function GetCurrentPrintSettings(out aCurrentPrintSettings: nsIPrintSettings_std19): Longword; extdecl; + function GetCurrentChildDOMWindow(out aCurrentChildDOMWindow: nsIDOMWindow_std19): Longword; extdecl; + function GetDoingPrint(out aDoingPrint: PRBool): Longword; extdecl; + function GetDoingPrintPreview(out aDoingPrintPreview: PRBool): Longword; extdecl; + function GetIsFramesetDocument(out aIsFramesetDocument: PRBool): Longword; extdecl; + function GetIsFramesetFrameSelected(out aIsFramesetFrameSelected: PRBool): Longword; extdecl; + function GetIsIFrameSelected(out aIsIFrameSelected: PRBool): Longword; extdecl; + function GetIsRangeSelection(out aIsRangeSelection: PRBool): Longword; extdecl; + function GetPrintPreviewNumPages(out aPrintPreviewNumPages: PRInt32): Longword; extdecl; + function Print(aThePrintSettings: nsIPrintSettings_std19; aWPListener: nsIWebProgressListener_std19): nsresult; extdecl; + function PrintPreview(aThePrintSettings: nsIPrintSettings_std19; aChildDOMWin: nsIDOMWindow_std19; aWPListener: nsIWebProgressListener_std19): nsresult; extdecl; + function PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32): nsresult; extdecl; + function Cancel(): nsresult; extdecl; + function EnumerateDocumentNames(out aCount: PRUint32; out aResult_array): nsresult; extdecl; + function ExitPrintPreview(): nsresult; extdecl; + end; + + nsIWebBrowserSetup_std19 = interface(nsISupports_std19) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + function SetProperty(aId: PRUint32; aValue: PRUint32): nsresult; extdecl; + end; + + nsIWebBrowserStream_std19 = interface(nsISupports_std19) + ['{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'] + function OpenStream(aBaseURI: nsIURI_std19; const aContentType: nsACString): nsresult; extdecl; + function AppendToStream(const aData_array; aLen: PRUint32): nsresult; extdecl; + function CloseStream(): nsresult; extdecl; + end; + + nsIWebProgress_std19 = interface(nsISupports_std19) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + function AddProgressListener(aListener: nsIWebProgressListener_std19; aNotifyMask: PRUint32): nsresult; extdecl; + function RemoveProgressListener(aListener: nsIWebProgressListener_std19): nsresult; extdecl; + function GetDOMWindow(out aDOMWindow: nsIDOMWindow_std19): Longword; extdecl; + function GetIsLoadingDocument(out aIsLoadingDocument: PRBool): Longword; extdecl; + end; + + nsIWebProgressListener_std19 = interface(nsISupports_std19) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + function OnStateChange(aWebProgress: nsIWebProgress_std19; aRequest: nsIRequest_std19; aStateFlags: PRUint32; aStatus: nsresult): nsresult; extdecl; + function OnProgressChange(aWebProgress: nsIWebProgress_std19; aRequest: nsIRequest_std19; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32): nsresult; extdecl; + function OnLocationChange(aWebProgress: nsIWebProgress_std19; aRequest: nsIRequest_std19; aLocation: nsIURI_std19): nsresult; extdecl; + function OnStatusChange(aWebProgress: nsIWebProgress_std19; aRequest: nsIRequest_std19; aStatus: nsresult; const aMessage: PWideChar): nsresult; extdecl; + function OnSecurityChange(aWebProgress: nsIWebProgress_std19; aRequest: nsIRequest_std19; aState: PRUint32): nsresult; extdecl; + end; + + nsIWindowCreator_std19 = interface(nsISupports_std19) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome_std19; chromeFlags: PRUint32; out _retval: nsIWebBrowserChrome_std19): nsresult; extdecl; + end; + + nsIWindowWatcher_std19 = interface(nsISupports_std19) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow_std19; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports_std19; out _retval: nsIDOMWindow_std19): nsresult; extdecl; + function RegisterNotification(aObserver: nsIObserver_std19): nsresult; extdecl; + function UnregisterNotification(aObserver: nsIObserver_std19): nsresult; extdecl; + function GetWindowEnumerator(out _retval: nsISimpleEnumerator_std19): nsresult; extdecl; + function GetNewPrompter(aParent: nsIDOMWindow_std19; out _retval: nsIPrompt_std19): nsresult; extdecl; + function GetNewAuthPrompter(aParent: nsIDOMWindow_std19; out _retval: nsIAuthPrompt_std19): nsresult; extdecl; + function SetWindowCreator(creator: nsIWindowCreator_std19): nsresult; extdecl; + function GetChromeForWindow(aWindow: nsIDOMWindow_std19; out _retval: nsIWebBrowserChrome_std19): nsresult; extdecl; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow_std19; out _retval: nsIDOMWindow_std19): nsresult; extdecl; + function GetActiveWindow(out aActiveWindow: nsIDOMWindow_std19): Longword; extdecl; + function SetActiveWindow(aActiveWindow: nsIDOMWindow_std19): Longword; extdecl; + end; + + nsIX509Cert_std19 = interface(nsISupports_std19) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + function GetNickname(aNickname: nsAString): Longword; extdecl; + function GetEmailAddress(aEmailAddress: nsAString): Longword; extdecl; + function GetEmailAddresses(out length: PRUint32; out addresses_array): nsresult; extdecl; + function ContainsEmailAddress(const aEmailAddress: nsAString; out _retval: PRBool): nsresult; extdecl; + function GetSubjectName(aSubjectName: nsAString): Longword; extdecl; + function GetCommonName(aCommonName: nsAString): Longword; extdecl; + function GetOrganization(aOrganization: nsAString): Longword; extdecl; + function GetOrganizationalUnit(aOrganizationalUnit: nsAString): Longword; extdecl; + function GetSha1Fingerprint(aSha1Fingerprint: nsAString): Longword; extdecl; + function GetMd5Fingerprint(aMd5Fingerprint: nsAString): Longword; extdecl; + function GetTokenName(aTokenName: nsAString): Longword; extdecl; + function GetIssuerName(aIssuerName: nsAString): Longword; extdecl; + function GetSerialNumber(aSerialNumber: nsAString): Longword; extdecl; + function GetIssuerCommonName(aIssuerCommonName: nsAString): Longword; extdecl; + function GetIssuerOrganization(aIssuerOrganization: nsAString): Longword; extdecl; + function GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString): Longword; extdecl; + function GetIssuer(out aIssuer: nsIX509Cert_std19): Longword; extdecl; + function GetValidity(out aValidity: nsIX509CertValidity_std19): Longword; extdecl; + function GetDbKey(out aDbKey: PAnsiChar): Longword; extdecl; + function GetWindowTitle(out aWindowTitle: PAnsiChar): Longword; extdecl; + function GetChain(out _retval: nsIArray_std19): nsresult; extdecl; + function GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array): nsresult; extdecl; + function GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString): nsresult; extdecl; + function VerifyForUsage(usage: PRUint32; out _retval: PRUint32): nsresult; extdecl; + function GetASN1Structure(out aASN1Structure: nsIASN1Object_std19): Longword; extdecl; + function GetRawDER(out length: PRUint32; out data_array): nsresult; extdecl; + function Equals(other: nsIX509Cert_std19; out _retval: PRBool): nsresult; extdecl; + end; + + nsIX509CertDB_std19 = interface(nsISupports_std19) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports_std19; const aNickname: nsAString; out _retval: nsIX509Cert_std19): nsresult; extdecl; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports_std19; out _retval: nsIX509Cert_std19): nsresult; extdecl; + function FindCertNicknames(aToken: nsISupports_std19; aType: PRUint32; out count: PRUint32; out certNameList_array): nsresult; extdecl; + function FindEmailEncryptionCert(const aNickname: nsAString; out _retval: nsIX509Cert_std19): nsresult; extdecl; + function FindEmailSigningCert(const aNickname: nsAString; out _retval: nsIX509Cert_std19): nsresult; extdecl; + function FindCertByEmailAddress(aToken: nsISupports_std19; const aEmailAddress: PAnsiChar; out _retval: nsIX509Cert_std19): nsresult; extdecl; + function ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor_std19): nsresult; extdecl; + function ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std19): nsresult; extdecl; + function ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std19): nsresult; extdecl; + function ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor_std19): nsresult; extdecl; + function DeleteCertificate(aCert: nsIX509Cert_std19): nsresult; extdecl; + function SetCertTrust(cert: nsIX509Cert_std19; _type: PRUint32; trust: PRUint32): nsresult; extdecl; + function IsCertTrusted(cert: nsIX509Cert_std19; certType: PRUint32; trustType: PRUint32; out _retval: PRBool): nsresult; extdecl; + function ImportCertsFromFile(aToken: nsISupports_std19; aFile: nsILocalFile_std19; aType: PRUint32): nsresult; extdecl; + function ImportPKCS12File(aToken: nsISupports_std19; aFile: nsILocalFile_std19): nsresult; extdecl; + function ExportPKCS12File(aToken: nsISupports_std19; aFile: nsILocalFile_std19; count: PRUint32; const aCerts_array): nsresult; extdecl; + function GetOCSPResponders(out _retval: nsIArray_std19): nsresult; extdecl; + function GetIsOcspOn(out aIsOcspOn: PRBool): Longword; extdecl; + function ConstructX509FromBase64(const base64: PAnsiChar; out _retval: nsIX509Cert_std19): nsresult; extdecl; + end; + + nsIX509CertValidity_std19 = interface(nsISupports_std19) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(out aNotBefore: PRTime): Longword; extdecl; + function GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString): Longword; extdecl; + function GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString): Longword; extdecl; + function GetNotBeforeGMT(aNotBeforeGMT: nsAString): Longword; extdecl; + function GetNotAfter(out aNotAfter: PRTime): Longword; extdecl; + function GetNotAfterLocalTime(aNotAfterLocalTime: nsAString): Longword; extdecl; + function GetNotAfterLocalDay(aNotAfterLocalDay: nsAString): Longword; extdecl; + function GetNotAfterGMT(aNotAfterGMT: nsAString): Longword; extdecl; + end; + +implementation + +end. diff --git a/components/geckoport/version2/fpmake.pp b/components/geckoport/version2/fpmake.pp new file mode 100644 index 000000000..a1a2a764e --- /dev/null +++ b/components/geckoport/version2/fpmake.pp @@ -0,0 +1,186 @@ +{$mode objfpc}{$H+} +program fpmake; + +{$IFDEF COMPILED_BY_FPPKG} +{$IFNDEF HAS_PACKAGE_LAZMKUNIT} +{$FATAL This package depends on the lazmkunit package which is not installed} +{$ENDIF} +{$ENDIF} + +uses sysutils, lazmkunit, fpmkunit; + +Var + P : TLazPackage; + T : TTarget; + +begin + With Installer(TLazInstaller) do + begin + P:=AddPackage('gecko') as TLazPackage; + p.AfterInstall := @TLazInstaller(Installer).DoRegisterLazarusPackages; + + P.Version:='0.9.0-1'; + P.OSes:=AllUnixOSes+[Win32,Win64]; + P.Author := 'Takanori Ito'; + P.License := 'MPL 1.1'; + P.HomepageURL := 'http://wiki.lazarus.freepascal.org/GeckoPort'; + P.Email := 'joshyfun@gmail.com'; + P.Description := 'Gecko headers and components to use Gecko in Free Pascal or Lazarus using XPCom.'; + P.Options.add('-Sm'); + P.Options.add('-Sd'); + + P.Dependencies.Add('lazmkunit'); + P.Dependencies.Add('fcl-registry',AllWindowsOSes); + // Due to a bug in fpcmake, the dependencies of fcl-registry aren't processed + P.Dependencies.Add('fcl-base',AllWindowsOSes); + + P.Targets.AddUnit('nsTypes.pas'); + P.Targets.AddUnit('nsCID.pas'); + P.Targets.AddUnit('nsConsts.pas'); + + with P.Targets.AddUnit('nsGeckoStrings.pas') do + begin + Dependencies.AddUnit('nsInit'); + Dependencies.AddUnit('nsMemory'); + Dependencies.AddUnit('nsError'); + end; + + with P.Targets.AddUnit('nsInit.pas') do + begin + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsConsts'); + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsGeckoStrings'); + end; + + with P.Targets.AddUnit('nsXPCOM.pas') do + begin + Dependencies.AddUnit('nsGeckoStrings'); + Dependencies.AddUnit('nsTypes'); + end; + + with P.Targets.AddUnit('nsError.pas') do + begin + Dependencies.AddUnit('nsTypes'); + end; + + with P.Targets.AddUnit('nsErrorUtils.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsInit'); + Dependencies.AddUnit('nsXPCOMGlue'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsConsts'); + Dependencies.AddUnit('nsError'); + end; + + with P.Targets.AddUnit('nsMemory.pas') do + begin + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsError'); + Dependencies.AddUnit('nsInit'); + end; + + with P.Targets.AddUnit('nsXPCOMGlue.pas') do + begin + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsTypes'); + ResourceStrings := true; + end; + + // Is this unit used at all?!? + with P.Targets.AddUnit('nsProfile.pas',AllWindowsOSes) do + begin + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsXPCOMGlue'); + Dependencies.AddUnit('nsTypes'); + end; + + with P.Targets.AddUnit('nsEnumerators.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsXPCOM_std19'); + end; + + with P.Targets.AddUnit('each-version\nsXPCOM_std19.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsGeckoStrings'); + end; + + with P.Targets.AddUnit('nsNetUtil.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsGeckoStrings'); + Dependencies.AddUnit('nsConsts'); + Dependencies.AddUnit('nsXPCOMGlue'); + Dependencies.AddUnit('nsError'); + Dependencies.AddUnit('nsInit'); + ResourceStrings := true; + end; + + with P.Targets.AddUnit('nsStream.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsError'); + end; + + with P.Targets.AddUnit('nsXRE.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsGeckoStrings'); + Dependencies.AddUnit('nsError'); + Dependencies.AddUnit('nsInit'); + end; + +{ with P.Targets.AddUnit('nsThreadUtil.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsXPCOM'); + Dependencies.AddUnit('nsGeckoStrings'); + Dependencies.AddUnit('nsError'); + end;} + +{ with P.Targets.AddUnit('each-version\nsXPCOM_safe19.pas') do + begin + Dependencies.AddUnit('nsTypes'); + Dependencies.AddUnit('nsConsts'); + Dependencies.AddUnit('nsGeckoStrings'); + end;} + + P.Targets.AddExampleProgram('SampleApps/ChromeWin.dpr'); + P.Sources.AddExample('SampleApps/ChromeWin.dpr','examples'); + P.Sources.AddExample('SampleApps/ChromeWin.lpi','examples'); + P.Sources.AddExample('SampleApps/gec10.pas','examples'); + P.Sources.AddExample('SampleApps/gec10.lfm','examples'); + P.Sources.AddExample('SampleApps/lb-cw-cocoa.sh','examples'); + P.Sources.AddExample('SampleApps/lb-gb-cocoa.sh','examples'); + P.Sources.AddExample('SampleApps/run-bw-mac.sh','examples'); + P.Sources.AddExample('SampleApps/run-cw-mac.sh','examples'); + P.Sources.AddExample('SampleApps/run-gb-mac.sh','examples'); + P.Sources.AddExample('SampleApps/GBrowser.lpi','examples'); + P.Sources.AddExample('SampleApps/GBrowser.dpr','examples'); + + P.LazPackageFiles.AddLazPackageTemplate('Components/GeckoComponents.template'); + P.LazPackageFiles.AddLazFile('Components/BrowserSupports.pas'); + P.LazPackageFiles.AddLazFile('Components/CallbackInterfaces.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoBrowser.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoBrowser.lrs'); + P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.lfm'); + P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.lrs'); + P.LazPackageFiles.AddLazFile('Components/GeckoComponents.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoDirectoryService.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoInit.pas'); + P.LazPackageFiles.AddLazFile('Components/GeckoSimpleProfile.pas'); + P.LazPackageFiles.AddLazFile('Components/geckoresources.rc'); + P.LazPackageFiles.AddLazFile('Components/geckologo.png'); + + Run; + end; +end. + diff --git a/components/geckoport/version2/nsCID.pas b/components/geckoport/version2/nsCID.pas new file mode 100644 index 000000000..2b3e8f8ea --- /dev/null +++ b/components/geckoport/version2/nsCID.pas @@ -0,0 +1,235 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsCID; + +interface + +const +(* + * Original code: xpcom/build/nsXPCOMCID.h. + *) + +(** + * XPCOM Directory Service Contract ID + * The directory service provides ways to obtain file system locations. The + * directory service is a singleton. + * + * This contract supports the nsIDirectoryService and the nsIProperties + * interfaces. + * + *) + NS_DIRECTORY_SERVICE_CONTRACTID = '@mozilla.org/file/directory_service;1'; + +(** + * XPCOM File + * The file abstraction provides ways to obtain and access files and + * directories located on the local system. + * + * This contract supports the nsIFile interface and the nsILocalFile interface. + * This contract may also support platform specific interfaces such as + * nsILocalFileMac on platforms where additional interfaces are required. + * + *) + NS_LOCAL_FILE_CONTRACTID = '@mozilla.org/file/local;1'; + +(** + * XPCOM Category Manager Contract ID + * The contract supports the nsICategoryManager interface. The + * category manager is a singleton. + *) + NS_CATEGORYMANAGER_CONTRACTID = '@mozilla.org/categorymanager;1'; + +(** + * XPCOM Properties Object Contract ID + * Simple mapping object which supports the nsIProperties interface. + *) + NS_PROPERTIES_CONTRACTID = '@mozilla.org/properties;1'; + +(** + * XPCOM Array Object ContractID + * Simple array implementation which supports the nsIArray and + * nsIMutableArray interfaces. + *) + NS_ARRAY_CONTRACTID = '@mozilla.org/array;1'; + +(** + * The following are the CIDs and Contract IDs of the nsISupports wrappers for + * primative types. + *) + NS_SUPPORTS_ID_CID: TGUID = '{acf8dc40-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_ID_CONTRACTID = '@mozilla.org/supports-id;1'; + + NS_SUPPORTS_CSTRING_CID: TGUID = '{acf8dc41-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_CSTRING_CONTRACTID = '@mozilla.org/supports-cstring;1'; + + NS_SUPPORTS_STRING_CID: TGUID = '{acf8dc42-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_STRING_CONTRACTID = '@mozilla.org/supports-string;1'; + + NS_SUPPORTS_PRBOOL_CID: TGUID = '{acf8dc43-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRBOOL_CONTRACTID = '@mozilla.org/supports-PRBool;1'; + + NS_SUPPORTS_PRUINT8_CID: TGUID = '{acf8dc44-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRUINT8_CONTRACTID = '@mozilla.org/supports-PRUint8;1'; + + NS_SUPPORTS_PRUINT16_CID: TGUID = '{acf8dc46-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRUINT16_CONTRACTID = '@mozilla.org/supports-PRUint16;1'; + + NS_SUPPORTS_PRUINT32_CID: TGUID = '{acf8dc47-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRUINT32_CONTRACTID = '@mozilla.org/supports-PRUint32;1'; + + NS_SUPPORTS_PRUINT64_CID: TGUID = '{acf8dc48-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRUINT64_CONTRACTID = '@mozilla.org/supports-PRUint64;1'; + + NS_SUPPORTS_PRTIME_CID: TGUID = '{acf8dc49-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRTIME_CONTRACTID = '@mozilla.org/supports-PRTime;1'; + + NS_SUPPORTS_CHAR_CID: TGUID = '{acf8dc4a-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_CHAR_CONTRACTID = '@mozilla.org/supports-char;1'; + + NS_SUPPORTS_PRINT16_CID: TGUID = '{acf8dc4b-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRINT16_CONTRACTID = '@mozilla.org/supports-PRInt16;1'; + + NS_SUPPORTS_PRINT32_CID: TGUID = '{acf8dc4c-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRINT32_CONTRACTID = '@mozilla.org/supports-PRInt32;1'; + + NS_SUPPORTS_PRINT64_CID: TGUID = '{acf8dc4d-4a25-11d3-9890-006008962422}'; + NS_SUPPORTS_PRINT64_CONTRACTID = '@mozilla.org/supports-PRInt64;1'; + + NS_SUPPORTS_FLOAT_CID: TGUID = '{cbf86870-4ac0-11d3-baea-00805f8a5dd7}'; + NS_SUPPORTS_FLOAT_CONTRACTID = '@mozilla.org/supports-float;1'; + + NS_SUPPORTS_DOUBLE_CID: TGUID = '{cbf86871-4ac0-11d3-baea-00805f8a5dd7}'; + NS_SUPPORTS_DOUBLE_CONTRACTID = '@mozilla.org/supports-double;1'; + + NS_SUPPORTS_VOID_CID: TGUID = '{af10f3e0-568d-11d3-baf8-00805f8a5dd7}'; + NS_SUPPORTS_VOID_CONTRACTID = '@mozilla.org/supports-void;1'; + + NS_SUPPORTS_INTERFACE_POINTER_CID: TGUID = '{A99FEBBA-1DD1-11B2-A943-B02334A6D083}'; + NS_SUPPORTS_INTERFACE_POINTER_CONTRACTID = '@mozilla.org/supports-interface-pointer;1'; + +(** + * nsHashPropertyBag impl of nsIWritablePropertyBag + *) + NS_HASH_PROPERTY_BAG_CID: TGUID = '{678c50b8-6bcb-4ad0-b9b8-c81175955199}'; + NS_HASH_PROPERTY_BAG_CONSTRACTID = '@mozilla.org/hash-property-bag;1'; + +(* + * Original code: xpcom/glue/nsIGenericFactory.h. + *) + // nsIGenericFactory + NS_GENERICFACTORY_CID: TGUID = '{3bc97f01-ccdf-11d2-bab8-b548654461fc}'; + NS_IGENERICFACTORY_CID: TGUID = '{3bc97f00-ccdf-11d2-bab8-b548654461fc}'; + NS_GENERICFACTORY_CONTRACTID = '@mozilla.org/generic-factory;1'; + NS_GENERICFACTORY_CLASSNAME = 'Generic Factory'; + +(* + * Original code: docshell/base/nsIGlobalHistory.idl. + *) + // nsIGlobalHistory + NS_GLOBALHISTORY_CONTRACTID = '@mozilla.org/browser/global-history;1'; + +(* + * Original code: modules/libpref/public/nsIPrefBranch.idl. + *) + // nsIPrefBranch + NS_PREFBRANCH_CONTRACTID = '@mozilla.org/preferencesbranch;1'; + NS_PREFBRANCH_CLASSNAME = 'Preferences Branch'; + +(* + * Original code: modules/libpref/public/nsIPrefLocalizedString.idl + *) + NS_PREFLOCALIZEDSTRING_CID: TGUID ='{064d9cee-1dd2-11b2-83e3-d25ab0193c26}'; + NS_PREFLOCALIZEDSTRING_CONTRACTID = '@mozilla.org/pref-localizedstring;1'; + NS_PREFLOCALIZEDSTRING_CLASSNAME = 'Pref LocalizedString'; + +(* + * Original code: modules/libpref/public/nsIPrefService.idl + *) + // nsIPrefService + NS_PREFSERVICE_CID: TGUID ='{1cd91b88-1dd2-11b2-92e1-ed22ed298000}'; + NS_PREFSERVICE_CONTRACTID = '@mozilla.org/preferences-service;1'; + NS_PREFSERVICE_CLASSNAME = 'Preferences Server'; +(** + * Notification sent before reading the default user preferences files. + *) + NS_PREFSERVICE_READ_TOPIC_ID = 'prefservice:before-read-userprefs'; +(** + * Notification sent when resetPrefs has been called, but before the actual + * reset process occurs. + *) + NS_PREFSERVICE_RESET_TOPIC_ID = 'prefservice:before-reset'; + +(* + * Original code: profile/public/nsIProfile.idl + *) + // nsIProfile + NS_PROFILE_CID: TGUID = '{02b0625b-e7f3-11d2-9f5a-006008a6efe9}'; + NS_PROFILE_CONTRACTID = '@mozilla.org/profile/manager;1'; + NS_PROFILE_STARTUP_CATEGORY = 'profile-startup-category'; + + // nsIProtocolHandler +(** + * Protocol handlers are registered with XPCOM under the following CONTRACTID prefix: + *) + NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX = '@mozilla.org/network/protocol;1?name='; +(** + * For example, "@mozilla.org/network/protocol;1?name=http" + *) + +(* + * Original code: xpfe/components/shistory/public/nsISHistory.idl + *) + // nsISHistory + NS_SHISTORY_CID: TGUID = '{7294fe9c-14d8-11d5-9882-00C04fa02f40}'; + NS_SHISTORY_CONTRACTID = '@mozilla.org/browser/shistory;1'; + +(* + * Original code: xpfe/components/shistory/public/nsISHistoryListener.idl + *) + // nsISHistoryListener + NS_SHISTORYLISTENER_CONTRACTID = '@mozilla.org/browser/shistorylistener;1'; + + (* + * Original code: embedding/components/windowwatcher/public/nsIWindowWatcher.idl + *) + // nsIWindowWatcher + NS_WINDOWWATCHER_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + NS_WINDOWWATCHER_CONTRACTID = '@mozilla.org/embedcomp/window-watcher;1'; + +implementation + +end. diff --git a/components/geckoport/version2/nsConsts.pas b/components/geckoport/version2/nsConsts.pas new file mode 100644 index 000000000..83590cead --- /dev/null +++ b/components/geckoport/version2/nsConsts.pas @@ -0,0 +1,90 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoSDK for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2004 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsConsts; + +interface + +const +{$IFDEF MSWINDOWS} + XPCOM_DLL = 'xpcom.dll'; + XUL_DLL = 'xul.dll'; +{$ENDIF} +{$IFDEF UNIX} + XPCOM_DLL = 'libxpcom.so'; + XUL_DLL = 'libxul.so'; +{$ENDIF} + +const + GRE_MOZILLA_WIN_REG_LOC = 'Software\mozilla.org\GRE\'; + GRE_FIREFOX_BASE_WIN_REG_LOC = 'SOFTWARE\Mozilla\Mozilla Firefox'; + + // 1.7 Release + MOZILLA_VERSION = 1.7; + GRE_BUILD_ID = '1.7_2004061609'; + NS_BUILD_ID = 2004061609; + + // 1.7.1 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.1_2004070721'; + //NS_BUILD_ID = 2004070721; + + // 1.7.2 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.2_2004080302'; + //NS_BUILD_ID = 2004080302; + + // 1.7.3 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.3_2004091008'; + //NS_BUILD_ID = 2004091008; + + // 1.7.5 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.5_2004122323'; + //NS_BUILD_ID = 2004122323; + + // 1.7.6 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.6_2005031907'; + //NS_BUILD_ID = 2005031907; + + // 1.7.7 Release + //MOZILLA_VERSION = 1.7; + //GRE_BUILD_ID = '1.7.7_2005041417'; + //NS_BUILD_ID = 2005041417; + +implementation + +end. diff --git a/components/geckoport/version2/nsEnumerators.pas b/components/geckoport/version2/nsEnumerators.pas new file mode 100755 index 000000000..b109f8d58 --- /dev/null +++ b/components/geckoport/version2/nsEnumerators.pas @@ -0,0 +1,72 @@ +unit nsEnumerators; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +interface + +uses + nsXPCOM, nsTypes, Classes; + +function NewSimpleEnumeratorFromTInterfaceList(AList: TInterfaceList; + AOwn: Boolean = True): nsISimpleEnumerator; + +implementation + +uses + nsXPCOM_std19, nsError; + +type + TSimpleEnumeratorWithInterfaceList = class(TInterfacedObject, + nsISimpleEnumerator_std19) + FList: TInterfaceList; + FOwn: Boolean; + FIndex: Integer; + destructor Destroy; override; + function HasMoreElements(out _retval: PRBool): nsresult; extdecl; + function GetNext(out _retval: nsISupports_std19): nsresult; extdecl; + end; + +function NewSimpleEnumeratorFromTInterfaceList(AList: TInterfaceList; + AOwn: Boolean = True): nsISimpleEnumerator; +var + enum: TSimpleEnumeratorWithInterfaceList; +begin + enum := TSimpleEnumeratorWithInterfaceList.Create; + enum.FList := AList; + enum.FOwn := AOwn; + Result := enum as nsISimpleEnumerator; +end; + +destructor TSimpleEnumeratorWithInterfaceList.Destroy; +begin + if FOwn then + FList.Free; + + inherited; +end; + +function TSimpleEnumeratorWithInterfaceList.HasMoreElements(out _retval + : PRBool): nsresult; +begin + _retval := (FIndex < FList.Count); + Result := NS_OK; +end; + +function TSimpleEnumeratorWithInterfaceList.GetNext(out _retval + : nsISupports_std19): nsresult; +begin + if (FIndex < FList.Count) then + begin + Result := FList.Items[FIndex].QueryInterface(nsISupports_std19, _retval); + Inc(FIndex); + end else + Result := NS_ERROR_FAILURE; +end; + +end. diff --git a/components/geckoport/version2/nsError.pas b/components/geckoport/version2/nsError.pas new file mode 100644 index 000000000..bbf2846f1 --- /dev/null +++ b/components/geckoport/version2/nsError.pas @@ -0,0 +1,173 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corporation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsError; + +interface + +uses nsTypes; + +const +(* + * Original code: xpcom/base/nsError.h + *) + +(** + * @name Standard Module Offset Code. Each Module should identify a unique number + * and then all errors associated with that module become offsets from the + * base associated with that module id. There are 16 bits of code bits for + * each module. + *) + NS_ERROR_MODULE_XPCOM = 1; + NS_ERROR_MODULE_BASE = 2; + NS_ERROR_MODULE_GFX = 3; + NS_ERROR_MODULE_WIDGET = 4; + NS_ERROR_MODULE_CALENDER = 5; + NS_ERROR_MODULE_NETWORK = 6; + NS_ERROR_MODULE_PLUGINS = 7; + NS_ERROR_MODULE_LAYOUT = 8; + NS_ERROR_MODULE_HTMLPARSER = 9; + NS_ERROR_MODULE_RDF = 10; + NS_ERROR_MODULE_UCONV = 11; + NS_ERROR_MODULE_REG = 12; + NS_ERROR_MODULE_FILES = 13; + NS_ERROR_MODULE_DOM = 14; + NS_ERROR_MODULE_IMGLIB = 15; + NS_ERROR_MODULE_MAILNEWS = 16; + NS_ERROR_MODULE_ERITOR = 17; + NS_ERROR_MODULE_XPCONNECT = 18; + NS_ERROR_MODULE_PROFILE = 19; + NS_ERROR_MODULE_LDAP = 20; + NS_ERROR_MODULE_SECURITY = 21; + NS_ERROR_MODULE_DOM_XPATH = 22; + NS_ERROR_MODULE_DOM_RANGE = 23; + NS_ERROR_MODULE_URILOADER = 24; + NS_ERROR_MODULE_CONTENT = 25; + NS_ERROR_MODULE_PYXPCOM = 26; + NS_ERROR_MODULE_XSLT = 27; + NS_ERROR_MODULE_IPC = 28; + NS_ERROR_MODULE_SVG = 29; + NS_ERROR_MODULE_STORAGE = 30; + NS_ERROR_MODULE_SCHEMA = 31; + + NS_ERROR_MODULE_GENERAL = 51; + +(** + * @name Severity Code. This flag identifies the level of warning + *) + NS_ERROR_SEVERITY_SUCCESS = 0; + NS_ERROR_SEVERITY_ERROR = 1; + + NS_OK = 0; + + NS_ERROR_BASE = nsresult($c1f30000); + NS_ERROR_NOT_INITIALIZED = nsresult($c1f30001); + NS_ERROR_ALREADY_INITIALIZED = nsresult($c1f30002); + NS_ERROR_NOT_IMPLEMENTED = nsresult($80004001); + NS_ERROR_NOINTERFACE = nsresult($80004002); + NS_ERROR_NO_INTERFACE = nsresult($80004002); + NS_ERROR_INVALID_POINTER = nsresult($80004003); + NS_ERROR_NULL_POINTER = nsresult($80004003); + NS_ERROR_ABORT = nsresult($80004004); + NS_ERROR_FAILURE = nsresult($80004005); + NS_ERROR_UNEXPECTED = nsresult($8000ffff); + NS_ERROR_OUT_OF_MEMORY = nsresult($8007000e); + NS_ERROR_ILLEGAL_VALUE = nsresult($80070057); + NS_ERROR_INVALID_ARG = nsresult($80070057); + NS_ERROR_NO_AGGREGATION = nsresult($80040110); + NS_ERROR_NOT_AVAILABLE = nsresult($80040111); + NS_ERROR_FACTORY_NOT_REGISTERED = nsresult($80040154); + NS_ERROR_FACTORY_REGISTER_AGAIN = nsresult($80040155); + NS_ERROR_FACTORY_NOT_LOADED = nsresult($800401f8); + NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT = nsresult($c1f30101); + NS_ERROR_FACTORY_EXISTS = nsresult($c1f30100); + NS_ERROR_PROXY_INVALID_IN_PARAMETER = nsresult($80010010); + NS_ERROR_PROXY_INVALID_OUT_PARAMETER = nsresult($80010011); + + NS_BASE_STREAM_CLOSED = nsresult($80470002); + NS_BASE_STREAM_OSERROR = nsresult($80470003); + NS_BASE_STREAM_ILLEGAL_ARGS = nsresult($80470004); + NS_BASE_STREAM_NO_CONVERTER = nsresult($80470005); + NS_BASE_STREAM_BAD_CONVERSION = nsresult($80470006); + NS_BASE_STREAM_WOULD_BLOCK = nsresult($80470007); + + NS_ERROR_FILE_UNRECOGNIZED_PATH = nsresult($80480001); + NS_ERROR_FILE_UNRESOLVABLE_SYMLINK = nsresult($80480002); + NS_ERROR_FILE_EXECUTION_FAILED = nsresult($80480003); + NS_ERROR_FILE_UNKNOWN_TYPE = nsresult($80480004); + NS_ERROR_FILE_DESTINATION_NOT_DIR = nsresult($80480005); + NS_ERROR_FILE_TARGET_DOES_NOT_EXIST = nsresult($80480006); + NS_ERROR_FILE_COPY_OR_MOVE_FAILED = nsresult($80480007); + NS_ERROR_FILE_ALREADY_EXISTS = nsresult($80480008); + NS_ERROR_FILE_INVALID_PATH = nsresult($80480009); + NS_ERROR_FILE_DISK_FULL = nsresult($8048000A); + NS_ERROR_FILE_CORRUPTED = nsresult($8048000B); + NS_ERROR_FILE_NOT_DIRECTORY = nsresult($8048000C); + NS_ERROR_FILE_IS_DIRECTORY = nsresult($8048000D); + NS_ERROR_FILE_IS_LOCKED = nsresult($8048000E); + NS_ERROR_FILE_TOO_BIG = nsresult($8048000F); + NS_ERROR_FILE_NO_DEVICE_SPACE = nsresult($80480010); + NS_ERROR_FILE_NAME_TOO_LONG = nsresult($80480011); + NS_ERROR_FILE_NOT_FOUND = nsresult($80480012); + NS_ERROR_FILE_READ_ONLY = nsresult($80480013); + NS_ERROR_FILE_DIR_NOT_EMPTY = nsresult($80480014); + NS_ERROR_FILE_ACCESS_DENIED = nsresult($80480015); + + NS_ERROR_CANNOT_CONVERT_DATA = nsresult($80460001); + NS_ERROR_OBJECT_IS_IMMUTABLE = nsresult($80460002); + NS_ERROR_LOSS_OF_SIGNIFICANT_DATA = nsresult($80460003); + NS_SUCCESS_LOSS_OF_INSIGNIFICANT_DATA = nsresult($00460003); + +(* + * @name Standard Error Handling Macros + *) + +function NS_FAILED(rv: nsresult): Boolean; +function NS_SUCCEEDED(rv: nsresult): Boolean; + +implementation + +function NS_FAILED(rv: nsresult): Boolean; +begin + Result := (rv and $80000000) <> 0; +end; + +function NS_SUCCEEDED(rv: nsresult): Boolean; +begin + Result := (rv and $80000000) = 0; +end; + +end. diff --git a/components/geckoport/version2/nsErrorUtils.pas b/components/geckoport/version2/nsErrorUtils.pas new file mode 100644 index 000000000..ef985525c --- /dev/null +++ b/components/geckoport/version2/nsErrorUtils.pas @@ -0,0 +1,103 @@ +unit nsErrorUtils; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +interface + +uses + nsTypes; + +function NS_GetErrorStringBundle(aErrorModule: PRInt16): AnsiString; +function NS_GetErrorStringBundleKey(aError: nsresult): AnsiString; + +implementation + +uses + nsXPCOMGlue, nsXPCOM, nsError; + +type + nsIErrorService = interface; + + nsIErrorService = interface(nsISupports) + ['{e72f94b2-5f85-11d4-9877-00c04fa0cf4a}'] + function registerErrorStringBundle( + aErrorModule: PRInt16; + aStringBundleURL: PAnsiChar): nsresult; extdecl; + function unregisterErrorStringBundle( + aErrorModule: PRInt16): nsresult; extdecl; + function getErrorStringBundle( + aErrorModule: PRInt16; + out aResult: PAnsiChar): nsresult; extdecl; + function registerErrorStringBundleKey( + aError: nsresult; + aStringBundleKey: PAnsiChar): nsresult; extdecl; + function unregisterErrorStringBundleKey( + aError: nsresult): nsresult; extdecl; + function getErrorStringBundleKey( + aError: nsresult; + out aResult: PAnsiChar): nsresult; extdecl; + end; + +const + NS_IERRORSERVICE_CID: TGUID = '{e72f94b2-5f85-11d4-9877-00c04fa0cf4a}'; + NS_ERRORSERVICE_NAME = 'Error Service'; + NS_ERRORSERVICE_CONTRACTID = '@mozilla.org/xpcom/error-service;1'; + NS_ERRORSERVICE_CID: TGUID = '{744afd5e-5f8c-11d4-9877-00c04fa0cf4a}'; + +var + sErrorService: nsIErrorService = nil; + +function ENSURE_ErrorService(): nsIErrorService; +var + es: nsIErrorService; +begin + if not Assigned(sErrorService) then + begin + try + NS_GetService(NS_ERRORSERVICE_CONTRACTID, nsIErrorService, es); + sErrorService := es; + except + end; + end; + Result := sErrorService; +end; + +function NS_GetErrorStringBundle(aErrorModule: PRInt16): AnsiString; +var + es: nsIErrorService; + rv: nsresult; + str: PAnsiChar; +begin + es := ENSURE_ErrorService(); + if Assigned(es) then + begin + rv := es.getErrorStringBundle(aErrorModule, str); + if NS_SUCCEEDED(rv) then + Result := str; + end; +end; + +function NS_GetErrorStringBundleKey(aError: nsresult): AnsiString; +var + es: nsIErrorService; + rv: nsresult; + str: PAnsiChar; +begin + es := ENSURE_ErrorService(); + if Assigned(es) then + begin + rv := es.getErrorStringBundleKey(aError, str); + if NS_SUCCEEDED(rv) then + Result := str; + end + else + result := SGetServiceManagerError; +end; + +end. diff --git a/components/geckoport/version2/nsGeckoStrings.pas b/components/geckoport/version2/nsGeckoStrings.pas new file mode 100644 index 000000000..6a405b4fb --- /dev/null +++ b/components/geckoport/version2/nsGeckoStrings.pas @@ -0,0 +1,808 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoSDK for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2004 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsGeckoStrings; + +interface + +type + nsAString = ^nsStringContainer; + nsString = nsAString; + nsStringContainer = record + v: Pointer; + d1: Pointer; + d2: Longword; + d3: Pointer; + end; + + nsACString = ^nsCStringContainer; + nsCString = nsACString; + nsCStringContainer = record + v: Pointer; + d1: Pointer; + d2: Longword; + d3: Pointer; + end; + + nsAUTF8String = nsACString; + nsUTF8String = nsAUTF8String; + nsUTF8StringContainer = nsCStringContainer; + + IInterfacedString = interface; + IInterfacedCString = interface; + IInterfacedUTF8String = interface; + + IInterfacedString = interface + ['{0FA36E7C-6CA9-4D02-AF23-B49F35047181}'] + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedString); overload; + procedure Assign(const Source: nsAString); overload; + procedure Assign(Source: WideString); overload; + procedure Append(Source: IInterfacedString); overload; + procedure Append(const Source: nsAString); overload; + procedure Append(Source: WideString); overload; + procedure Insert(Source: IInterfacedString; aPosition: Longword); overload; + procedure Insert(const Source: nsAString; aPosition: Longword); overload; + procedure Insert(Source: WideString; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsAString); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedString); overload; + function AString: nsAString; + function ToString: WideString; + end; + + IInterfacedCString = interface + ['{3207A765-52D6-4E1C-B0F1-8EC39DA4D8B4}'] + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedCString); overload; + procedure Assign(const Source: nsACString); overload; + procedure Assign(Source: AnsiString); overload; + procedure Append(Source: IInterfacedCString); overload; + procedure Append(const Source: nsACString); overload; + procedure Append(Source: AnsiString); overload; + procedure Insert(Source: IInterfacedCString; aPosition: Longword); overload; + procedure Insert(const Source: nsACString; aPosition: Longword); overload; + procedure Insert(Source: AnsiString; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsACString); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedCString); overload; + function ACString: nsACString; + function ToString: AnsiString; + end; + + IInterfacedUTF8String = interface + ['{100ABB7D-46A0-4BB2-B5BF-A94F9E53B78C}'] + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedUTF8String); overload; + procedure Assign(const Source: nsAUTF8String); overload; + procedure Assign(Source: UTF8String); overload; + procedure Append(Source: IInterfacedUTF8String); overload; + procedure Append(const Source: nsAUTF8String); overload; + procedure Append(Source: UTF8String); overload; + procedure Insert(Source: IInterfacedUTF8String; aPosition: Longword); overload; + procedure Insert(const Source: nsAUTF8String; aPosition: Longword); overload; + procedure Insert(Source: UTF8String; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsAUTF8String); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedUTF8String); overload; + function AUTF8String: nsAUTF8String; + function ToString: UTF8String; + end; + +function Compare(const lhs, rhs: nsAString): Integer; overload; +function Compare(const lhs, rhs: nsACString): Integer; overload; + +function NewString: IInterfacedString; overload; +function NewString(src: PWideChar): IInterfacedString; overload; +function NewString(src: WideString): IInterfacedString; overload; +function NewString(src: nsAString): IInterfacedString; overload; + +function NewCString: IInterfacedCString; overload; +function NewCString(src: PAnsiChar): IInterfacedCString; overload; +function NewCString(src: AnsiString): IInterfacedCString; overload; +function NewCString(src: nsACString): IInterfacedCString; overload; + +function NewUTF8String: IInterfacedUTF8String; overload; +function NewUTF8String(src: PAnsiChar): IInterfacedUTF8String; overload; +function NewUTF8String(src: UTF8String): IInterfacedUTF8String; overload; +function NewUTF8String(src: nsAUTF8String): IInterfacedUTF8String; overload; + +function RelateString(src: nsAString; own: Boolean=False): IInterfacedString; +function RelateCString(src: nsACString; own: Boolean=False): IInterfacedCString; +function RelateUTF8String(src: nsAUTF8String; own: Boolean=False): IInterfacedUTF8String; + +implementation + +uses + nsInit, nsMemory, nsError; + +function Compare(const lhs, rhs: nsAString): Integer; +var + p1, p2: PWideChar; + l1, l2: Longword; +begin + l1 := NS_StringGetData(lhs, p1); + l2 := NS_StringGetData(rhs, p2); + + while (l1>0) and (l2>0) do + begin + Result := Ord(p1^) - Ord(p2^); + if Result <> 0 then Exit; + Dec(l1); + Dec(l2); + Inc(p1); + Inc(p2); + end; + Result := l1 - l2; +end; + +function Compare(const lhs, rhs: nsACString): Integer; +var + p1, p2: PAnsiChar; + l1, l2: Longword; +begin + l1 := NS_CStringGetData(lhs, p1); + l2 := NS_CStringGetData(rhs, p2); + + while (l1>0) and (l2>0) do + begin + Result := Ord(p1^) - Ord(p2^); + if Result <> 0 then Exit; + Dec(l1); + Dec(l2); + Inc(p1); + Inc(p2); + end; + Result := l1 - l2; +end; + +type + TIStringImpl = class(TInterfacedObject, IInterfacedString) + FContainer: nsStringContainer; + FString: nsString; + FOwn: Boolean; + public + constructor Create; overload; + constructor Create(src: PWideChar); overload; + constructor Create(src: WideString); overload; + constructor Create(src: nsAString); overload; + constructor Relate(src: nsAString; own: Boolean); + destructor Destroy; override; + + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedString); overload; + procedure Assign(const Source: nsAString); overload; + procedure Assign(Source: WideString); overload; + procedure Append(Source: IInterfacedString); overload; + procedure Append(const Source: nsAString); overload; + procedure Append(Source: WideString); overload; + procedure Insert(Source: IInterfacedString; aPosition: Longword); overload; + procedure Insert(const Source: nsAString; aPosition: Longword); overload; + procedure Insert(Source: WideString; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsAString); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedString); overload; + function AString: nsAString; + function SIToString: WideString; + function IInterfacedString.ToString = SIToString; + end; + +function NewString: IInterfacedString; +begin + Result := TIStringImpl.Create; +end; + +function NewString(src: PWideChar): IInterfacedString; +begin + Result := TIStringImpl.Create(src); +end; + +function NewString(src: WideString): IInterfacedString; +begin + Result := TIStringImpl.Create(src); +end; + +function NewString(src: nsAString): IInterfacedString; +begin + Result := TIStringImpl.Create(src); +end; + +function RelateString(src: nsAString; own: Boolean): IInterfacedString; +begin + Result := TIStringImpl.Relate(src, own); +end; + +constructor TIStringImpl.Create; +begin + inherited Create; + if NS_FAILED(NS_StringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; +end; + +constructor TIStringImpl.Create(src: PWideChar); +begin + inherited Create; + if NS_FAILED(NS_StringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); + //nsMemory.Free(src); +end; + +constructor TIStringImpl.Create(src: WideString); +begin + inherited Create; + if NS_FAILED(NS_StringContainerInit(FContainer)) then + begin + //Maybe the engine is being unloaded, so just skip error. + //Error(reOutOfMemory); + FillByte(FContainer,sizeof(FContainer),0); + end; + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TIStringImpl.Create(src: nsAString); +begin + inherited Create; + if NS_FAILED(NS_StringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TIStringImpl.Relate(src: nsAString; own: Boolean); +begin + inherited Create; + FString := src; + FOwn := own; +end; + +destructor TIStringImpl.Destroy; +begin + if FOwn then + NS_StringContainerFinish(FString^); + inherited Destroy; +end; + +function TIStringImpl.Length: Longword; +var + temp: PWideChar; +begin + Result := NS_StringGetData(FString, temp); + //nsMemory.Free(temp); +end; + +procedure TIStringImpl.Cut(cutStart, cutLength: Longword); +begin + NS_StringCutData(FString, cutStart, cutLength); +end; + +procedure TIStringImpl.Assign(Source: IInterfacedString); +begin + NS_StringCopy(FString, Source.AString); +end; + +procedure TIStringImpl.Assign(const Source: nsAString); +begin + NS_StringCopy(FString, Source); +end; + +procedure TIStringImpl.Assign(Source: WideString); +begin + NS_StringSetData(FString, PWideChar(Source)); +end; + +procedure TIStringImpl.Append(Source: IInterfacedString); +begin + NS_StringAppendData(FString, PWideChar(Source.ToString)); +end; + +procedure TIStringImpl.Append(const Source: nsAString); +var + src2: IInterfacedString; +begin + src2 := NewString(Source); + Append(src2); +end; + +procedure TIStringImpl.Append(Source: WideString); +var + src2: IInterfacedString; +begin + src2 := NewString(Source); + Append(src2); +end; + +procedure TIStringImpl.Insert(Source: IInterfacedString; aPosition: Longword); +begin + NS_StringInsertData(FString, aPosition, PWideChar(Source.ToString)); +end; + +procedure TIStringImpl.Insert(const Source: nsAString; aPosition: Longword); +var + src2: IInterfacedString; +begin + src2 := NewString(Source); + Insert(src2, aPosition); +end; + +procedure TIStringImpl.Insert(Source: WideString; aPosition: Longword); +var + src2: IInterfacedString; +begin + src2 := NewString(Source); + Insert(src2, aPosition); +end; + +procedure TIStringImpl.Replace(aPosition, aLength: Longword; Source: IInterfacedString); +begin + NS_StringSetDataRange(FString, aPosition, aLength, PWideChar(Source.ToString)); +end; + +procedure TIStringImpl.Replace(aPosition, aLength: Longword; const Source: nsAString); +var + src2: IInterfacedString; +begin + src2 := NewString(Source); + Replace(aPosition, aLength, Src2); +end; + +function TIStringImpl.AString: nsAString; +begin + Result := FString; +end; + +function TIStringImpl.SIToString: WideString; +var + p: PWideChar; + l: Longword; + i: Longword; +begin + l := NS_StringGetData(FString, p); + SetLength(Result, l); + for i:=1 to l do + begin + Result[i] := p^; + Inc(p); + end; +end; + +type + TICStringImpl = class(TInterfacedObject, IInterfacedCString) + FContainer: nsCStringContainer; + FString: nsCString; + FOwn: Boolean; + + constructor Create; overload; + constructor Create(src: AnsiString); overload; + constructor Create(src: nsACString); overload; + constructor Relate(src: nsACString; own: Boolean); overload; + destructor Destroy; override; + + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedCString); overload; + procedure Assign(const Source: nsACString); overload; + procedure Assign(Source: AnsiString); overload; + procedure Append(Source: IInterfacedCString); overload; + procedure Append(const Source: nsACString); overload; + procedure Append(Source: AnsiString); overload; + procedure Insert(Source: IInterfacedCString; aPosition: Longword); overload; + procedure Insert(const Source: nsACString; aPosition: Longword); overload; + procedure Insert(Source: AnsiString; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsACString); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedCString); overload; + function ACString: nsACString; + function ToAnsiString: AnsiString; + function IInterfacedCString.ToString = ToAnsiString; + end; + + TIUTF8StringImpl = class(TInterfacedObject, IInterfacedUTF8String) + FContainer: nsCStringContainer; + FString: nsCString; + FOwn: Boolean; + + constructor Create; overload; + constructor Create(src: UTF8String); overload; + constructor Create(src: nsAUTF8String); overload; + constructor Relate(src: nsAUTF8String; own: Boolean); overload; + destructor Destroy; override; + + function Length: Longword; + procedure Cut(cutStart, cutLength: Longword); + procedure Assign(Source: IInterfacedUTF8String); overload; + procedure Assign(const Source: nsAUTF8String); overload; + procedure Assign(Source: UTF8String); overload; + procedure Append(Source: IInterfacedUTF8String); overload; + procedure Append(const Source: nsAUTF8String); overload; + procedure Append(Source: UTF8String); overload; + procedure Insert(Source: IInterfacedUTF8String; aPosition: Longword); overload; + procedure Insert(const Source: nsAUTF8String; aPosition: Longword); overload; + procedure Insert(Source: UTF8String; aPosition: Longword); overload; + procedure Replace(aPosition, aLength: Longword; const Source: nsAUTF8String); overload; + procedure Replace(aPosition, aLength: Longword; Source: IInterfacedUTF8String); overload; + function AUTF8String: nsAUTF8String; + function ToUTF8String: UTF8String; + function IInterfacedUTF8String.ToString = ToUTF8String; + end; + +function NewCString: IInterfacedCString; +begin + Result := TICStringImpl.Create; +end; + +function NewCString(src: PAnsiChar): IInterfacedCString; +begin + Result := TICStringImpl.Create(src); +end; + +function NewCString(src: AnsiString): IInterfacedCString; +begin + Result := TICStringImpl.Create(src); +end; + +function NewCString(src: nsACString): IInterfacedCString; +begin + Result := TICStringImpl.Create(src); +end; + +function RelateCString(src: nsACString; own: Boolean): IInterfacedCString; +begin + Result := TICStringImpl.Relate(src, own); +end; + +function NewUTF8String: IInterfacedUTF8String; +begin + Result := TIUTF8StringImpl.Create; +end; + +function NewUTF8String(src: PAnsiChar): IInterfacedUTF8String; +begin + Result := TIUTF8StringImpl.Create(src); +end; + +function NewUTF8String(src: UTF8String): IInterfacedUTF8String; +begin + Result := TIUTF8StringImpl.Create(src); +end; + +function NewUTF8String(src: nsAUTF8String): IInterfacedUTF8String; +begin + Result := TIUTF8StringImpl.Create(src); +end; + +function RelateUTF8String(src: nsAUTF8String; own: Boolean): IInterfacedUTF8String; +begin + Result := TIUTF8StringImpl.Relate(src, own); +end; + +constructor TICStringImpl.Create; +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + inherited Create; +end; + +constructor TICStringImpl.Create(src: AnsiString); +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TICStringImpl.Create(src: nsACString); +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TICStringImpl.Relate(src: nsACString; own: Boolean); +begin + inherited Create; + FString := src; + FOwn := own; +end; + +destructor TICStringImpl.Destroy; +begin + if FOwn then + NS_CStringContainerFinish(FString^); + inherited Destroy; +end; + +function TICStringImpl.Length: Longword; +var + temp: PAnsiChar; +begin + Result := NS_CStringGetData(FString, temp); +end; + +procedure TICStringImpl.Cut(cutStart, cutLength: Longword); +begin + NS_CStringCutData(FString, cutStart, cutLength); +end; + +procedure TICStringImpl.Assign(Source: IInterfacedCString); +begin + NS_CStringCopy(FString, Source.ACString); +end; + +procedure TICStringImpl.Assign(const Source: nsACString); +begin + NS_CStringCopy(FString, Source); +end; + +procedure TICStringImpl.Assign(Source: AnsiString); +begin + NS_CStringSetData(FString, PAnsiChar(Source)); +end; + +procedure TICStringImpl.Append(Source: IInterfacedCString); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source.ACString, src2); + NS_CStringAppendData(FString, src2); +end; + +procedure TICStringImpl.Append(const Source: nsACString); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source, src2); + NS_CStringAppendData(FString, src2); +end; + +procedure TICStringImpl.Append(Source: AnsiString); +begin + NS_CStringAppendData(FString, PAnsiChar(Source)); +end; + +procedure TICStringImpl.Insert(Source: IInterfacedCString; aPosition: Longword); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source.ACString, src2); + NS_CStringInsertData(FString, aPosition, src2); +end; + +procedure TICStringImpl.Insert(const Source: nsACString; aPosition: Longword); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source, src2); + NS_CStringInsertData(FString, aPosition, src2); +end; + +procedure TICStringImpl.Insert(Source: AnsiString; aPosition: Longword); +begin + NS_CStringInsertData(FString, aPosition, PAnsiChar(Source)); +end; + +procedure TICStringImpl.Replace(aPosition, aLength: Longword; Source: IInterfacedCString); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source.ACString, src2); + NS_CStringSetDataRange(FString, aPosition, aLength, src2); +end; + +procedure TICStringImpl.Replace(aPosition, aLength: Longword; const Source: nsACString); +var + src2: PAnsiChar; +begin + NS_CStringGetData(Source, src2); + NS_CStringSetDataRange(FString, aPosition, aLength, src2); +end; + +function TICStringImpl.ACString: nsACString; +begin + Result := FString; +end; + +function TICStringImpl.ToAnsiString: AnsiString; +var + p: PAnsiChar; + l: Longword; + i: Longword; +begin + l := NS_CStringGetData(FString, p); + SetLength(Result, l); + for i:=1 to l do + begin + Result[i] := p^; + Inc(p); + end; +end; + +constructor TIUTF8StringImpl.Create; +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + inherited Create; +end; + +constructor TIUTF8StringImpl.Create(src: UTF8String); +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TIUTF8StringImpl.Create(src: nsAUTF8String); +begin + inherited Create; + if NS_FAILED(NS_CStringContainerInit(FContainer)) then + Error(reOutOfMemory); + FOwn := True; + FString := @FContainer; + Assign(src); +end; + +constructor TIUTF8StringImpl.Relate(src: nsAUTF8String; own: Boolean); +begin + inherited Create; + FString := src; + FOwn := own; +end; + +destructor TIUTF8StringImpl.Destroy; +begin + if FOwn then + NS_CStringContainerFinish(FString^); + inherited Destroy; +end; + +function TIUTF8StringImpl.Length: Longword; +var + temp: PAnsiChar; +begin + Result := NS_CStringGetData(FString, temp); +end; + +procedure TIUTF8StringImpl.Cut(cutStart: Cardinal; cutLength: Cardinal); +begin + NS_CStringCutData(FString, cutStart, cutLength); +end; + +procedure TIUTF8StringImpl.Assign(Source: IInterfacedUTF8String); +begin + NS_CStringCopy(FString, Source.AUTF8String); +end; + +procedure TIUTF8StringImpl.Assign(const Source: nsAUTF8String); +begin + NS_CStringCopy(FString, Source); +end; + +procedure TIUTF8StringImpl.Assign(Source: UTF8String); +begin + NS_CStringSetData(FString, PAnsiChar(Source)); +end; + +procedure TIUTF8StringImpl.Append(Source: IInterfacedUTF8String); +begin + NS_CStringAppendData(FString, PAnsiChar(Source.ToString)); +end; + +procedure TIUTF8StringImpl.Append(const Source: nsAUTF8String); +var + src2: PAnsiChar; +begin + NS_CStringGetData(source, src2); + NS_CStringAppendData(FString, src2); +end; + +procedure TIUTF8StringImpl.Append(Source: UTF8String); +begin + NS_CStringAppendData(FString, PAnsiChar(Source)); +end; + +procedure TIUTF8StringImpl.Insert(Source: IInterfacedUTF8String; aPosition: Longword); +begin + NS_CStringInsertData(FString, aPosition, PAnsiChar(Source.ToString)); +end; + +procedure TIUTF8StringImpl.Insert(const Source: nsAUTF8String; aPosition: Longword); +var + src2: PAnsiChar; +begin + NS_CStringGetData(source, src2); + NS_CStringInsertData(FString, aPosition, src2); +end; + +procedure TIUTF8StringImpl.Insert(Source: UTF8String; aPosition: Longword); +begin + NS_CStringInsertData(FString, aPosition, PAnsiChar(Source)); +end; + +procedure TIUTF8StringImpl.Replace(aPosition, aLength: Longword; Source: IInterfacedUTF8String); +var + src2: PAnsiChar; +begin + NS_CStringGetData(source.AUTF8String, src2); + NS_CStringSetDataRange(FString, aPosition, aLength, src2); +end; + +procedure TIUTF8StringImpl.Replace(aPosition, aLength: Longword; const Source: nsAUTF8String); +var + src2: PAnsiChar; +begin + NS_CStringGetData(source, src2); + NS_CStringSetDataRange(FString, aPosition, aLength, src2); +end; + +function TIUTF8StringImpl.AUTF8String: nsAUTF8String; +begin + Result := FString; +end; + +function TIUTF8StringImpl.ToUTF8String:UTF8String; +var + p: PAnsiChar; + l: Longword; + i: Longword; +begin + l := NS_CStringGetData(FString, p); + SetLength(Result, l); + for i:=1 to l do + begin + Result[i] := p^; + Inc(p); + end; +end; + +end. diff --git a/components/geckoport/version2/nsInit.pas b/components/geckoport/version2/nsInit.pas new file mode 100755 index 000000000..dce1e042f --- /dev/null +++ b/components/geckoport/version2/nsInit.pas @@ -0,0 +1,2215 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is GeckoSDK for Delphi. + * + * The Initial Developer of the Original Code is Takanori Ito. + * Portions created by the Initial Developer are Copyright (C) 2003 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsInit; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + sysutils,Classes,nsXPCOM, nsConsts, nsTypes, nsGeckoStrings + {$IFDEF MSWINDOWS},registry{$ENDIF} + ; + +// XPCOM Functions +function NS_InitXPCOM2(out servMgr: nsIServiceManager; binDir: nsIFile; appFileLocationProvider: nsIDirectoryServiceProvider): nsresult; cdecl; +function NS_ShutdownXPCOM(servMgr: nsIServiceManager): nsresult; cdecl; +function NS_GetServiceManager(out servMgr: nsIServiceManager): nsresult; cdecl; +function NS_GetComponentManager(out compMgr: nsIComponentManager): nsresult; cdecl; +function NS_GetComponentRegistrar(out compReg: nsIComponentRegistrar): nsresult; cdecl; +function NS_GetMemoryManager(out memMgr: nsIMemory): nsresult; cdecl; +function NS_NewLocalFile(const Path: nsAString; FollowLinks: PRBool; out newFile: nsILocalFile): nsresult; cdecl; +function NS_NewNativeLocalFile(const Path: nsACString; FollowLinks: PRBool; out newFile: nsILocalFile): nsresult; cdecl; +function NS_GetDebug(out debug: nsIDebug): nsresult; cdecl; +function NS_GetTraceRefcnt(out traceRefcnt: nsITraceRefcnt): nsresult; cdecl; + +//type +// PLongBool = ^LongBool; + +function NS_StringContainerInit(var aContainer: nsStringContainer): nsresult; cdecl; +procedure NS_StringContainerFinish(var aContainer: nsStringContainer); cdecl; +function NS_StringGetData(const aStr: nsAString; out aData: PWideChar; aTerminated: PLongBool=nil): nsresult; cdecl; +function NS_StringCloneData(const aStr: nsAString): PWideChar; cdecl; +procedure NS_StringSetData(aStr: nsAString; const aData: PWideChar; aDataLength: PRUint32 = High(PRUint32)); cdecl; +procedure NS_StringSetDataRange(aStr: nsAString; aCutOffset, aCutLength: Longword; const aData: PWideChar; aDataLength: PRUint32 = High(PRUint32)); cdecl; +procedure NS_StringCopy(aDestStr: nsAString; const aSrcStr: nsAString); cdecl; +procedure NS_StringAppendData(aStr: nsAString; const aData: PWideChar; aDataLength: PRUint32 = High(PRUint32)); +procedure NS_StringInsertData(aStr: nsAString; aOffSet: PRUint32; const aData: PWideChar; aDataLength: PRUint32 = High(PRUint32)); +procedure NS_StringCutData(aStr: nsAString; aCutOffset, aCutLength: PRUint32); + +function NS_CStringContainerInit(var aContainer: nsCStringContainer): nsresult; cdecl; +procedure NS_CStringContainerFinish(var aContainer: nsCStringContainer); cdecl; +function NS_CStringGetData(const aStr: nsACString; out aData: PAnsiChar; aTerminated: PLongBool=nil): PRUint32; cdecl; +function NS_CStringCloneData(const aStr: nsACString): PAnsiChar; cdecl; +procedure NS_CStringSetData(aStr: nsACString; const aData: PAnsiChar; aDataLength: PRUint32 = High(PRUint32)); cdecl; +procedure NS_CStringSetDataRange(aStr: nsACString; aCutOffset, aCutLength: PRUint32; const aData: PAnsiChar; aDataLength: PRUint32 = High(PRUint32)); cdecl; +procedure NS_CStringCopy(aDestStr: nsACString; const aSrcStr: nsACString); cdecl; +procedure NS_CStringAppendData(aStr: nsACString; const aData: PAnsiChar; aDataLength: Longword = High(PRUint32)); +procedure NS_CStringInsertData(aStr: nsACString; aOffSet: PRUint32; const aData: PAnsiChar; aDataLength: PRUint32 = High(PRUint32)); +procedure NS_CStringCutData(aStr: nsACString; aCutOffset, aCutLength: PRUint32); + +type + nsSourceEncoding = ( NS_ENCODING_ASCII = 0, + NS_ENCODING_UTF8 = 1, + NS_ENCODING_NATIVE_FILESYSTEM = 2); + +function NS_CStringToUTF16(const aSource: nsACString; aSrcEncoding: nsSourceEncoding; aDest: nsAString): nsresult; cdecl; +function NS_UTF16ToCString(const aSource: nsAString; aSrcEncoding: nsSourceEncoding; aDest: nsACString): nsresult; cdecl; + +// Added for Gecko 1.8 +type + nsGetModuleProc = function (aCompMgr: nsIComponentManager; location: nsIFile; out return_cobj: nsIModule): nsresult; cdecl; + + PStaticModuleInfo = ^nsStaticModuleInfo; + PStaticModuleInfoArray = ^nsStaticModuleInfoArray; + nsStaticModuleInfo = record + name: PChar; + getModule: nsGetModuleProc; + end; + nsStaticModuleInfoArray = array[0..MaxInt div Sizeof(nsStaticModuleInfo)-1] of nsStaticModuleInfo; + +function NS_Alloc(size: PRSize): Pointer; cdecl; +function NS_Realloc(ptr: Pointer; size: PRSize): Pointer; cdecl; +procedure NS_Free(ptr: Pointer); cdecl; +function NS_InitXPCOM3(out servMgr: nsIServiceManager; binDir: nsIFile; appFileLocationProvider: nsIDirectoryServiceProvider; var staticComponents: nsStaticModuleInfoArray; componentCount: PRUint32): nsresult; cdecl; + +function NS_StringContainerInit2(var aContainer: nsStringContainer; const aStr: PWideChar; aOffset, aLength: PRUint32): nsresult; cdecl; +procedure NS_StringSetIsVoid(aStr: nsAString; const aIsVoid: PRBool); cdecl; +function NS_StringGetIsVoid(const aStr: nsAString): PRBool; cdecl; + +function NS_CStringContainerInit2(var aContainer: nsCStringContainer; const aStr: PAnsiChar; aOffset, aLength: PRUint32): nsresult; cdecl; +procedure NS_CStringSetIsVoid(aStr: nsACString; const aIsVoid: PRBool); cdecl; +function NS_CStringGetIsVoid(const aStr: nsACString): PRBool; cdecl; + +// Added for Gecko 1.9 +const + TD_INT8 = 0; + TD_INT16 = 1; + TD_INT32 = 2; + TD_INT64 = 3; + TD_UINT8 = 4; + TD_UINT16 = 5; + TD_UINT32 = 6; + TD_UINT64 = 7; + TD_FLOAT = 8; + TD_DOUBLE = 9; + TD_BOOL = 10; + TD_CHAR = 11; + TD_WCHAR = 12; + TD_VOID = 13; + TD_PNSIID = 14; + TD_DOMSTRING = 15; + TD_PSTRING = 16; + TD_PWSTRING = 17; + TD_INTERFACE_TYPE = 18; + TD_INTERFACE_IS_TYPE = 19; + TD_ARRAY = 20; + TD_PSTRING_SIZE_IS = 21; + TD_PWSTRING_SIZE_IS = 22; + TD_UTF8STRING = 23; + TD_CSTRING = 24; + TS_ASTRING = 25; + +type + nsXPTType = record + flags: PRUint8; + end; + + nsxPTCMiniVariant = record + case Integer of + TD_INT8: (i8: PRInt8); + TD_INT16: (i16: PRInt16); + TD_INT32: (i32: PRInt32); + TD_INT64: (i64: PRInt64); + TD_UINT8: (u8: PRUint8); + TD_UINT16: (u16: PRUint16); + TD_UINT32: (u32: PRUint32); + TD_UINT64: (u64: PRUint64); + TD_FLOAT: (f: Single); + TD_DOUBLE: (d: Double); + TD_BOOL: (b: PRBool); + TD_CHAR: (c: AnsiChar); + TD_WCHAR: (w: WideChar); + TD_VOID: (p: Pointer); + end; + + nsXPTCVariant = record + val: nsXPTCMiniVariant; + ptr: Pointer; + type_: nsXPTType; + flags: PRUint32; + end; + + PXPTCVariantArray = ^nsXPTCVariantArray; + nsXPTCVariantArray = array [0..MaxInt div SizeOf(nsXPTCVariant)-1] of nsXPTCVariant; + PXPTCMiniVariantArray = ^nsXPTCMiniVariantArray; + nsXPTCMiniVariantArray = array [0..MaxInt div SizeOf(nsXPTCMiniVariant)-1] of nsXPTCMiniVariant; + + XPTTypeDescriptorPrefix = record + flags: PRUint8; + end; + + XPTTypeDescriptor = record + prefix: XPTTypeDescriptorPrefix; + argnum: PRUint8; + argnim2: PRUint8; + case Integer of + TD_INTERFACE_TYPE: (iface: PRUint16); + TD_ARRAY: (additional_type: PRUint16); + end; + + PXPTParamDescriptor = ^XPTParamDescriptor; + XPTParamDescriptor = record + flags: PRUint8; + type_: XPTTypeDescriptor; + end; + PXPTParamDescriptorArray = ^XPTParamDescriptorArray; + XPTParamDescriptorArray = array [0..MaxInt div SizeOf(XPTParamDescriptor)-1] of XPTParamDescriptor; + + XPTMethodDescriptor = record + name: PAnsiChar; + params: PXPTParamDescriptorArray; + result: PXPTParamDescriptor; + flags: PRUint8; + num_args: PRUint8; + end; + + nsIXPTCProxy = interface(nsISupports) + function CallMethod(aMethodIndex: PRUint16; const aInfo: XPTMethodDescriptor; aParams: PXPTCMiniVariantArray): nsresult; extdecl; + end; + + +procedure NS_DebugBreak(aSeverity: PRUint32; aStr: PAnsiChar; aExpr: PAnsiChar; aFile: PAnsiChar; aLine: PRUint32); cdecl; +procedure NS_LogInit(); cdecl; +procedure NS_LogTerm(); cdecl; +procedure NS_LogAddRef(aPtr: Pointer; aNewRefCnt: nsrefcnt; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +procedure NS_LogRelease(aPtr: Pointer; aNewRefCnt: nsrefcnt; aTypeName: PAnsiChar); cdecl; +procedure NS_LogCtor(aPtr: Pointer; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +procedure NS_LogDtor(aPtr: Pointer; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +procedure NS_LogCOMPtrAddRef(aCOMPtr: Pointer; aObject: nsISupports); cdecl; +procedure NS_LogCOMPtrRelease(aCOMPtr: Pointer; aObject: nsISupports); cdecl; + +function NS_GetXPTCallStub(aIID: TGUID; aOuter: nsIXPTCProxy; out aStub): nsresult; cdecl; +procedure NS_DestroyXPTCallStub(aStub: nsISupports); cdecl; +function NS_InvokeByIndex(that: nsISupports; methodIndex: PRUint32; paramCount: PRUint32; params: PXPTCVariantArray): nsresult; cdecl; + +// GLUE Types +type + PGREVersionRange = ^TGREVersionRange; + TGREVersionRange = record + lower: PAnsiChar; + lowerInclusive: PRBool; + upper: PAnsiChar; + upperInclusive: PRBool; + end; + TGREVersionRangeArray = array [0..MaxInt div SizeOf(TGREVersionRange)-1] of TGREVersionRange; + + PGREProperty = ^TGREProperty; + TGREProperty = record + property_: PAnsiChar; + value: PAnsiChar; + end; + TGREPropertyArray = array [0..MaxInt div SizeOf(TGREProperty)-1] of TGREProperty; + + PNSFuncPtr = ^NSFuncPtr; + NSFuncPtr = procedure (); cdecl; + PDynamicFunctionLoad = ^TDynamicFunctionLoad; + TDynamicFunctionLoad = record + functionName: PAnsiChar; + function_: Pointer; + end; + PDynamicFunctionLoadArray = ^TDynamicFunctionLoadArray; + TDynamicFunctionLoadArray = array [ + 0..MaxInt div SizeOf(TDynamicFunctionLoad)-1 + ] of TDynamicFunctionLoad; + +// GLUE Functions +{$IFDEF MSWINDOWS} +function GRE_GetGREPathWithProperties( + aVersions: PGREVersionRange; + versionsLength: PRUint32; + aProperties: PGREProperty; + propertiesLength: PRUint32; + buf: PAnsiChar; buflen: PRUint32): nsresult; +{$ENDIF} + +function NS_CompareVersions(lhs, rhs: PAnsiChar): PRInt32; + +function XPCOMGlueStartup(xpcomFile: PAnsiChar): nsresult; +function XPCOMGlueShutdown: nsresult; +function XPCOMGlueLoadXULFunctions(aSymbols: PDynamicFunctionLoad): nsresult; + +function GRE_Startup: nsresult; +function GRE_Shutdown: nsresult; + + +// PChar functions +function NS_StrLen(const Str: PAnsiChar): Cardinal; overload; +function NS_StrCopy(Dest: PAnsiChar; const Source: PAnsiChar): PAnsiChar; overload; +function NS_StrLCopy(Dest: PAnsiChar; const Source: PAnsiChar; maxLen: Cardinal): PAnsiChar; overload; +function NS_StrCat(Dest: PAnsiChar; const Source: PAnsiChar): PAnsiChar; overload; +function NS_StrLCat(Dest: PAnsiChar; const Source: PAnsiChar; maxLen: Cardinal): PAnsiChar; overload; +function NS_StrComp(const Str1, Str2: PAnsiChar): Integer; overload; +function NS_StrRScan(const Str: PAnsiChar; Chr: AnsiChar): PAnsiChar; overload; + +function NS_StrLen(const Str: PWideChar): Cardinal; overload; +function NS_StrCopy(Dest: PWideChar; const Source: PWideChar): PWideChar; overload; +function NS_StrLCopy(Dest: PWideChar; const Source: PWideChar; maxLen: Cardinal): PWideChar; overload; +function NS_StrCat(Dest: PWideChar; const Source: PWideChar): PWideChar; overload; +function NS_StrLCat(Dest: PWideChar; const Source: PWideChar; maxLen: Cardinal): PWideChar; overload; +function NS_StrComp(const Str1, Str2: PWideChar): Integer; overload; +function NS_StrRScan(const Str: PWideChar; Chr: WideChar): PWideChar; overload; + +function NS_CurrentProcessDirectory(buf: PAnsiChar; bufLen: Cardinal): Boolean; + +type + TAnsiCharArray = array [0..High(Word) div SizeOf(AnsiChar)] of AnsiChar; + TMaxPathChar = array[0..MAX_PATH] of AnsiChar; + PDependentLib = ^TDependentLib; + TDependentLib = record + libHandle: HMODULE; + next: PDependentLib; + end; + + +type + nsIDirectoryServiceProvider_stdcall = interface(nsISupports) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; extdecl; + end; + + nsGREDirServiceProvider = class(TInterfacedObject, + nsIDirectoryServiceProvider_stdcall) + public + FPathEnvString: TMaxPathChar; + class function NewInstance: TObject; override; + procedure FreeInstance; override; + function GetFile(const prop: PAnsiChar; out persistent: PRBool; out AFile: nsIFile): nsresult; extdecl; + function GetGreDirectory(out AFile: nsILocalFile): nsresult; + end; + +procedure ZeroArray(out AArray; const ASize: SizeInt); + + +implementation + +uses + {$IFDEF MSWINDOWS} Windows, {$ENDIF} DynLibs, nsError, nsMemory,math; + +type +{$IFNDEF MSWINDOWS} + HINST = TLibHandle; +{$ENDIF} + XPCOMExitRoutine = function : Longword; extdecl; + + InitFunc = function(out servMgr: nsIServiceManager; binDir: nsIFile; provider: nsIDirectoryServiceProvider): Longword; cdecl; + ShutdownFunc = function (servMgr: nsIServiceManager): Longword; cdecl; + GetServiceManagerFunc = function (out servMgr: nsIServiceManager): Longword; cdecl; + GetComponentManagerFunc = function (out compMgr: nsIComponentManager): Longword; cdecl; + GetComponentRegistrarFunc = function (out compReg: nsIComponentRegistrar): Longword; cdecl; + GetMemoryManagerFunc = function (out memMgr: nsIMemory): Longword; cdecl; + NewLocalFileFunc = function (const path: nsAString; followLinks: LongBool; out newFile: nsILocalFile): Longword; cdecl; + NewNativeLocalFileFunc = function (const path: nsACString; followLinks: LongBool; out newFile: nsILocalFile): Longword; cdecl; + RegisterXPCOMExitRoutineFunc = function (exitRoutine: XPCOMExitRoutine; proproty: Longword): Longword; cdecl; + UnregisterXPCOMExitRoutineFunc = function (exitRoutine: XPCOMExitRoutine): Longword; cdecl; + // Added for Gecko 1.8 + AllocFunc = function (size: PRSize): Pointer; cdecl; + ReallocFunc = function (ptr: Pointer; size: PRSize): Pointer; cdecl; + FreeFunc = procedure (ptr: Pointer); cdecl; + Init3Func = function (out servMgr: nsIServiceManager; binDir: nsIFile; provider: nsIDirectoryServiceProvider; var staticComponents: nsStaticModuleInfoArray; componentCount: PRUint32): nsresult; cdecl; + + GetDebugFunc = function (out debug: nsIDebug): Longword; cdecl; + GetTraceRefcntFunc = function (out traceRefcnt: nsITraceRefcnt): Longword; cdecl; + // Added for Gecko 1.9 + DebugBreakFunc = procedure (aSeverity: PRUint32; aStr: PAnsiChar; aExpr: PAnsiChar; aFile: PAnsiChar; aLine: PRUint32); cdecl; + XPCOMVoidFunc = procedure (); cdecl; + LogAddRefFunc = procedure (var aPtr; refcnt: nsrefcnt; name: PAnsiChar; count: PRUint32); cdecl; + LogReleaseFunc = procedure (var aPtr; refcnt: nsrefcnt; name: PAnsiChar); cdecl; + LogCtorFunc = procedure (var aPtr; name: PAnsiChar; ident: PRUint32); cdecl; + LogCOMPtrFunc = procedure (var aPtr; aIntf: nsISupports); cdecl; + GetXPTCallStubFunc = function (constref guid: TGUID; proxy: nsIXPTCProxy; out aIntf): nsresult; cdecl; + DestroyXPTCallStubFunc = procedure (aStub: nsISupports); cdecl; + InvokeByIndexFunc = function (aStub: nsISupports; methodIndex: PRUint32; paramCount: PRUint32; params: PXPTCVariantArray): nsresult; cdecl; + CycleCollectorFunc = function (aStub: nsISupports): PRBool; cdecl; + + StringContainerInitFunc = function (var container: nsStringContainer): Longword; cdecl; + StringContainerFinishFunc = procedure (var container: nsStringContainer); cdecl; + StringGetDataFunc = function (const str: nsAString; out data: PWideChar; aTerminated: PLongBool): Longword; cdecl; + StringCloneDataFunc = function (const str: nsAString): PWideChar; cdecl; + StringSetDataFunc = procedure (str: nsAString; const data: PWideChar; length: Longword); cdecl; + StringSetDataRangeFunc = procedure (str: nsAString; aCutOffset, aCutLength: Longword; const data: PWideChar; length: Longword); cdecl; + StringCopyFunc = procedure (dst: nsAString; const src: nsAString); cdecl; + // Added for Gecko 1.8 + StringContainerInit2Func = function (var container: nsStringContainer; const str: PWideChar; offset, length: PRUint32): nsresult; cdecl; + StringGetMutableDataFunc = function (container: nsAString; aLength: PRUint32; out retval: PWideChar): PRUint32; cdecl; + // Added for Gecko 1.9 + StringSetIsVoidFunc = procedure (dst: nsAString; const isVoid: PRBool); cdecl; + StringGetIsVoidFunc = function (src: nsAString): PRBool; cdecl; + + CStringContainerInitFunc = function (var container: nsCStringContainer): Longword; cdecl; + CStringContainerFinishFunc = procedure (var container: nsCStringContainer); cdecl; + CStringGetDataFunc = function (const str: nsACString; out data: PAnsiChar; aTerminated: PLongBool): Longword; cdecl; + CStringCloneDataFunc = function (const str: nsACString): PAnsiChar; cdecl; + CStringSetDataFunc = procedure (str: nsACString; const data: PAnsiChar; length: Longword); cdecl; + CStringSetDataRangeFunc = procedure (str: nsACString; aCutOffset, aCutLength: Longword; const data: PAnsiChar; length: Longword); cdecl; + CStringCopyFunc = procedure (dst: nsACString; const src: nsACString); cdecl; + // Added for Gecko 1.8 + CStringContainerInit2Func = function (var container: nsCStringContainer; const str: PAnsiChar; offset, length: PRUint32): nsresult; cdecl; + CStringGetMutableDataFunc = function (container: nsACString; aLength: PRUint32; out retval: PAnsiChar): PRUint32; cdecl; + // Added for Gecko 1.9 + CStringSetIsVoidFunc = procedure (dst: nsACString; const isVoid: PRBool); cdecl; + CStringGetIsVoidFunc = function (src: nsACString): PRBool; cdecl; + + CStringToUTF16Func = function (const src: nsACString; encoding: nsSourceEncoding; dst: nsAString): Longword; cdecl; + UTF16ToCStringFunc = function (const src: nsAString; encoding: nsSourceEncoding; dst: nsACString): Longword; cdecl; + + XPCOMFunctions = record + version: Longword; + size: Longword; + + init: InitFunc; + shutdown: ShutdownFunc; + getServiceManager: GetServiceManagerFunc; + getComponentManager: GetComponentManagerFunc; + getComponentRegistrar: GetComponentRegistrarFunc; + getMemoryManager: GetMemoryManagerFunc; + newLocalFile: NewLocalFileFunc; + newNativeLocalFile: NewNativeLocalFileFunc; + + registerXPCOMExitRoutine: RegisterXPCOMExitRoutineFunc; + unregisterXPCOMExitRoutine: UnregisterXPCOMExitRoutineFunc; + + // Added for Gecko 1.5 + getDebug: GetDebugFunc; + getTraceRefCnt: GetTraceRefCntFunc; + + // Added for Gecko 1.7 + stringContainerInit: StringContainerInitFunc; + stringContainerFinish: StringContainerFinishFunc; + stringGetData: StringGetDataFunc; + stringSetData: StringSetDataFunc; + stringSetDataRange: StringSetDataRangeFunc; + stringCopy: StringCopyFunc; + cstringContainerInit: CStringContainerInitFunc; + cstringContainerFinish: CStringContainerFinishFunc; + cstringGetData: CStringGetDataFunc; + cstringSetData: CStringSetDataFunc; + cstringSetDataRange: CStringSetDataRangeFunc; + cstringCopy: CStringCopyFunc; + cstringToUTF16: CStringToUTF16Func; + UTF16ToCString: UTF16ToCStringFunc; + stringCloneData: StringCloneDataFunc; + cstringCloneData: CStringCloneDataFunc; + + // Added for Gecko 1.8 + alloc: AllocFunc; + realloc: ReallocFunc; + free: FreeFunc; + stringContainerInit2: StringContainerInit2Func; + cstringContainerInit2: CStringContainerInit2Func; + stringGetMutableData: StringGetMutableDataFunc; + cstringGetMutableData: CStringGetMutableDataFunc; + init3: Init3Func; + + // Added for Gecko 1.9 + debugBreak: DebugBreakFunc; + logInit: xpcomVoidFunc; + logTerm: xpcomVoidFunc; + logAddRef: LogAddRefFunc; + logRelease: LogReleaseFunc; + logCtor: LogCtorFunc; + logDtor: LogCtorFunc; + logCOMPtrAddRef: LogCOMPtrFunc; + logCOMPtrRelease: LogCOMPtrFunc; + getXPTCallStub: GetXPTCallStubFunc; + destroyXPTCallStub: DestroyXPTCallStubFunc; + invokeByIndex: InvokeByIndexFunc; + cycleSuspect: CycleCollectorFunc; + cycleForget: CycleCollectorFunc; + stringSetIsVoid: StringSetIsVoidFunc; + stringGetIsVoid: StringGetIsVoidFunc; + cstringSetIsVoid: CStringSetIsVoidFunc; + cstringGetIsVoid: CStringGetIsVoidFunc; + end; + + GetFrozenFunctionsFunc = function(out enrtyPoints: XPCOMFunctions; libraryPath: PAnsiChar): Longword; cdecl; + +var + xpcomFunc: XPCOMFunctions; + +function NS_InitXPCOM2(out servMgr: nsIServiceManager; + binDir: nsIFile; + appFileLocationProvider: nsIDirectoryServiceProvider): nsresult; +begin + if Assigned(xpcomFunc.init) then + Result := xpcomFunc.init(servMgr, binDir, appFileLocationProvider) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_ShutdownXPCOM(servMgr: nsIServiceManager): nsresult; +begin + if Assigned(xpcomFunc.shutdown) then + Result := xpcomFunc.shutdown(servMgr) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetServiceManager(out servMgr: nsIServiceManager): nsresult; +begin + if Assigned(xpcomFunc.getServiceManager) then + Result := nsresult(xpcomFunc.getServiceManager(servMgr)) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetComponentManager(out compMgr: nsIComponentManager): nsresult; +begin + if Assigned(xpcomFunc.getComponentManager) then + Result := xpcomFunc.getComponentManager(compMgr) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetComponentRegistrar(out compReg: nsIComponentRegistrar): nsresult; +begin + if Assigned(xpcomFunc.getComponentRegistrar) then + Result := xpcomFunc.getComponentRegistrar(compReg) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetMemoryManager(out memMgr: nsIMemory): nsresult; +begin + if Assigned(xpcomFunc.getMemoryManager) then + Result := xpcomFunc.getMemoryManager(memMgr) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_NewLocalFile(const path: nsAString; + followLinks: PRBool; + out newFile: nsILocalFile): nsresult; +begin + if Assigned(xpcomFunc.newLocalFile) then + Result := nsresult(xpcomFunc.newLocalFile(path, followLinks, newFile)) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_NewNativeLocalFile(const path: nsACString; + followLinks: PRBool; + out newFile: nsILocalFile): nsresult; +begin + if Assigned(xpcomFunc.newNativeLocalFile) then + Result := nsresult(xpcomFunc.newNativeLocalFile(path, followLinks, newFile)) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_RegisterXPCOMExitRoutine(exitRoutine: XPCOMExitRoutine; + priority: Longword): nsresult; +begin + if Assigned(xpcomFunc.registerXPCOMExitRoutine) then + Result := nsresult(xpcomFunc.registerXPCOMExitRoutine(exitRoutine, priority)) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_UnregisterXPCOMExitRoutine(exitRoutine: XPCOMExitRoutine): nsresult; +begin + if Assigned(xpcomFunc.unregisterXPCOMExitRoutine) then + Result := nsresult(xpcomFunc.unregisterXPCOMExitRoutine(exitRoutine)) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetDebug(out debug: nsIDebug): nsresult; +begin + if Assigned(xpcomFunc.getDebug) then + Result := xpcomFunc.getDebug(debug) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_GetTraceRefcnt(out traceRefcnt: nsITraceRefcnt): nsresult; +begin + if Assigned(xpcomFunc.getTraceRefCnt) then + Result := xpcomFunc.getTraceRefCnt(traceRefcnt) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_StringContainerInit(var aContainer: nsStringContainer): nsresult; +begin + if Assigned(xpcomFunc.stringContainerInit) then + Result := xpcomFunc.stringContainerInit(aContainer) + else + Result := NS_ERROR_FAILURE; +end; + +procedure NS_StringContainerFinish(var aContainer: nsStringContainer); +begin + if Assigned(xpcomFunc.stringContainerFinish) then + xpcomFunc.stringContainerFinish(aContainer); +end; + +function NS_StringGetData(const aStr: nsAString; out aData: PWideChar; aTerminated: PLongBool): nsresult; +begin + if Assigned(xpcomFunc.stringGetData) then + Result := xpcomFunc.stringGetData(aStr, aData, aTerminated) + else + Result := 0; +end; + +procedure NS_StringSetData(aStr: nsAString; const aData: PWideChar; aDataLength: Longword); +begin + if Assigned(xpcomFunc.stringSetData) then + xpcomFunc.stringSetData(aStr, aData, aDataLength); +end; + +procedure NS_StringSetDataRange(aStr: nsAString; aCutOffset, aCutLength: Longword; const aData: PWideChar; aDataLength: Longword); +begin + if Assigned(xpcomFunc.stringSetDataRange) then + xpcomFunc.stringSetDataRange(aStr, aCutOffset, aCutLength, aData, aDataLength); +end; + +procedure NS_StringCopy(aDestStr: nsAString; const aSrcStr: nsAString); +begin + if Assigned(xpcomFunc.stringCopy) then + xpcomFunc.stringCopy(aDestStr, aSrcStr); +end; + +procedure NS_StringAppendData(aStr: nsAString; const aData: PWideChar; aDataLength: Longword); +begin + NS_StringSetDataRange(aStr, High(Longword), 0, aData, aDataLength); +end; + +procedure NS_StringInsertData(aStr: nsAString; aOffSet: Longword; const aData: PWideChar; aDataLength: Longword); +begin + NS_StringSetDataRange(aStr, aOffset, 0, aData, aDataLength); +end; + +procedure NS_StringCutData(aStr: nsAString; aCutOffset, aCutLength: Longword); +begin + NS_StringSetDataRange(aStr, aCutOffset, aCutLength, nil, 0); +end; + +function NS_CStringContainerInit(var aContainer: nsCStringContainer): nsresult; +begin + if Assigned(xpcomFunc.cstringContainerInit) then + Result := xpcomFunc.cstringContainerInit(aContainer) + else + Result := NS_ERROR_FAILURE; +end; + +procedure NS_CStringContainerFinish(var aContainer: nsCStringContainer); +begin + if Assigned(xpcomFunc.cstringContainerFinish) then + xpcomFunc.cstringContainerFinish(aContainer); +end; + +function NS_CStringGetData(const aStr: nsACString; out aData: PAnsiChar; aTerminated: PLongBool): Longword; +begin + if Assigned(xpcomFunc.cstringGetData) then + Result := xpcomFunc.cstringGetData(aStr, aData, aTerminated) + else + Result := 0; +end; + +procedure NS_CStringSetData(aStr: nsACString; const aData: PAnsiChar; aDataLength: Longword); +begin + if Assigned(xpcomFunc.cstringSetData) then + xpcomFunc.cstringSetData(aStr, aData, aDataLength); +end; + +procedure NS_CStringSetDataRange(aStr: nsACString; aCutOffset, aCutLength: Longword; const aData: PAnsiChar; aDataLength: Longword); +begin + if Assigned(xpcomFunc.cstringSetDataRange) then + xpcomFunc.cstringSetDataRange(aStr, aCutOffset, aCutLength, aData, aDataLength); +end; + +procedure NS_CStringCopy(aDestStr: nsACString; const aSrcStr: nsACString); +begin + if Assigned(xpcomFunc.cstringCopy) then + xpcomFunc.cstringCopy(aDestStr, aSrcStr); +end; + +procedure NS_CStringAppendData(aStr: nsACString; const aData: PAnsiChar; aDataLength: Longword); +begin + NS_CStringSetDataRange(aStr, High(Longword), 0, aData, aDataLength); +end; + +procedure NS_CStringInsertData(aStr: nsACString; aOffSet: Longword; const aData: PAnsiChar; aDataLength: Longword); +begin + NS_CStringSetDataRange(aStr, aOffset, 0, aData, aDataLength); +end; + +procedure NS_CStringCutData(aStr: nsACString; aCutOffset, aCutLength: Longword); +begin + NS_CStringSetDataRange(aStr, aCutOffset, aCutLength, nil, 0); +end; + +function NS_CStringToUTF16(const aSource: nsACString; aSrcEncoding: nsSourceEncoding; aDest: nsAString): nsresult; +begin + if Assigned(xpcomFunc.cstringToUTF16) then + Result := xpcomFunc.cstringToUTF16(aSource, aSrcEncoding, aDest) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_UTF16ToCString(const aSource: nsAString; aSrcEncoding: nsSourceEncoding; aDest: nsACString): nsresult; +begin + if Assigned(xpcomFunc.UTF16ToCString) then + Result := xpcomFunc.UTF16ToCString(aSource, aSrcEncoding, aDest) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_StringCloneData(const aStr: nsAString): PWideChar; +begin + if Assigned(xpcomFunc.stringCloneData) then + Result := xpcomFunc.stringCloneData(aStr) + else + Result := nil; +end; + +function NS_CStringCloneData(const aStr: nsACString): PAnsiChar; +begin + if Assigned(xpcomFunc.cstringCloneData) then + Result := xpcomFunc.cstringCloneData(aStr) + else + Result := nil; +end; + +// Added for Gecko 1.8 +function NS_Alloc(size: PRSize): Pointer; cdecl; +begin + if Assigned(xpcomFunc.alloc) then + Result := xpcomFunc.alloc(size) + else + Result := nil; +end; + +function NS_Realloc(ptr: Pointer; size: PRSize): Pointer; cdecl; +begin + if Assigned(xpcomFunc.realloc) then + Result := xpcomFunc.realloc(ptr, size) + else + Result := nil; +end; + +procedure NS_Free(ptr: Pointer); cdecl; +begin + if Assigned(xpcomFunc.free) then + xpcomFunc.free(ptr); +end; + +function NS_InitXPCOM3(out servMgr: nsIServiceManager; binDir: nsIFile; appFileLocationProvider: nsIDirectoryServiceProvider; var staticComponents: nsStaticModuleInfoArray; componentCount: PRUint32): nsresult; cdecl; +//FPC port: added const to staticComponents and changed componentCount from +// PRInt32 to PRUInt32 so they match init3 - wouldn't assemble otherwise on PowerPC. +begin + if Assigned(xpcomFunc.init3) then + Result := xpcomFunc.init3(servMgr, binDir, appFileLocationProvider, staticComponents, componentCount) + else + Result := NS_ERROR_FAILURE; +end; + +function NS_StringContainerInit2(var aContainer: nsStringContainer; const aStr: PWideChar; aOffset, aLength: PRUint32): nsresult; cdecl; +begin + if Assigned(xpcomFunc.stringContainerInit2) then + Result := xpcomFunc.stringContainerInit2(aContainer, aStr, aOffset, aLength) + else + Result := NS_ERROR_FAILURE; +end; + +procedure NS_StringSetIsVoid(aStr: nsAString; const aIsVoid: PRBool); cdecl; +begin + if Assigned(xpcomFunc.stringSetIsVoid) then + xpcomFunc.stringSetIsVoid(aStr, aIsVoid); +end; + +function NS_StringGetIsVoid(const aStr: nsAString): PRBool; cdecl; +begin + if Assigned(xpcomFunc.stringGetIsVoid) then + Result := xpcomFunc.stringGetIsVoid(aStr) + else + Result := false; +end; + +function NS_CStringContainerInit2(var aContainer: nsCStringContainer; const aStr: PAnsiChar; aOffset, aLength: PRUint32): nsresult; cdecl; +begin + if Assigned(xpcomFunc.cstringContainerInit2) then + Result := xpcomFunc.cstringContainerInit2(aContainer, aStr, aOffset, aLength) + else + Result := NS_ERROR_FAILURE; +end; + +procedure NS_CStringSetIsVoid(aStr: nsACString; const aIsVoid: PRBool); cdecl; +begin + if Assigned(xpcomFunc.cstringSetIsVoid) then + xpcomFunc.cstringSetIsVoid(aStr, aIsVoid); +end; + +function NS_CStringGetIsVoid(const aStr: nsACString): PRBool; cdecl; +begin + if Assigned(xpcomFunc.cstringGetIsVoid) then + Result := xpcomFunc.cstringGetIsVoid(aStr) + else + Result := false; +end; + +// Added for Gecko 1.9 +procedure NS_DebugBreak(aSeverity: PRUint32; aStr: PAnsiChar; aExpr: PAnsiChar; aFile: PAnsiChar; aLine: PRUint32); cdecl; +begin + if Assigned(xpcomFunc.debugBreak) then + xpcomFunc.debugBreak(aSeverity, aStr, aExpr, aFile, aLine); +end; + +procedure NS_LogInit(); cdecl; +begin + if Assigned(xpcomFunc.logInit) then + xpcomFunc.logInit; +end; + +procedure NS_LogTerm(); cdecl; +begin + if Assigned(xpcomFunc.logTerm) then + xpcomFunc.logTerm; +end; + +procedure NS_LogAddRef(aPtr: Pointer; aNewRefCnt: nsrefcnt; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +begin + if Assigned(xpcomFunc.logAddRef) then + xpcomFunc.logAddRef(aPtr, aNewRefCnt, aTypeName, aInstanceSize); +end; + +procedure NS_LogRelease(aPtr: Pointer; aNewRefCnt: nsrefcnt; aTypeName: PAnsiChar); cdecl; +begin + if Assigned(xpcomFunc.logRelease) then + xpcomFunc.logRelease(aPtr, aNewRefCnt, aTypeName); +end; + +procedure NS_LogCtor(aPtr: Pointer; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +begin + if Assigned(xpcomFunc.logCtor) then + xpcomFunc.logCtor(aPtr, aTypeName, aInstanceSize); +end; + +procedure NS_LogDtor(aPtr: Pointer; aTypeName: PAnsiChar; aInstanceSize: PRUint32); cdecl; +begin + if Assigned(xpcomFunc.logDtor) then + xpcomFunc.logDtor(aPtr, aTypeName, aInstanceSize); +end; + +procedure NS_LogCOMPtrAddRef(aCOMPtr: Pointer; aObject: nsISupports); cdecl; +begin + if Assigned(xpcomFunc.logCOMPtrAddRef) then + xpcomFunc.logCOMPtrAddRef(aCOMPtr, aObject); +end; + +procedure NS_LogCOMPtrRelease(aCOMPtr: Pointer; aObject: nsISupports); cdecl; +begin + if Assigned(xpcomFunc.logCOMPtrRelease) then + xpcomFunc.logCOMPtrRelease(aCOMPtr, aObject); +end; + + +function NS_GetXPTCallStub(aIID: TGUID; aOuter: nsIXPTCProxy; out aStub): nsresult; cdecl; +begin + if Assigned(xpcomFunc.getXPTCallStub) then + Result := xpcomFunc.getXPTCallStub(aIID, aOuter, aStub) + else + Result := NS_ERROR_FAILURE; +end; + +procedure NS_DestroyXPTCallStub(aStub: nsISupports); cdecl; +begin + if Assigned(xpcomFunc.destroyXPTCallStub) then + xpcomFunc.destroyXPTCallStub(aStub); +end; + +function NS_InvokeByIndex(that: nsISupports; methodIndex: PRUint32; paramCount: PRUint32; params: PXPTCVariantArray): nsresult; cdecl; +begin + if Assigned(xpcomFunc.invokeByIndex) then + Result := xpcomFunc.invokeByIndex(that, methodIndex, paramCount, params) + else + Result := NS_ERROR_FAILURE; +end; + +function CheckVersion(toCheck: PAnsiChar; + const versions: PGREVersionRangeArray; + versionsLength: PRUint32): PRBool; forward; + +{$IFDEF MSWINDOWS} +function GRE_GetPathFromRegKey( + aRegKey: HKEY; + versions: PGREVersionRangeArray; + versionsLength: PRUint32; + properties: PGREPropertyArray; + propertiesLength: PRUint32; + buf: PAnsiChar; buflen: PRUint32): PRBool; forward; +{$ENDIF} + +function GRE_GetGREPathWithProperties( + aVersions: PGREVersionRange; + versionsLength: PRUint32; + aProperties: PGREProperty; + propertiesLength: PRUint32; + buf: PAnsiChar; buflen: PRUint32): nsresult; +var + env: string; +{$IFDEF MSWINDOWS} + hRegKey: HKEY; +{$ENDIF} + ok: PRBool; + versions: PGREVersionRangeArray; + properties: PGREPropertyArray; + GeckoVersion: String; + +{$IFDEF MSWINDOWS} + function GRE_FireFox(): string; + var + Reg: TRegistry; + FF: string; + begin + Reg:=TRegistry.Create(KEY_ALL_ACCESS); + Reg.RootKey:=HKEY_LOCAL_MACHINE; + if Reg.OpenKeyReadOnly(GRE_FIREFOX_BASE_WIN_REG_LOC) then begin + FF:=Reg.ReadString('CurrentVersion'); + FF:=LeftStr(FF,Pos(' ',FF)-1); + Reg.CloseKey; + FF:=format('%s %s',[GRE_FIREFOX_BASE_WIN_REG_LOC,FF]); + if Reg.OpenKeyReadOnly(FF) then begin + GeckoVersion:=Reg.ReadString('GeckoVer'); + if GeckoVersion<>'' then begin + Reg.CloseKey; + FF:=FF+'\bin'; + if Reg.OpenKeyReadOnly(FF) then begin + Result:=Reg.ReadString('PathToExe'); + Result:=ExtractFilePath(Result)+XPCOM_DLL; + end; + end; + end; + end; + Reg.CloseKey; + Reg.Free; + end; +{$ENDIF} + +begin + versions := PGREVersionRangeArray(aVersions); + properties := PGREPropertyArray(aProperties); +(* + env := GetEnvironmentVariable('GRE_HOME'); + if Assigned(env) and (env[0] <>#0) then + begin + p[0] := #0; + safe_strncat(p, env, MAX_PATH); + safe_strncat(p, '\xpcom.dll', MAX_PATH); + + end; + *) + + env:=sysutils.GetEnvironmentVariable('USE_LOCAL_GRE'); + if env<>''then + begin + strlcopy(Buf,pchar(env+PathDelim+XPCOM_DLL),buflen); + Result := NS_OK; + Exit; + end; + + {$IFDEF MSWINDOWS} + //Check for default mozilla GRE + hRegKey := 0; + if RegOpenKeyEx(HKEY_CURRENT_USER, GRE_MOZILLA_WIN_REG_LOC, 0, + KEY_READ, hRegKey) = ERROR_SUCCESS then + begin + ok := GRE_GetPathFromRegKey(hRegkey, + versions, versionsLength, + properties, propertiesLength, + buf, buflen); + RegCloseKey(hRegKey); + if ok then + begin + Result := NS_OK; + Exit; + end; + end; + + if RegOpenKeyEx(HKEY_LOCAL_MACHINE, GRE_MOZILLA_WIN_REG_LOC, 0, + KEY_READ, hRegKey) = ERROR_SUCCESS then + begin + ok := GRE_GetPathFromRegKey(hRegKey, + versions, versionsLength, + properties, propertiesLength, + buf, buflen); + RegCloseKey(hRegKey); + if ok then + begin + Result := NS_OK; + Exit; + end; + end; + //Check for Firefox GRE + (*GrePath:=GRE_FireFox(); + if GrePath<>'' then begin + strlcopy(buf,pchar(GrePath),bufLen); + Result:=NS_OK; + exit; + end;*) + {$ENDIF} + Result := NS_ERROR_FAILURE; +end; + +function CheckVersion(toCheck: PAnsiChar; + const versions: PGREVersionRangeArray; + versionsLength: PRUint32): PRBool; +var + i: DWORD; + c: PRInt32; +begin + Result := True; + if versionsLength=0 then + Exit; + for i:=0 to versionsLength-1 do + begin + c := NS_CompareVersions(toCheck, versions[i].lower); + if c < 0 then + Continue; + + if (c=0) and not versions[i].lowerInclusive then + Continue; + + c := NS_CompareVersions(toCheck, versions[i].upper); + if c > 0 then + Continue; + + if (c=0) and not versions[i].upperInclusive then + Continue; + + Exit; + end; + Result := False; +end; + +{$IFDEF MSWINDOWS} +function CopyWithEnvExpansion( + aDest: PAnsiChar; + aSource: PAnsiChar; + aBufLen: PRUint32; + aType: DWORD): PRBool; +begin + Result := False; + case aType of + REG_SZ: + begin + if NS_StrLen(aSource)>=aBufLen then + Exit; + NS_StrCopy(aDest, aSource); + Result := True; + end; + REG_EXPAND_SZ: + begin + if ExpandEnvironmentStringsA(aSource, aDest, aBufLen) <= aBufLen then + Result := True; + end; + end; +end; + +function GRE_GetPathFromRegKey( + aRegKey: HKEY; + versions: PGREVersionRangeArray; + versionsLength: PRUint32; + properties: PGREPropertyArray; + propertiesLength: PRUint32; + buf: PAnsiChar; buflen: PRUint32): PRBool; +var + i, j: DWORD; + name: array [0..MAX_PATH] of AnsiChar; + nameLen: DWORD; + subKey: HKEY; + ver: array[0..40] of AnsiChar; + verLen: DWORD; + ok: PRBool; + propbuf: array[0..MAX_PATH] of AnsiChar; + proplen: DWORD; + pathtype: DWORD; +begin + i := 0; + while True do + begin + nameLen := MAX_PATH; + if RegEnumKeyExA(aRegKey, i, PAnsiChar(@name), nameLen, nil, nil, nil, nil) <> + ERROR_SUCCESS then + begin + break; + end; + + subKey := 0; + if RegOpenKeyExA(aRegKey, name, 0, KEY_QUERY_VALUE, subKey) <> + ERROR_SUCCESS then + begin + Continue; + end; + + ok := False; + verLen := SizeOf(ver) div SizeOf(ver[0]); + if (RegQueryValueExA(subKey, 'Version', nil, nil, + PByte(@ver), @VerLen)=ERROR_SUCCESS) and + CheckVersion(ver, versions, versionsLength) then + begin + ok := True; + if propertiesLength>0 then + begin + for j:=0 to propertiesLength-1 do + begin + proplen := Sizeof(propbuf); + if (RegQueryValueExA(subKey, properties[i].property_, nil, nil, + PByte(@propbuf), @proplen)<>ERROR_SUCCESS) or + (NS_StrComp(propbuf, properties[i].value)<>0) then + begin + ok := False; + end; + end; + end; + + proplen := SizeOf(propbuf); + if ok and + ((RegQueryValueExA(subKey, 'GreHome', nil, @pathtype, + PByte(@propbuf), @proplen)<>ERROR_SUCCESS) or + (propbuf[0] = #0) or + not CopyWithEnvExpansion(Buf, propbuf, BufLen, pathtype)) then + begin + ok := False; + end else + begin + NS_StrLCat(Buf, DirectorySeparator+XPCOM_DLL, BufLen); + end; + end; + RegCloseKey(subKey); + if ok then + begin + Result := ok; + Exit; + end; + Inc(i); + end; + buf[0] := #0; + Result := false; +end; +{$ENDIF} + +var + sDependentLibs: PDependentLib = nil; + sXULLibrary: HINST = 0; + +type + TDependentLibsCallback = procedure (aDependentLib: PAnsiChar); + +function XPCOMGlueLoad(xpcomFile: PAnsiChar): GetFrozenFunctionsFunc; forward; +procedure XPCOMGlueUnload(); forward; +function fullpath(absPath, relPath: PAnsiChar; maxLength: PRUint32): PAnsiChar; forward; + +const + BUFFEREDFILE_BUFSIZE = 256; +type + TBufferedFile = record + fs: TFileStream; + buf: array [0..BUFFEREDFILE_BUFSIZE-1] of AnsiChar; + bufPos: Integer; + bufMax: Integer; + end; + +function BufferedFile_Open(name: PAnsiChar; out ret: TBufferedFile): Boolean; +begin + result := false; + try + ret.fs:=TFileStream.Create(name,fmOpenRead, fmShareDenyWrite); + result:=true; + ret.bufPos := 0; + ret.bufMax := -1; + except + ret.fs:=nil; + end; +end; + +procedure BufferedFile_Close(var aFile: TBufferedFile); +begin + afile.fs.Free; + afile.fs:=nil; + aFile.bufPos := 0; + aFile.bufMax := -1; +end; + +procedure BufferedFile_ReadBuffer(var aFile: TBufferedFile); +var + readSize: DWORD; +begin + readSize:=aFile.fs.Read(aFile.buf, BUFFEREDFILE_BUFSIZE); + begin + aFile.bufPos := 0; + aFile.bufMax := readSize; + end; +end; + +function BufferedFile_GetString(dest: PAnsiChar; destSize: PRUint32; var buf: TBufferedFile): PRInt32; +var + i: Cardinal; + c: AnsiChar; +begin + i := 0; + c := #0; + while (i=buf.bufMax then + BufferedFile_ReadBuffer(buf); + if buf.bufPos>=buf.bufMax then + Break; + + c := buf.buf[buf.bufPos]; + dest[i] := c; + Inc(i); + Inc(buf.bufPos); + if (c=#13) or (c=#10) then + begin + dest[i] := #10; + Break; + end; + end; + if (c=#13) and (i=buf.bufMax then + BufferedFile_ReadBuffer(buf); + if buf.bufPos0 do + begin + l := NS_StrLen(buffer); + if (buffer[0] = '#') or (l=0) then + Continue; + if l>0 then + if buffer[l-1] in [#10, #13] then + buffer[l-1]:= #0; + if l>1 then + if buffer[l-2] in [#10, #13] then + buffer[l-2]:= #0; + NS_StrCopy(buffer2, xpcomdir); + NS_StrLCat(buffer2, DirectorySeparator, MAX_PATH); + NS_StrLCat(buffer2, buffer, MAX_PATH); + + cb(buffer2); + end; + finally + BufferedFile_Close(f); + end; +end; + +procedure AppendDependentLib(libHandle: HINST); +var + d: PDependentLib; +begin + d := GetMemory(sizeof(TDependentLib)); + if not Assigned(d) then Exit; + d.next := sDependentLibs; + d.libHandle := libHandle; + + sDependentLibs := d; +end; + +procedure ReadDependentCB(aDependentLib: PAnsiChar); +var + h: HINST; + OldDir: string; + NewDir: string; +begin + //Changes directory temporaly to resolve automatic modules loading + //in a crossplatform way. + OldDir:=GetCurrentDir; + NewDir:=ExtractFilePath(aDependentLib); + SetCurrentDir(NewDir); + h := LoadLibrary(aDependentLib); + // On Linux (Fedora) at least, some dependencies are not in the xulrunner path, + // but in the normal-library location. So also try to load the dependency without + // the path. + if h = 0 then + h := LoadLibrary(ExtractFileName(aDependentLib)); + SetCurrentDir(OldDir); + if h <> 0 then + AppendDependentLib(h) + else + Raise Exception.Create('Missing Gecko runtime library: '+aDependentLib); +end; + +function XPCOMGlueLoad(xpcomFile: PAnsiChar): GetFrozenFunctionsFunc; +var + xpcomDir: TMaxPathChar; + idx: PRInt32; + h: HINST; +begin + if (xpcomFile[0]='.') and (xpcomFile[1]=#0) then + begin + xpcomFile := XPCOM_DLL; + end else + begin + fullpath(xpcomDir, xpcomFile, sizeof(xpcomDir)); + idx := NS_StrLen(xpcomDir); + while (idx>=0) and not (xpcomDir[idx] in ['\','/']) do Dec(idx); + if idx>=0 then + begin + xpcomDir[idx] := #0; + XPCOMGlueLoadDependentLibs(xpcomDir, ReadDependentCB); + NS_StrLCat(xpcomdir, DirectorySeparator+xul_dll, sizeof(xpcomdir)); + sXULLibrary := LoadLibrary(xpcomdir); + end; + end; + + h := LoadLibrary(xpcomFile); + + if h <> 0 then + begin + AppendDependentLib(h); + Result := GetFrozenFunctionsFunc(GetProcAddress( h, 'NS_GetFrozenFunctions' )); + end + else + Result := nil; + + if not Assigned(Result) then + XPCOMGlueUnload(); +end; + +procedure XPCOMGlueUnload(); +var + tmp : PDependentLib; +begin + while Assigned(sDependentLibs) do + begin + FreeLibrary(sDependentLibs.libHandle); + tmp := sDependentLibs; + sDependentLibs := sDependentLibs.next; + FreeMemory(tmp); + end; + + if sXULLibrary<>0 then + begin + FreeLibrary(sXULLibrary); + sXULLibrary := 0; + end; +end; + +function XPCOMGlueStartup(xpcomFile: PAnsiChar): nsresult; +const + XPCOM_GLUE_VERSION = 1; +var + func: GetFrozenFunctionsFunc; +begin + Result := NS_ERROR_FAILURE; + + xpcomFunc.version := XPCOM_GLUE_VERSION; + xpcomFunc.size := SizeOf(XPCOMFunctions); + + if not Assigned(xpcomFile) then + xpcomFile := XPCOM_DLL; + + func := XPCOMGlueLoad(xpcomFile); + + if not Assigned(func) then + Exit; + + Result := func(xpcomFunc, xpcomFile); + + if NS_FAILED(Result) then + XPCOMGlueUnload(); +end; + +function XPCOMGlueShutdown: nsresult; +begin + XPCOMGlueUnload(); + + FillChar(xpcomFunc, SizeOf(xpcomFunc), Byte(0)); + + Result := NS_OK; +end; + +function XPCOMGlueLoadXULFunctions(aSymbols: PDynamicFunctionLoad): nsresult; +var + i: Integer; + symbols: PDynamicFunctionLoadArray; +begin + symbols := PDynamicFunctionLoadArray(aSymbols); + + if sXULLibrary=0 then + begin + Result := NS_ERROR_NOT_INITIALIZED; + Exit; + end; + + Result := NS_OK; + i := 0; + while Assigned(symbols[i].functionName) do + begin + + PPointer(symbols[i].function_)^ := + GetProcAddress(sXULLibrary, symbols[i].functionName); + if not Assigned(PPointer(symbols[i].function_)^) then + Result := NS_ERROR_LOSS_OF_SIGNIFICANT_DATA; + Inc(i); + end; +end; + +type + TVersionPart = record + numA: PRInt32; + strB: PAnsiChar; + strBLen: PRUint32; + numC: PRInt32; + extraD: PAnsiChar; + extraDlen: PRUint32; + end; + + TGREVersion = record + versionStr: PAnsiChar; + major: TVersionPart; + minor: TVersionPart; + revision: TVersionPart; + end; + +function IsNumber(AChar: AnsiChar): Boolean; +begin + Result := AChar in ['0'..'9']; +end; + +function GetGREVersion(verStr: PAnsiChar): TGREVersion; +const + nullStr: PAnsiChar = ''; + pre = 'pre'; + preLen = Length(pre); + preStr: PAnsiChar = pre; +var + idx: Integer; + workInt: Integer; + vers: array[0..2] of TVersionPart; + //verStrPtr: PAnsiCharArray; + i, j: Integer; + dot: Integer; +begin + idx := 0; + ZeroArray(vers, sizeof(vers)); + for i:=0 to 2 do + begin + dot := idx; + while (verStr[dot]<>#0) and (verStr[dot]<>'.') do Inc(dot); + + if (dot-idx=1) and (verStr[idx]='*') then + begin + vers[i].numA := MaxInt; + vers[i].strB := nullStr; + end else + begin + workInt := 0; + while IsNumber(verStr[idx]) do + begin + workInt := workInt * 10 + (Ord(verStr[idx]) - Ord('0')); + Inc(idx); + end; + vers[i].numA := workInt; + vers[i].strB := verStr+idx; + end; + + if vers[i].strB[0]=#0 then + begin + vers[i].strB := nil; + vers[i].strBlen := 0; + end else + if vers[i].strB[0]='+' then + begin + Inc(vers[i].numA); + vers[i].strB := preStr; + vers[i].strBlen := preLen; + end else + begin + j := idx; + while (j0) and (rhsLen>0) do + begin + Result := Ord(lhs[0]) - Ord(rhs[0]); + if Result<>0 then Exit; + Inc(lhs); + Dec(lhsLen); + Inc(rhs); + Dec(rhsLen); + end; + Result := lhsLen - rhsLen; +end; + +function GREVersionPartCompare(const lhs, rhs: TVersionPart): Integer; +begin + Result := lhs.numA - rhs.numA; + if Result<>0 then Exit; + Result := strnncomp(lhs.strB, lhs.strBLen, rhs.strB, rhs.strBLen); + if Result <>0 then Exit; + Result := lhs.numC - rhs.numC; + if Result<>0 then Exit; + Result := strnncomp(lhs.extraD, lhs.extraDLen, rhs.extraD, rhs.extraDLen); +end; + +function GREVersionCompare(const lhs, rhs: TGREVersion): Integer; +begin + Result := GREVersionPartCompare(lhs.major, rhs.major); + if Result<>0 then Exit; + Result := GREVersionPartCompare(lhs.minor, rhs.minor); + if Result<>0 then Exit; + Result := GREVersionPartCompare(lhs.revision, rhs.revision); +end; + +function NS_CompareVersions(lhs, rhs: PAnsiChar): PRInt32; +var + lhsVer, rhsVer: TGREVersion; +begin + lhsVer := GetGREVersion(lhs); + rhsVer := GetGREVersion(rhs); + Result := GREVersionCompare(lhsVer, rhsVer); +end; + +{$IFDEF GECKO_EXPERIMENTAL} +// あるファイルがGREの必要バ[ジョンに達しているかを調べるB +function GetPathFromConfigDir(dirname: PAnsiChar; buf: PAnsiChar): Boolean; +begin + //TODO 1: GetPathFromConfigDir の実装 + Result := False; +end; + +function GetPathFromConfigFile(const filename: PAnsiChar; buf: PAnsiChar): Boolean; +begin + //TODO 1: GetPathFromConfigFile の実装 + Result := False; +end; +{$ENDIF GECKO_EXPERIMENTAL} + +function IsXpcomDll(const filename: PAnsiChar): Boolean; +var + module: HMODULE; + proc: Pointer; +begin + Result := False; + module := LoadLibrary(filename); + if module=0 then Exit; + + proc := GetProcAddress(module, 'NS_GetFrozenFunctions'); + if Assigned(proc) then Result := True; + + FreeLibrary(module); +end; + +{$IFDEF MSWINDOWS} +function CheckGeckoVersion(path: PAnsiChar; const reqVer: TGREVersion): Boolean; +const + BUFSIZE = 4096; +var + buf: array[0..BUFSIZE-1] of Char; + fileVer: PAnsiChar; + dwSize: DWORD; + dw: DWORD; + greVer: TGREVersion; +begin + Result := False; + dw:=1; //Non zero + dwSize := GetFileVersionInfoSizeA(path, dw); + if (dwSize<=0) or (dwSize>BUFSIZE) then Exit; + + Result := GetFileVersionInfoA(path, 0, dwSize, @buf); + if not Result then Exit; + + // バ[ジョン報の言語IDは決め打ち + fileVer:=nil; + Result := VerQueryValueA(@buf, '\StringFileInfo\000004b0\FileVersion', Pointer(fileVer), dw); + if not Result then Exit; + + greVer := GetGREVersion(fileVer); + + if GREVersionCompare(greVer, reqVer)>=0 then Result := True; +end; + +function GetLatestGreFromReg(regBase: HKEY; const reqVer: TGREVersion; + grePath: PAnsiChar; var greVer: TGREVersion): Boolean; +var + curKey: HKEY = 0; + dwSize: DWORD; + i: Integer; + keyName: TMaxPathChar; + rv: HRESULT; + path, dllPath: TMaxPathChar; + ver: TGREVersion; +begin + Result := False; + i := 0; + dwSize := MAX_PATH; + rv := RegEnumKeyExA(regBase, i, keyName, dwSize, nil, nil, nil, nil); + while rv=0 do + begin + rv := RegOpenKeyA(regBase, PAnsiChar(@keyName), curKey); + if rv=0 then + begin + dwSize := MAX_PATH; + rv := RegQueryValueExA(curKey, 'GreHome', nil, nil, PByte(@path), @dwSize); + if rv=0 then + begin + ver := GetGREVersion(keyName); + if (GREVersionCompare(ver, reqVer)>=0) and + (GREVersionCompare(ver, greVer)>=0) then + begin + dllPath := path; + NS_StrCat(dllPath, DirectorySeparator+XPCOM_DLL); + //if IsXpcomDll(dllPath) then +// if CheckGeckoVersion(dllPath, reqVer) and +// IsXpcomDll(@dllPath) then + if CheckGeckoVersion(dllPath, reqVer) then + begin + NS_StrCopy(grePath, path); + greVer := ver; + Result := True; + end; + end; + end; + RegCloseKey(curKey); + end; + Inc(i); + dwSize := MAX_PATH; + rv := RegEnumKeyExA(regBase, i, keyName, dwSize, nil, nil, nil, nil); + end; + RegCloseKey(regBase); +end; + +function GetLatestGreLocation(buf: PAnsiChar): Boolean; +const + nameBase: PAnsiChar = 'Software\mozilla.org\GRE'; +var + rv: HRESULT; + base: HKEY = 0; + cuPath, lmPath: TMaxPathChar; + cuVer, lmVer: TGREVersion; + reqVer: TGREVersion; + hasLM, hasCU: Boolean; +label + NoLocalMachine, + NoCurrentUser; +begin + ZeroArray(cuVer, SizeOf(cuVer)); + ZeroArray(lmVer, SizeOf(lmVer)); + reqVer := GetGREVersion(GRE_BUILD_ID); + + rv := RegOpenKeyA(HKEY_LOCAL_MACHINE, nameBase, base); + HasLM := (rv=ERROR_SUCCESS) and GetLatestGreFromReg(base, reqVer, lmPath, lmVer); +NoLocalMachine:; + rv := RegOpenKeyA(HKEY_CURRENT_USER, nameBase, base); + hasCU := (rv=ERROR_SUCCESS) and GetLatestGreFromReg(base, reqVer, cuPath, cuVer); +NoCurrentUser:; + Result := hasLM or hasCU; + + if Result then + begin + if GREVersionCompare(lmVer,cuVer)>0 then + //buf := lmPath + NS_StrCopy(buf, lmPath) + else + //buf := cuPath; + NS_StrCopy(buf, cuPath); + end; +end; +{$ENDIF} + +var + GRELocation: TMaxPathChar; + +function GetGREDirectoryPath(buf: PAnsiChar): Boolean; +{$IFDEF MSWINDOWS} +//const +// GRE_REGISTRY_KEY = GRE_MOZILLA_WIN_REG_LOC + GRE_BUILD_ID; +var + cpd:TMaxPathChar; + dllPath: TMaxPathChar; + useLocalGre: TMaxPathChar; +begin + if NS_StrLen(GreLocation)>0 then + begin + NS_StrCopy(buf, GreLocation); + Result := True; + Exit; + end; + + if NS_CurrentProcessDirectory(cpd, MAX_PATH) then + begin + dllPath := cpd; + NS_StrCat(dllPath, DirectorySeparator+XPCOM_DLL); + if IsXpcomDll(dllPath) then + begin + //buf := cpd; + NS_StrCopy(buf, cpd); + Result := True; + Exit; + end; + end; + + if GetEnvironmentVariableA('USE_LOCAL_GRE', useLocalGre, MAX_PATH)>0 then + begin + Result := False; + Exit; + end; + + {if SUCCEEDED(GetEnvironmentVariable('HOME', greConfHomePath, MAX_PATH)) and + (StrLen(path)>0) then + begin + StrCat(greConfHomePath, '\gre.config'); + if GetPathFromConfigFile(greConfHomePath, GRELocation) then + begin + buf := GRELocation; + Result := True; + Exit; + end; + end;} + + {if SUCCEEDED(GetEnvironmentVariable('MOZ_GRE_CONF', path, MAX_PATH)) and + (StrLen(path)>0) then + begin + if GetPathFromConfigFile(path, GRELocation) then + begin + buf := GRELocation; + Result := True; + Exit; + end; + end;} + + // レジストリから探す + if GetLatestGreLocation(buf) then + begin + Result := True; + Exit; + end; + + Result := False; +{$ELSE} +begin + {$IFDEF DARWIN} +// NS_StrCopy(buf, '/Applications/Firefox.app/Contents/MacOS'); + NS_StrCopy(buf, '/Library/Frameworks/XUL.framework/Versions/Current'); + {$ELSE} //Linux + NS_StrCopy(buf, '/usr/lib/xulrunner-1.9.1.4/libxpcom.so'); + {$ENDIF} + Result := True; +{$ENDIF} +end; + +function nsGREDirServiceProvider.GetGreDirectory(out AFile: nsILocalFile): nsresult; +var + GreDir: TMaxPathChar; + tempLocal: nsILocalFile; + leaf: nsCStringContainer; +begin + Result := NS_ERROR_FAILURE; + if not GetGREDirectoryPath(GreDir) then Exit; + + ZeroArray(leaf,sizeof(leaf)); + Result := NS_CStringContainerInit(leaf); + if NS_FAILED(Result) then Exit; + NS_CStringSetData(@leaf, GreDir); + Result := NS_NewNativeLocalFile(@leaf, True, tempLocal); + + if NS_SUCCEEDED(Result) then + Result := tempLocal.QueryInterface(nsILocalFile, AFile); +end; + +function nsGREDirServiceProvider.GetFile(const Prop: PAnsiChar; out Persistent: LongBool; out AFile: nsIFile): nsresult; +var + localFile: nsILocalFile; +const + NS_GRE_DIR = 'GreD'; +begin + persistent := True; + + if NS_StrComp(Prop, NS_GRE_DIR)=0 then + Result := GetGreDirectory(localFile) + else + Result := NS_ERROR_FAILURE; + + if NS_SUCCEEDED(Result) then + Result := localFile.QueryInterface(nsIFile, AFile); +end; + +class function nsGREDirServiceProvider.NewInstance: TObject; +var + Instance: Pointer; +begin + Instance := nsMemory.Alloc(InstanceSize); + Result := InitInstance(Instance); + nsGREDirServiceProvider(Instance).FRefCount := 1; +end; + +procedure nsGREDirServiceProvider.FreeInstance; +begin + nsMemory.Free(Self); +end; + +function GetXPCOMPath(buf: PAnsiChar): Boolean; +var + grePath: TMaxPathChar; + greEnv: TMaxPathChar; +begin +{$IFDEF MSWINDOWS} + Result := False; + //if not GetGreDirectoryPath(grePath) then + if NS_FAILED(GRE_GetGREPathWithProperties(nil, 0, nil, 0, grePath, MAX_PATH)) then + begin + if GetEnvironmentVariableA('MOZILLA_FIVE_HOME', greEnv, MAX_PATH)=0 then +//FPC port: previous calls don't find Firefox's GRE, so just force it. + begin +// NS_StrLCopy(buf, 'C:\Program Files\Mozilla Firefox\xpcom.dll', MAX_PATH); + NS_StrLCopy(buf, PChar(ExtractFilePath(ParamStr(0)) + 'xulrunner\xpcom.dll'), MAX_PATH); + if not FileExists(buf) then + Exit; + end + else + begin +//FPC port + NS_StrCopy(buf, greEnv); + NS_StrLCat(buf, '\xpcom.dll', MAX_PATH); + end + end else + begin + NS_StrCopy(buf, grePath); + end; +{$ELSE} + GetGREDirectoryPath(grePath); + NS_StrCopy(buf, grePath); + {$IFDEF DARWIN} + NS_StrLCat(buf, '/libxpcom.dylib', MAX_PATH); + {$ELSE} //Linux + NS_StrLCat(buf, '/libxpcom.so', MAX_PATH); + {$ENDIF} +{$ENDIF} + + Result := True; +end; + +var + sStartupCount: Integer = 0; + +function GRE_Startup: nsresult; +var + xpcomLocation: TMaxPathChar; + provider: nsGREDirServiceProvider; + servMgr: nsIServiceManager; +begin + Result := NS_OK; + + if sStartupCount > 0 then + begin + Inc(sStartupCount); + Exit; + end; + + GetXPCOMPath(xpcomLocation); + + Result := XPCOMGlueStartup(xpcomLocation); + + if NS_FAILED(Result) then Exit; + + provider := nsGREDirServiceProvider.Create; + if not Assigned(provider) then + begin + Result := NS_ERROR_OUT_OF_MEMORY; + XPCOMGlueShutdown; + Exit; + end; + + provider._AddRef; + Result := NS_InitXPCOM2(servMgr, nil, provider as nsXPCOM.nsIDirectoryServiceProvider); + provider._Release; + + if NS_FAILED(Result) then + begin + XPCOMGlueShutdown; + Exit; + end; + Inc(sStartupCount); +end; + +function GRE_Shutdown: nsresult; +begin + Dec(sStartupCount); + + if sStartupCount=0 then + begin + NS_ShutdownXPCOM(nil); + //XPCOMGlueShutdown; + end else + if sStartupCount<0 then sStartupCount := 0; + + Result := NS_OK; +end; + +function NS_CompareVersion(A, B: PAnsiChar): PRInt32; +var + vA, vB: TGREVersion; +begin + va := GetGREVersion(A); + vB := GetGREVersion(b); + + Result := GREVersionCompare(vA, vB); +end; + +{ PChar routines } + +function NS_StrLen(const Str: PAnsiChar): Cardinal; +var + P: PAnsiChar; +begin + P := Str; + Result := 0; + while P^ <> #0 do + begin + Inc(P); + Inc(Result); + end; +end; + +function NS_StrCopy(Dest: PAnsiChar; const Source: PAnsiChar): PAnsiChar; +var + D, S: PAnsiChar; +begin + D := Dest; + S := Source; + repeat + D^ := S^; + Inc(D); + Inc(S); + until D[-1] = #0; + Result := Dest; +end; + +function NS_StrLCopy(Dest: PAnsiChar; const Source: PAnsiChar; maxLen: Cardinal): PAnsiChar; +var + D, S, last: PAnsiChar; +begin + D := Dest; + S := Source; + last := Dest + maxLen; + while (S^<>#0) and (D < last) do + begin + D^ := S^; + Inc(D); + Inc(S); + end; + D^ := #0; + Result := Dest; +end; + +function NS_StrCat(Dest: PAnsiChar; const Source: PAnsiChar): PAnsiChar; +var + D: PAnsiChar; +begin + D := Dest; + while D^ <> #0 do + Inc(D); + NS_StrCopy(D, Source); + Result := Dest; +end; + +function NS_StrLCat(Dest: PAnsiChar; const Source: PAnsiChar; maxLen: Cardinal): PAnsiChar; +var + D, S: PAnsiChar; + last: PAnsiChar; +begin + D := Dest + StrLen(Dest); + S := Source; + last := Dest + maxLen - 1; + while (S^ <> #0) and (D < last) do + begin + D ^ := S^; + Inc(D); + Inc(S); + end; + D^ := #0; + Result := Dest; +end; + +function NS_StrComp(const Str1, Str2: PAnsiChar): Integer; +var + P1, P2: PAnsiChar; +begin + P1 := Str1; + P2 := Str2; + while (P1^<>#0) and (P1^=P2^) do + begin + Inc(P1); + Inc(P2); + end; + Result := Ord(P1^) - Ord(P2^); +end; + +function NS_StrRScan(const Str: PAnsiChar; Chr: AnsiChar): PAnsiChar; +var + P: PAnsiChar; +begin + P := Str; + while P^<>#0 do + Inc(P); + while (P>=Str) and (P^<>Chr) do + Dec(P); + if (P>=Str) then + Result := P + else + Result := nil; +end; + +function NS_StrLen(const Str: PWideChar): Cardinal; +var + P: PWideChar; +begin + P := Str; + Result := 0; + while P^ <> #0 do + begin + Inc(P); + Inc(Result); + end; +end; + +function NS_StrCopy(Dest: PWideChar; const Source: PWideChar): PWideChar; +var + D, S: PWideChar; +begin + D := Dest; + S := Source; + repeat + D^ := S^; + Inc(D); + Inc(S); + until D[-1] = #0; + Result := Dest; +end; + +function NS_StrLCopy(Dest: PWideChar; const Source: PWideChar; maxLen: Cardinal): PWideChar; +var + D, S: PWideChar; +begin + D := Dest; + S := Source; + while (S^<>#0) and (Dest+maxLen #0 do + Inc(D); + NS_StrCopy(D, Source); + Result := Dest; +end; + +function NS_StrLCat(Dest: PWideChar; const Source: PWideChar; maxLen: Cardinal): PWideChar; +var + D, S: PWideChar; + last: PWideChar; +begin +// D := Dest + StrLen(Dest); //Doesn't compile with Delphi 7 or FPC. + D := Dest + Length(WideString(Dest)); //This line inserted. + S := Source; + last := Dest + maxLen - 1; + while (S^ <> #0) and (D < last) do + begin + D ^ := S^; + Inc(D); + Inc(S); + end; + D^ := #0; + Result := Dest; +end; + +function NS_StrComp(const Str1, Str2: PWideChar): Integer; +var + P1, P2: PWideChar; +begin + P1 := Str1; + P2 := Str2; + while (P1^<>#0) and (P1^=P2^) do + begin + Inc(P1); + Inc(P2); + end; + Result := Ord(P1^) - Ord(P2^); +end; + +function NS_StrRScan(const Str: PWideChar; Chr: WideChar): PWideChar; +var + P: PWideChar; +begin + P := Str; + while P^<>#0 do + Inc(P); + while (P>=Str) and (P^<>Chr) do + Dec(P); + if (P>=Str) then + Result := P + else + Result := nil; +end; + +function safe_strncat(Dest: PAnsiChar; Append: PAnsiChar; count: PRUint32): PRBool; +var + last: PAnsiChar; +begin + last := (dest+count-1); + while dest^ <> #0 do + Inc(dest); + while (append^ <> #0) and (Last - Dest > 0) do + begin + Dest^ := Append^; + Inc(dest); + Inc(Append); + end; + Dest^ := #0; + Result := (Append^ = #0); +end; + +function fullpath(absPath, relPath: PAnsiChar; maxLength: PRUint32): PAnsiChar; +begin + //Path here must arrive already absolute :-? + strlcopy(abspath,relpath,maxLength); +// GetFullPathNameA(relPath, maxLength, absPath, filePart); + Result := absPath; +end; + +function NS_CurrentProcessDirectory(buf: PAnsiChar; bufLen: Cardinal): Boolean; +var + lastSlash: PAnsiChar; +begin + Result := False; + move(ParamStr(0)[1],buf^,min(bufLen,Length(ParamStr(0)))); + lastSlash := NS_StrRScan(buf, DirectorySeparator); + if Assigned(lastSlash) then + begin + lastSlash^ := #0; + Result := True; + end; +end; + +procedure ZeroArray(out AArray; const ASize: SizeInt); +begin +{$PUSH}{$HINTS OFF} + FillByte(AArray,ASize,0); +{$POP} +end; + + +end. diff --git a/components/geckoport/version2/nsMemory.pas b/components/geckoport/version2/nsMemory.pas new file mode 100644 index 000000000..7924aede7 --- /dev/null +++ b/components/geckoport/version2/nsMemory.pas @@ -0,0 +1,167 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsMemory; + +interface + +uses + nsXPCOM; + +const + NS_MEMORY_CONTRACTID = '@mozilla.org/xpcom/memory-service;1'; + NS_MEMORY_CLASSNAME = 'Global Memory Service'; + NS_MEMORY_CID: TGUID = '{30a04e40-38e7-11d4-8cf5-0060b0fc14a3}'; + +function Alloc(size: Integer): Pointer; +function Realloc(ptr: Pointer; size: Integer): Pointer; +function Free(ptr: Pointer): Integer; +function HeapMinimize(aImmediate: Boolean): Longword; +function Clone(Ptr: Pointer; size: Longword): Pointer; +function GetGlobalMemoryService: nsIMemory; + +function GlueStartupMemory: Longword; +procedure GlueShutdownMemory; + +procedure SetToMemoryManager; + +implementation + +uses + nsError, nsInit; + +var + gMemory: nsIMemory; + +procedure FreeGlobalMemory; +begin + gMemory := nil; +end; + +function SetupGlobalMemory: nsIMemory; +begin + if Assigned(gMemory) then Exit; + nsInit.NS_GetMemoryManager(gMemory); + if not Assigned(gMemory) then Exit; + Result := gMemory; +end; + +function GlueStartupMemory: Longword; +begin + Result := LongWord(NS_ERROR_FAILURE); + if Assigned(gMemory) then Exit; + nsInit.NS_GetMemoryManager(gMemory); + if not Assigned(gMemory) then Exit; + Result := NS_OK; +end; + +procedure GlueShutdownMemory; +begin + gMemory := nil; +end; + +function ENSURE_ALLOCATOR: Boolean; +begin + Result := True; + if not Assigned(gMemory) and not Assigned(SetupGlobalMemory()) then + Result := False; +end; + +function Alloc(size: Integer): Pointer; +begin + Result := nil; + if ENSURE_ALLOCATOR then + Result := gMemory.Alloc(size); +end; + +function Realloc(ptr: Pointer; size: Integer): Pointer; +begin + Result := nil; + if ENSURE_ALLOCATOR then + Result := gMemory.Realloc(ptr, size); +end; + +function Free(ptr: Pointer): Integer; +begin + Result := NS_OK; + if ENSURE_ALLOCATOR then gMemory.Free(ptr) + else + Result := Integer(NS_ERROR_UNEXPECTED); +end; + +function HeapMinimize(aImmediate: Boolean): Longword; +begin + Result := LongWord(NS_ERROR_FAILURE); + if ENSURE_ALLOCATOR then + try + Result := NS_OK; + gMemory.HeapMinimize(aImmediate); + except + Result := LongWord(NS_ERROR_FAILURE); + end; +end; + +function Clone(ptr: Pointer; size: Longword): Pointer; +begin + Result := nil; + if ENSURE_ALLOCATOR then + Result := Clone(Ptr, size); +end; + +function GetGlobalMemoryService: nsIMemory; +begin + Result := nil; + if not ENSURE_ALLOCATOR then Exit; + Result := gMemory; +end; + +{$IFNDEF FPC} +const + memmgr: TMemoryManager = ( + GetMem: Alloc; + FreeMem: Free; + ReallocMem: Realloc; + ); +{$ENDIF} + +procedure SetToMemoryManager; +begin +{$IFNDEF FPC} + SetMemoryManager(memmgr); +{$ENDIF} +end; + +end. diff --git a/components/geckoport/version2/nsNetUtil.pas b/components/geckoport/version2/nsNetUtil.pas new file mode 100644 index 000000000..f791bd241 --- /dev/null +++ b/components/geckoport/version2/nsNetUtil.pas @@ -0,0 +1,322 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsNetUtil; + +interface + +uses + nsXPCOM, nsTypes, nsGeckoStrings; + +function NS_GetIOService: nsIIOService; + +function NS_NewURI(const spec: nsAUTF8String; + const charset: AnsiString=''; + baseURI: nsIURI=nil; ioService: + nsIIOService=nil): nsIURI; overload; +function NS_NewURI(const spec: UTF8String; + baseURI: nsIURI=nil; + ioService: nsIIOService=nil): nsIURI; overload; +function NS_NewFileURI(spec: nsIFile; ioService: + nsIIOService=nil): nsIURI; +function NS_NewChannel(uri: nsIURI; + ioService: nsIIOService=nil; + loadGroup: nsILoadGroup=nil; + callbacks: nsIInterfaceRequestor=nil; + loadFlags: Longword=NS_IREQUEST_LOAD_NORMAL): nsIChannel; +function NS_OpenURI(uri: nsIURI; + ioService: nsIIOService=nil; + loadGroup: nsILoadGroup=nil; + callbacks: nsIInterfaceRequestor=nil; + loadFlags: Longword=NS_IREQUEST_LOAD_NORMAL): nsIInputStream; overload; +procedure NS_OpenURI(listener: nsIStreamListener; + context: nsISupports; uri: + nsIURI; ioService: nsIIOService=nil; + loadGroup: nsILoadGroup=nil; + callbacks: nsIInterfaceRequestor=nil; + loadFlags: Longword=NS_IREQUEST_LOAD_NORMAL); overload; +procedure NS_MakeAbsoluteURI(uri: nsAUTF8String; + const spec: nsAUTF8String; + baseURI: nsIURI; + ioService: nsIIOService=nil); overload; +function NS_MakeAbsoluteURI(const spec: UTF8String; + baseURI: nsIURI; + ioService: nsIIOService=nil): UTF8String; overload; +function NS_NewLoadGroup(obs: nsIRequestObserver): nsILoadGroup; + + +function NS_NewURI(const spec: nsAString; const charset: AnsiString=''; baseURI: nsIURI=nil; ioService: nsIIOService=nil): nsIURI; overload; +procedure NS_MakeAbsoluteURI(uri: nsAString; const spec: nsAString; baseURI: nsIURI; ioService: nsIIOService=nil); overload; + +resourcestring + SNewURIError = 'Cannot create instance of nsIURI by URI ''%s.'' '; + SConversationError = 'Cannot convert strings between UTF8 and UTF16.'; + SNewFileURIError = 'Cannot create instance of nsIURI by file ''%s.'''; + SNewChannelError = 'Cannot create instance of nsIChannel.'; + SOpenURIError = 'Cannot open URI ''%s.'' '; + SMakeAbsoluteURIError = 'Cannot make the absolute URI.'; + SNewLoadGroupError = 'Cannot create instance of nsILoadGroup.'; + +implementation + +uses + nsXPCOMGlue, nsError, nsInit; + +function NS_GetIOService: nsIIOService; +const + kIOServiceCID:TGUID = '{9ac9e770-18bc-11d3-9337-00104ba0fd40}'; +begin + NS_GetService(kIOServiceCID, nsIIOService, Result); +end; + +function EnsureIOService(ios: nsIIOService): nsIIOService; +begin + if not Assigned(ios) then + begin + Result := NS_GetIOService; + end else + begin + Result := ios; + end; +end; + +function NS_NewURI(const spec: nsAUTF8String; const charset: AnsiString; baseURI: nsIURI; ioService: nsIIOService): nsIURI; +var + charsetPtr: PAnsiChar; + grip: nsIIOService; + str: IInterfacedUTF8String; +begin + if Length(charset)>0 then + charsetPtr := PAnsiChar(charset) + else + charsetPtr := nil; + + grip := EnsureIOService(ioService); + try + Result := grip.NewURI(spec, charsetPtr, baseURI); + except + str := RelateUTF8String(spec); + raise EGeckoError.CreateResFmt(PResStringRec(@SNewURIError), [str.ToString]); + end; +end; + +function NS_NewURI(const spec: nsAString; const charset: AnsiString; baseURI: nsIURI; ioService: nsIIOService): nsIURI; +var + spec2: IInterfacedUTF8String; + rv: nsresult; +begin + spec2 := NewUTF8String; + rv := NS_UTF16ToCString(spec, NS_ENCODING_UTF8, spec2.AUTF8String); + if NS_FAILED(rv) then + raise EGeckoError.CreateRes(PResStringRec(@SConversationError)); + Result := NS_NewURI(spec2.AUTF8String, charset, baseURI, ioService); +end; + +function NS_NewURI(const spec: UTF8String; baseURI: nsIURI; ioService: nsIIOService): nsIURI; +var + spec2: IInterfacedUTF8String; +begin + spec2 := NewUTF8String(spec); + + Result := NS_NewURI(spec2.AUTF8String, '', baseURI, ioService); +end; + +function NS_NewFileURI(spec: nsIFile; ioService: + nsIIOService): nsIURI; +var + grip: nsIIOService; + str: IInterfacedUTF8String; +begin + grip := EnsureIOService(ioService); + if Assigned(grip) then + try + Result := grip.NewFileURI(spec); + except + str := NewUTF8String; + spec.GetNativePath(str.AUTF8String); + raise EGeckoError.CreateResFmt(PResStringRec(@SNewFileURIError), [str.ToString]); + end; +end; + +function NS_NewChannel(uri: nsIURI; + ioService: nsIIOService; + loadGroup: nsILoadGroup; + callbacks: nsIInterfaceRequestor; + loadFlags: Longword): nsIChannel; +var + grip: nsIIOService; + chan: nsIChannel; +begin + grip := EnsureIOService(ioService); + try + chan := grip.NewChannelFromURI(uri); + if Assigned(loadGroup) then + chan.SetLoadGroup(loadGroup); + if Assigned(callbacks) then + chan.SetNotificationCallbacks(callbacks); + if loadFlags <> NS_IREQUEST_LOAD_NORMAL then + chan.SetLoadFlags(loadFlags); + Result := chan; + except + raise EGeckoError.CreateRes(PResStringRec(@SNewChannelError)); + end; +end; + +function NS_OpenURI(uri: nsIURI; + ioService: nsIIOService; + loadGroup: nsILoadGroup; + callbacks: nsIInterfaceRequestor; + loadFlags: Longword): nsIInputStream; +var + channel: nsIChannel; + st: nsIInputStream; + str: IInterfacedCString; +begin + try + channel := NS_NewChannel(uri, ioService, loadGroup, callbacks, loadFlags); + st := channel.Open; + Result := st; + except + str := NewCString; + uri.GetSpec(str.ACString); + raise EGeckoError.CreateResFmt(PResStringRec(@SOpenURIError), [str.ToString]); + end; +end; + +procedure NS_OpenURI(listener: nsIStreamListener; + context: nsISupports; uri: + nsIURI; ioService: nsIIOService; + loadGroup: nsILoadGroup; + callbacks: nsIInterfaceRequestor; + loadFlags: Longword); +var + channel: nsIChannel; + str: IInterfacedCString; +begin + try + channel := NS_NewChannel(uri, ioService, loadGroup, callbacks, loadFlags); + channel.AsyncOpen(listener, context); + except + str := NewCString; + uri.GetSpec(str.ACString); + raise EGeckoError.CreateResFmt(PResStringRec(@SOpenURIError), [str.ToString]); + end; +end; + +procedure NS_MakeAbsoluteURI(uri: nsAUTF8String; + const spec: nsAUTF8String; + baseURI: nsIURI; + ioService: nsIIOService); +var + uri2, spec2: IInterfacedUTF8String; +begin + uri2 := RelateUTF8String(uri); + spec2 := RelateUTF8String(spec); + + if not Assigned(baseURI) then + begin + uri2.Assign(spec2); + end else + if uri2.Length()>0 then + try + baseURI.Resolve(spec2.AUTF8String, uri2.AUTF8String); + except + raise EGeckoError.CreateRes(PResStringRec(@SMakeAbsoluteURIError)); + end else + raise EGeckoError.CreateRes(PResStringRec(@SMakeAbsoluteURIError)); +end; + +procedure NS_MakeAbsoluteURI(uri: nsAString; const spec: nsAString; baseURI: nsIURI; ioService: nsIIOService=nil); +var + uri2, spec2: IInterfacedString; + buf1, buf2: IInterfacedUTF8String; + rv: nsresult; +begin + uri2 := RelateString(uri); + spec2 := RelateString(spec); + buf1 := NewUTF8String; + buf2 := NewUTF8String; + + if not Assigned(baseURI) then + begin + uri2.Assign(spec2); + end else + try + if uri2.Length()=0 then + baseURI.GetSpec(buf1.AUTF8String) + else + begin + NS_UTF16ToCString(spec,NS_ENCODING_UTF8,buf2.AUTF8String); + baseURI.Resolve(buf2.AUTF8String, buf1.AUTF8String); + end; + rv := NS_CStringToUTF16(buf1.AUTF8String, NS_ENCODING_UTF8, uri); + if NS_FAILED(rv) then + raise EGeckoError.CreateRes(PResStringRec(@SConversationError)); + except + on EGeckoError do raise + else raise EGeckoError.CreateRes(PResStringRec(@SMakeAbsoluteURIError)); + end; +end; + +function NS_MakeAbsoluteURI(const spec: UTF8String; + baseURI: nsIURI; + ioService: nsIIOService): UTF8String; +var + uri2, spec2: IInterfacedUTF8String; +begin + uri2 := NewUTF8String(); + spec2 := NewUTF8String(spec); + + NS_MakeAbsoluteURI(uri2.AUTF8String, spec2.AUTF8String, baseURI, ioService); + Result := uri2.ToString; +end; + +function NS_NewLoadGroup(obs: nsIRequestObserver): nsILoadGroup; +const + kLoadGroupCID: TGUID = '{e1c61582-2a84-11d3-8cce-0060b0fc14a3}'; +var + group: nsILoadGroup; +begin + try + NS_CreateInstance(kLoadGroupCID,nsILoadGroup,group); + group.SetGroupObserver(obs); + Result := group; + except + raise EGeckoError.CreateRes(PResStringRec(@SNewLoadGroupError)); + end; +end; + +end. diff --git a/components/geckoport/version2/nsProfile.pas b/components/geckoport/version2/nsProfile.pas new file mode 100644 index 000000000..be585b9e5 --- /dev/null +++ b/components/geckoport/version2/nsProfile.pas @@ -0,0 +1,584 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsProfile; + +interface + +uses + nsXPCOM, nsTypes, nsXPCOMGlue; + +type + nsProfileDirServiceProvider = interface(nsIDirectoryServiceProvider) + procedure SetProfileDir(AProfileDir: nsIFile); + procedure Register; + procedure Shutdown; + end; + + EGeckoProfileError = class(EGeckoError); + +function NS_NewProfileDirServiceProvider(aNotifyObservers: PRBool): nsProfileDirServiceProvider; + +resourcestring + SProfileRegisterError = 'Failed to register profile.'; + SProfileShutdownError = 'Failed to shutdown profile.'; + SSetProfileDirError = 'Failed to register profile directory.'; + SNotADirectory = 'The specified file is not a directory.'; + SProfileInitError = 'Failed to initialize profile.'; + SEnsureProfileDirError = 'Cannot ensure profile directory.'; + +implementation + +uses + Windows, SysUtils, nsConsts, nsError, nsGeckoStrings, nsCID; + +type + TProfileDirLock = class(TObject) + FHaveLock: Boolean; + FLockFileHandle: THandle; + + constructor Create; overload; + constructor Create(src: TProfileDirLock); overload; + destructor Destroy; override; + + procedure Assign(rhs: TProfileDirLock); + function Lock(aFile: nsILocalFile): nsresult; + function Unlock: nsresult; + end; + + TProfileDirServiceProvider = class(TInterfacedObject, + nsProfileDirServiceProvider, + nsIDirectoryServiceProvider) + FProfileDir: nsIFile; + FProfileDirLock: TProfileDirLock; + FNotifyObservers: PRBool; + FSharingEnabled: Boolean; + FNonSharedDirName: IInterfacedString; + FNonSharedProfileDir: nsIFile; + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile; safecall; + procedure SetProfileDir(AProfileDir: nsIFile); + procedure Register; + procedure Shutdown; + + constructor Create(aNotifyObservers: PRBool = True); + destructor Destroy; override; + + procedure Initialize; + procedure InitProfileDir(profileDir: nsIFile); + procedure InitNonSharedProfileDir; + procedure EnsureProfileFileExists(aFile: nsIFile; destDir: nsIFile); + procedure UndefineFileLocations; + + function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult; override; + end; + +constructor TProfileDirLock.Create; +begin + inherited Create; + + FHaveLock := False; + FLockFileHandle := INVALID_HANDLE_VALUE; +end; + +constructor TProfileDirLock.Create(src: TProfileDirLock); +begin + inherited Create; + + Assign(src); +end; + +procedure TProfileDirLock.Assign(rhs: TProfileDirLock); +begin + Unlock(); + + FHaveLock := rhs.FHaveLock; + rhs.FHaveLock := False; + + FLockFileHandle := rhs.FLockFileHandle; + rhs.FLockFileHandle := INVALID_HANDLE_VALUE; +end; + +destructor TProfileDirLock.Destroy; +begin + Unlock(); + inherited; +end; + +function TProfileDirLock.Lock(aFile: nsILocalFile): nsresult; +const + LOCKFILE_NAME = 'parent.lock'; +var + isDir: PRBool; + lockFile: nsIFile; + lockFileName: IInterfacedString; + filePath: IInterfacedCString; +begin + try + lockFileName := NewString(LOCKFILE_NAME); + filePath := NewCString; + + if not FHaveLock then + begin + Result := NS_ERROR_UNEXPECTED; + Exit; + end; + + isDir := aFile.IsDirectory(); + + if not isDir then + begin + Result := NS_ERROR_FILE_NOT_DIRECTORY; + Exit; + end; + + lockFile := aFile.Clone(); + lockFile.Append(lockFileName.AString); + lockFile.GetNativePath(filePath.ACString); + + FLockFileHandle := CreateFileA(PAnsiChar(filePath.ToString), + GENERIC_READ or GENERIC_WRITE, + 0, + nil, + OPEN_ALWAYS, + FILE_FLAG_DELETE_ON_CLOSE, + 0); + if FLockFileHandle = INVALID_HANDLE_VALUE then + begin + Result := NS_ERROR_FILE_ACCESS_DENIED; + Exit; + end; + FHaveLock := True; + Result := NS_OK; + except + on EOutOfMemory do + Result := NS_ERROR_OUT_OF_MEMORY; + on ESafeCallException do + Result := NS_ERROR_FAILURE; + else + Result := NS_ERROR_UNEXPECTED; + end; +end; + +function TProfileDirLock.Unlock: nsresult; +begin + Result := NS_OK; + + if FHaveLock then + begin + if FLockFileHandle <> INVALID_HANDLE_VALUE then + begin + CloseHandle(FLockFileHandle); + FLockFileHandle := INVALID_HANDLE_VALUE; + end; + FHaveLock := False; + end; +end; + +constructor TProfileDirServiceProvider.Create(aNotifyObservers: PRBool); +begin + inherited Create; + FNotifyObservers := aNotifyObservers; +end; + +destructor TProfileDirServiceProvider.Destroy; +begin + FProfileDirLock.Free; + inherited; +end; + +procedure TProfileDirServiceProvider.SetProfileDir(aProfileDir: nsIFile); +var +{$IFDEF MOZ_PROFILELOCKING} + dirToLock: nsILocalFile; +{$ENDIF} + observerService: nsIObserverService; +begin + try + if Assigned(FProfileDir) then + begin + if Assigned(aProfileDir) and + aProfileDir.Equals(FProfileDir) then + begin + Exit; + end; +{$IFDEF MOZ_PROFILELOCKING} + FProfileDirLock.Unlock(); +{$ENDIF} + UndefineFileLocations; + end; + FProfileDir := aProfileDir; + if not Assigned(FProfileDir) then + begin + Exit; + end; + +{$IFDEF MOZ_PROFILELOCKING} + Result := InitProfileDir(FProfileDir); + if NS_FAILED(Result) then Exit; + + if FSharingEnabled then + Result := FNonSharedProfileDir.QueryInterface(nsILocalFile, dirToLock) + else + Result := FNonSharedProfileDir.QueryInterface(nsILocalFile, dirToLock); + if NS_FAILED(Result) then Exit; + Result := FProfileDirLock.Lock(dirToLock); + if NS_FAILED(Result) then Exit; +{$ENDIF} + + if FNotifyObservers then + begin + NS_GetService('@mozilla.org/observer-service;1', nsIObserverService, observerService); + + observerService.NotifyObservers(nil, 'profile-do-change', 'startup'); + observerService.NotifyObservers(nil, 'profile-after-change', 'startup'); + end; + + except + raise EGeckoProfileError.CreateRes(PResStringRec(@SSetProfileDirError)); + end; +end; + +procedure TProfileDirServiceProvider.Register; +var + directoryService: nsIDirectoryService; +begin + NS_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, + nsIDirectoryService, + directoryService); + try + directoryService.RegisterProvider(Self); + except + raise EGeckoProfileError.CreateRes(PResStringRec(@SProfileRegisterError)); + end; +end; + +procedure TProfileDirServiceProvider.Shutdown; +var + observerService: nsIObserverService; +begin + NS_GetService('@mozilla.org/observer-service;1', + nsIObserverService, + observerService); + try + observerService.NotifyObservers(nil, 'profile-before-change', 'shutdown-persist'); + except + raise EGeckoProfileError.CreateRes(PResStringRec(@SProfileShutdownError)); + end; +end; + +function TProfileDirServiceProvider.GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile; +var + localFile: nsIFile; + domainDir: nsIFile; + appendStr: IInterfacedCString; +const + PREFS_FILE_50_NAME =' prefs.js'; + USER_CHROME_DIR_50_NAME = 'chrome'; + LOCAL_STORE_FILE_50_NAME = 'localstore.rdf'; + HISTORY_FILE_50_NAME = 'history.dat'; + PANELS_FILE_50_NAME = 'panels.rdf'; + MIME_TYPES_FILE_50_NAME = 'mimeTypes.rdf'; + BOOKMARKS_FILE_50_NAME = 'bookmark.html'; + DOWNLOADS_FILE_50_NAME = 'downloads.rdf'; + SEARCH_FILE_50_NAME = 'search.rdf'; + MAIL_DIR_50_NAME = 'Mail'; + IMAP_MAIL_DIR_50_NAME = 'ImapMail'; + NEWS_DIR_50_NAME = 'News'; + MSG_FOLDER_CACHE_DIR_50_NAME = 'panacea.dat'; +begin + appendStr := NewCString; + + persistent := True; + domainDir := FProfileDir; + + Assert(Assigned(domainDir)); + + if prop = NS_APP_PREFS_50_DIR then + begin + localFile := domainDir.Clone(); + end else + if prop = NS_APP_PREFS_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(PREFS_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_USER_PROFILE_50_DIR then + begin + localFile := domainDir.Clone(); + end else + if prop = NS_APP_USER_CHROME_DIR then + begin + localFile := domainDir.Clone(); + appendStr.Assign(USER_CHROME_DIR_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_LOCALSTORE_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(LOCAL_STORE_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + EnsureProfileFileExists(localFile, domainDir); + end else + if prop = NS_APP_HISTORY_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(HISTORY_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_USER_PANELS_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(PANELS_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + EnsureProfileFileExists(localFile, domainDir); + end else + if prop = NS_APP_USER_MIMETYPES_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(MIME_TYPES_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + EnsureProfileFileExists(localFile, domainDir); + end else + if prop = NS_APP_BOOKMARKS_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(BOOKMARKS_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_DOWNLOADS_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(DOWNLOADS_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_SEARCH_50_FILE then + begin + localFile := domainDir.Clone(); + appendStr.Assign(SEARCH_FILE_50_NAME); + localFile.AppendNative(appendStr.ACString); + EnsureProfileFileExists(localFile, domainDir); + end else + if prop = NS_APP_MAIL_50_DIR then + begin + localFile := domainDir.Clone(); + appendStr.Assign(MAIL_DIR_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_IMAP_MAIL_50_DIR then + begin + localFile := domainDir.Clone(); + appendStr.Assign(IMAP_MAIL_DIR_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_NEWS_50_DIR then + begin + localFile := domainDir.Clone(); + appendStr.Assign(NEWS_DIR_50_NAME); + localFile.AppendNative(appendStr.ACString); + end else + if prop = NS_APP_MESSENGER_FOLDER_CACHE_50_DIR then + begin + localFile := domainDir.Clone(); + appendStr.Assign(MSG_FOLDER_CACHE_DIR_50_NAME); + localFile.AppendNative(appendStr.ACString); + end; + + if Assigned(localFile) then + Result := localFile as nsIFile; +end; + +procedure TProfileDirServiceProvider.Initialize; +begin +{$IFDEF MOZ_PROFILELOCKING} + FProfileDir := TProfileDirServiceProvider.Create(FNotifyObservers); +{$ENDIF} +end; + +procedure TProfileDirServiceProvider.InitProfileDir(profileDir: nsIFile); +var + exists: PRBool; + profileDefaultsDir: nsIFile; + profileDirParent: nsIFile; + profileDirName: IInterfacedCString; + isDir: PRBool; +begin + try + profileDirName := NewCString; + + exists := profileDir.Exists(); + + if not exists then + begin + profileDirParent := profileDir.Parent; + profileDir.GetNativeLeafName(profileDirName.ACString); + + try + profileDefaultsDir := NS_GetSpecialDirectory(NS_APP_PROFILE_DEFAULTS_50_DIR); + except + profileDefaultsDir := NS_GetSpecialDirectory(NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR); + end; + try + profileDefaultsDir.CopyToNative(profileDirParent, profileDirName.ACString); + except + profileDirParent.AppendNative(profileDirName.ACString); + profileDirParent.Create(NS_IFILE_DIRECTORY_TYPE, 7 shl 6); + end; + end else + begin + isDir := profileDir.IsDirectory(); + if not isDir then + raise EGeckoProfileError.CreateRes(PResStringRec(@SNotADirectory)); + end; + + if FNonSharedDirName.Length > 0 then + InitNonSharedProfileDir; + except + on EGeckoError do raise + else raise EGeckoProfileError.CreateRes(PResStringRec(@SProfileInitError)); + end; +end; + +procedure TProfileDirServiceProvider.InitNonSharedProfileDir; +var + localDir: nsIFile; + exists: PRBool; + isDir: PRBool; +begin + try + localDir := FProfileDir.Clone(); + localDir.Append(FNonSharedDirName.AString); + exists := localDir.Exists(); + if not exists then + begin + localDir.Create(NS_IFILE_DIRECTORY_TYPE, 7 shl 6); + end else + begin + isDir := localDir.IsDirectory(); + if not isDir then + raise EGeckoProfileError.CreateRes(PResStringRec(@SNotADirectory)); + end; + FNonSharedProfileDir := localDir; + except + on EGeckoError do raise + else raise EGeckoProfileError.CreateRes(PResStringRec(@SProfileInitError)); + end; +end; + +procedure TProfileDirServiceProvider.EnsureProfileFileExists(aFile: nsIFile; destDir: nsIFile); +var + exists: PRBool; + defaultsFile: nsIFile; + leafName: IInterfacedCString; +begin + try + exists := aFile.Exists; + if exists then + begin + Exit; + end; + + try + defaultsFile := NS_GetSpecialDirectory(NS_APP_PROFILE_DEFAULTS_50_DIR); + except + defaultsFile := NS_GetSpecialDirectory(NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR); + end; + + leafName := NewCString; + + aFile.GetNativeLeafName(leafName.ACString); + defaultsFile.AppendNative(leafName.ACString); + + leafName.Assign(''); + defaultsFile.CopyToNative(destDir, leafName.ACString); + except + on EGeckoError do raise + else raise EGeckoProfileError.CreateRes(PResStringRec(@SEnsureProfileDirError)); + end; +end; + +procedure TProfileDirServiceProvider.UndefineFileLocations; +var + directoryService : nsIProperties; + i: Integer; +const + NUM_OF_DIRS = 15; + Dirs: array [1..15] of PAnsiChar = ( + NS_APP_PREFS_50_DIR, + NS_APP_PREFS_50_FILE, + NS_APP_USER_PROFILE_50_DIR, + NS_APP_USER_CHROME_DIR, + NS_APP_LOCALSTORE_50_FILE, + NS_APP_HISTORY_50_FILE, + NS_APP_USER_PANELS_50_FILE, + NS_APP_USER_MIMETYPES_50_FILE, + NS_APP_BOOKMARKS_50_FILE, + NS_APP_DOWNLOADS_50_FILE, + NS_APP_SEARCH_50_FILE, + NS_APP_MAIL_50_DIR, + NS_APP_IMAP_MAIL_50_DIR, + NS_APP_NEWS_50_DIR, + NS_APP_MESSENGER_FOLDER_CACHE_50_DIR + ); +begin + NS_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, + nsIProperties, + directoryService); + + for I:=1 to NUM_OF_DIRS do + try + directoryService.Undefine(Dirs[I]); + except + end; +end; + +function TProfileDirServiceProvider.SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult; +begin + Result := HResult(NS_ERROR_FAILURE); +end; + +function NS_NewProfileDirServiceProvider(aNotifyObservers: PRBool): nsProfileDirServiceProvider; +var + prov: TProfileDirServiceProvider; +begin + prov := TProfileDirServiceProvider.Create(aNotifyObservers); + + prov.Initialize; + Result := prov; + prov.FNotifyObservers := aNotifyObservers; +end; + +end. diff --git a/components/geckoport/version2/nsStream.pas b/components/geckoport/version2/nsStream.pas new file mode 100755 index 000000000..220df9cca --- /dev/null +++ b/components/geckoport/version2/nsStream.pas @@ -0,0 +1,401 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsStream; + +interface + +uses + nsXPCOM, Classes,nsTypes; + +function NS_NewByteArrayInputStream(out stream: nsIInputStream; const Buffer: Pointer; Size: Longword): nsresult; +function NS_NewInputStreamFromTStream(input: TStream; own: Boolean=False): nsIInputStream; +function NS_NewOutputStreamFromTStream(output: TStream; own: Boolean=False): nsIOutputStream; + +implementation + +uses + Math, nsMemory, nsError, SysUtils; + +type + nsByteArrayInputStream = class(TInterfacedObject, + nsIInputStream) + FBuffer: PByte; + FNBytes: Longword; + FPos: Longword; + + constructor Create(const Buffer: Pointer; nBytes: Longword); + destructor Destroy; override; + + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: PAnsiChar; aCount: Longword): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: Longword): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + +constructor nsByteArrayInputStream.Create(const Buffer: Pointer; nBytes: Longword); +begin + inherited Create; + FBuffer := PByte(Buffer); + FNBytes := nBytes; + FPos := 0; +end; + +destructor nsByteArrayInputStream.Destroy; +begin + if Assigned(FBuffer) then + nsMemory.Free(FBuffer); + inherited; +end; + +function nsByteArrayInputStream.Available(): PRUint32; +begin + if (FNBytes=0) or not Assigned(FBuffer) then + Result := 0 + else + Result := FNBytes - FPos; +end; + +procedure CopyMemory(var ADst; const ASrc; ASize: Integer); register; forward; + +function nsByteArrayInputStream.Read(aBuf: PAnsiChar; + aCount: Longword): PRUint32; +begin + if (aCount=0) or (FPos = FNBytes) then + Result := 0 + else + begin + Assert(Assigned(FBuffer), 'Stream buffer has been released - there''s an ownership problem somewhere!'); + if not Assigned(FBuffer) then + Result := 0 + else + if aCount > (FNBytes - FPos) then + begin + Result := FNBytes - FPos; + CopyMemory(aBuf^, FBuffer^, Result); + FPos := FNBytes; + end else + begin + Result := aCount; + CopyMemory(aBuf^, FBuffer^, Result); + Inc(FPos, aCount); + end; + end; +end; + +function nsByteArrayInputStream.ReadSegments(aWriter: nsWriteSegmentFun; + aClosure: Pointer; + aCount: Longword): PRUint32; +var + readCount: Longword; + rv: Longword; + newPtr: PByte; +begin + if FNBytes=0 then + raise EInvalidArgument.Create('nsIInputStream.ReadSegments'); + + if (aCount=0) or (FNBytes = FPos) then + Result := 0 + else + begin + Assert(Assigned(FBuffer), 'Stream buffer has been released - there''s an ownership problem somewhere!'); + readCount := Min(aCount, FNBytes - FPos); + if not Assigned(FBuffer) then + Result := 0 + else + begin + newPtr := FBuffer; + Inc(newPtr, FPos); + rv := aWriter(Self, aClosure, PChar(newPtr), FPos, readCount, Result); + if NS_SUCCEEDED(rv) then + Inc(FPos, readCount); + end; + end; +end; + +function nsByteArrayInputStream.IsNonBlocking(): PRBool; +begin + Result := True; +end; + +procedure nsByteArrayInputStream.Close; +begin + if Assigned(FBuffer) then + begin + nsMemory.Free(FBuffer); + FBuffer := nil; + FNBytes := 0; + end else + raise Exception.Create('nsIInputStream.Close') +end; + +function NS_NewByteArrayInputStream(out stream: nsIInputStream; const Buffer: Pointer; Size: Longword): nsresult; +begin + try + stream := nsByteArrayInputStream.Create(Buffer, Size); + except + Result := NS_ERROR_OUT_OF_MEMORY; + Exit; + end; + + Result := NS_OK; +end; + +type + TInputStream = class(TInterfacedObject, + nsIInputStream) + FStream: TStream; + FOwn: Boolean; + constructor Create(stream: TStream; own: Boolean); + destructor Destroy; override; + + // nsIInputStream + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + +constructor TInputStream.Create(stream: TStream; own: Boolean); +begin + inherited Create; + FStream := stream; + FOwn := own; +end; + +destructor TInputStream.Destroy; +begin + if FOwn then + FStream.Free; + inherited; +end; + +procedure TInputStream.Close; +begin + if FOwn then + begin + FStream.Free; + FOwn := False; + end; + FStream := nil; +end; + +function TInputStream.Available: PRUint32; +var + size, pos: Int64; +begin + size := FStream.Size; + pos := FStream.Position; + if size>0 then + begin + Result := PRUint32(size-pos); + end else + begin + Result := High(PRUint32); + end; +end; + +function TInputStream.Read(aBuf: PAnsiChar; aCount: PRUint32): PRUint32; +begin + Result := FStream.Read(aBuf^, aCount); +end; + +function TInputStream.ReadSegments(aWriter: nsWriteSegmentFun; + aClosure: Pointer; aCount: PRUint32): PRUint32; +type + nsWriteSegmentFunc = function (aInStream: nsIInputStream; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32 + ): PRUint32; safecall; + +var + data: Pointer; +begin + data := nsMemory.Alloc(aCount); + try + aCount := FStream.Read(data^, aCount); + Result := nsWriteSegmentFunc(aWriter)( + Self, aClosure, data, FStream.Position, aCount); + finally + nsMemory.Free(data); + end; +end; + +function TInputStream.IsNonBlocking: PRBool; +begin + Result := True; +end; + +function NS_NewInputStreamFromTStream(input: TStream; own: Boolean): nsIInputStream; +begin + Result := TInputStream.Create(input, own); +end; + +type + TOutputStream = class(TInterfacedObject, + nsIOutputStream) + FStream: TStream; + FOwn: Boolean; + + constructor Create(output: TStream; own: Boolean); + destructor Destroy; override; + + procedure Close(); safecall; + procedure Flush(); safecall; + function Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function WriteFrom(aFromStream: nsIInputStream; aCount: PRUint32): PRUint32; safecall; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + +constructor TOutputStream.Create(output: TStream; own: Boolean); +begin + inherited Create; + FStream := output; + FOwn := own; +end; + +destructor TOutputStream.Destroy; +begin + if FOwn then + FStream.Free; + inherited; +end; + +procedure TOutputStream.Close; +begin + if FOwn then + begin + FStream.Free; + FOwn := False; + end; + FStream := nil; +end; + +procedure TOutputStream.Flush; +begin +end; + +function TOutputStream.Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; +begin + Result := FStream.Write(aBuf^, aCount); +end; + +function TOutputStream.WriteFrom(aFromStream: nsIInputStream; aCount: PRUint32): PRUint32; +var + data: Pointer; +begin + data := nsMemory.Alloc(aCount); + try + aCount := aFromStream.Read(data, aCount); + Result := FStream.Write(data^, aCount); + finally + nsMemory.Free(data); + end; +end; + +function TOutputStream.WriteSegments(aReader: nsReadSegmentFun; + aClosure: Pointer; aCount: PRUint32): PRUint32; +type + nsReadSegmentFunc = function (aOutStream: nsIOutputStream; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32 + ): PRUint32; safecall; +var + data: Pointer; +begin + data := nsMemory.Alloc(aCount); + try + aCount := nsReadSegmentFunc(aReader) + (Self, aClosure, data, FStream.Position, aCount); + Result := FStream.Write(data^, aCount); + finally + nsMemory.Free(data); + end; +end; + +function TOutputStream.IsNonBlocking: PRBool; +begin + Result := True; +end; + +function NS_NewOutputStreamFromTStream(output: TStream; own: Boolean): nsIOutputStream; +begin + Result := TOutputStream.Create(output, own); +end; + + +{$IFDEF CPU386} //Should be defined with both Delphi and Intel FPC. +procedure CopyMemory(var ADst; const ASrc; ASize: Integer); +asm + push edi + push esi + pushf + + mov edi, eax + mov esi, edx + mov edx, ecx + shr ecx, 2 + cld + test ecx, ecx + jz @@no4 + + rep movsd +@@no4: + and edx, 3 + test edx, edx + jz @@no1 + mov ecx, edx + rep movsb +@@no1: + popf + pop esi + pop edi +end; +{$ELSE} +procedure CopyMemory(var ADst; const ASrc; ASize: Integer); +begin + Move(ASrc, ADst, ASize); +end; +{$ENDIF} + +end. diff --git a/components/geckoport/version2/nsThreadUtils.pas b/components/geckoport/version2/nsThreadUtils.pas new file mode 100644 index 000000000..0053984ac --- /dev/null +++ b/components/geckoport/version2/nsThreadUtils.pas @@ -0,0 +1,273 @@ +unit nsThreadUtils; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +interface + +uses + nsXPCOM, nsTypes, nsGeckoStrings; + +type + nsIEnvironment = interface; + nsIEventTarget = interface; + nsIProcess = interface; + nsIRunnable = interface; + nsISupportsPriority = interface; + nsIThread = interface; + nsIThreadInternal = interface; + nsIThreadObserver = interface; + nsIThreadEventFilter = interface; + nsIThreadManager = interface; + nsIThreadPoolListener = interface; + nsIThreadPool = interface; + nsITimer = interface; + + nsIEnvironment = interface(nsISupports) + ['{101d5941-d820-4e85-a266-9a3469940807}'] + procedure _set(aName: nsAString; aValue: nsAString); safecall; + procedure get(aName: nsAString; aResult: nsAString); safecall; + function exists(aName: nsAString): PRBool; safecall; + end; + + nsIEventTarget = interface(nsISupports) + ['{4e8febe4-6631-49dc-8ac9-308c1cb9b09c}'] + procedure dispatch(event: nsIRunnable; flags: PRUint32); safecall; + function isOnCurrentThread(): PRBool; safecall; + end; + + nsIProcess = interface(nsISupports) + ['{9da0b650-d07e-4617-a18a-250035572ac8}'] + procedure init(aExecutable: nsIFile); safecall; + procedure initWithPid(aPid: PRUint32); safecall; + procedure kill(); safecall; + function run(aBlocking: PRBool; aArgs: PAnsiCharArray; aCount: PRUint32): PRUint32; safecall; + function getLocation(): nsIFile; safecall; + property location: nsIFile read getLocation; + function getPid(): PRUint32; safecall; + property pid: PRUint32 read getPid; + function getProcessName(): PAnsiChar; safecall; + property processName: PAnsiChar read getProcessName; + function getProcessSignature: PRUint32; safecall; + property processSignature: PRUint32 read getProcessSignature; + function getExitValue: PRInt32; safecall; + property exitValue: PRInt32 read getExitValue; + end; + + nsIRunnable = interface(nsISupports) + ['{4a2abaf0-6886-11d3-9382-00104ba0fd40}'] + procedure run(); safecall; + end; + + nsISupportsPriority = interface(nsISupports) + ['{aa578b44-abd5-4c19-8b14-36d4de6fdc36}'] + function getPriority: PRInt32; safecall; + procedure setPriority(aValue: PRInt32); safecall; + property priority: PRInt32 read getPriority write setPriority; + procedure adjustPriority(aDelta: PRInt32); safecall; + end; + + nsIThread = interface(nsIEventTarget) + ['{9c889946-a73a-4af3-ae9a-ea64f7d4e3ca}'] + function getPRThread: Pointer; safecall; + property PRThread: Pointer read getPRThread; + procedure shutdown(); safecall; + function hasPendingEvents(): PRBool; safecall; + function processNextEvent(mayWait: PRBool): PRBool; safecall; + end; + + nsIThreadInternal = interface(nsISupports) + ['{f89b5063-b06d-42f8-bf23-4dfcf2d80d6a}'] + function getObserver: nsIThreadObserver; safecall; + procedure setObserver(aValue: nsIThreadObserver); safecall; + property observer: nsIThreadObserver read getObserver write setObserver; + procedure pushEventQueue(aFilter: nsIThreadEventFilter); safecall; + procedure popEventQueue(); safecall; + end; + + nsIThreadObserver = interface(nsISupports) + ['{81D0B509-F198-4417-8020-08EB4271491F}'] + procedure onDispatchedEvent(aThread: nsIThreadInternal); safecall; + procedure onProcessNextEvent(aThread: nsIThreadInternal; aMayWait: PRBool; aRecursionDepth: PRUint32); safecall; + procedure afterProcessNextEvent(aThread: nsIThreadInternal; aRecursionDepth: PRUint32); safecall; + end; + + nsIThreadEventFilter = interface(nsISupports) + ['{a0605c0b-17f5-4681-b8cd-a1cd75d42559}'] + function acceptEvent(aEvent: nsIRunnable): PRBool; extdecl; + end; + + nsIThreadManager = interface(nsISupports) + ['{056216f5-8803-46b4-9199-d95bc1f0446f}'] + function newThread(creationFlag: PRUint32): nsIThread; safecall; + function getThreadFromPRThread(prthread: Pointer): nsIThread; safecall; + function getMainThread(): nsIThread; safecall; + property mainThread: nsIThread read getMainThread; + function getCurrentThread: nsIThread; safecall; + property currentThread: nsIThread read getCurrentThread; + function getIsMainThread: PRBool; safecall; + property isMainThread: PRbool read getIsMainThread; + end; + + nsIThreadPoolListener = interface(nsISupports) + ['{ef194cab-3f86-4b61-b132-e5e96a79e5d1}'] + procedure onThreadCreated(); safecall; + procedure onThreadShuttingDown(); safecall; + end; + + nsIThreadPool = interface(nsIEventTarget) + ['{394c29f0-225f-487f-86d3-4c259da76cab}'] + procedure shutdown(); safecall; + function getThreadLimit(): PRUint32; safecall; + procedure setThreadLimit(aValue: PRUint32); safecall; + property threadLimit: PRUint32 read getThreadLimit write setThreadLimit; + function getIdleThreadLimit(): PRUint32; safecall; + procedure setIdleThreadLimit(aValue: PRUint32); safecall; + property idleThreadLimit: PRUint32 read getIdleThreadLimit write setIdleThreadLimit; + function getIdleThreadTimeout(): PRUint32; safecall; + procedure setIdleThreadTimeout(aValue: PRUint32); safecall; + property idleThreadTimeout: PRUint32 read getIdleThreadTimeout write setIdleThreadTimeout; + function getListener: nsIThreadPoolListener; safecall; + procedure setListener(aValue: nsIThreadPoolListener); safecall; + property listener: nsIThreadPoolListener read getListener write setListener; + end; + + nsITimer = interface(nsISupports) + ['{a796816d-7d47-4348-9ab8-c7aeb3216a7d}'] + procedure notify(aTimer: nsITimer); safecall; + end; + +const + NS_IEVENTTARGET_DISPATCH_NORMAL = 0; + NS_IEVENTTARGET_DISPATCH_SYNC = 1; + + NS_ISUPPORTSPRIORITY_PRIORITY_HIGHEST = -20; + NS_ISUPPORTSPRIORITY_PRIORITY_HIGH = -10; + NS_ISUPPORTSPRIORITY_PRIORITY_NORMAL = 0; + NS_ISUPPORTSPRIORITY_PRIORITY_LOW = 10; + NS_ISUPPORTSPRIORITY_PRIORITY_LOWEST = 20; + +const + NS_THREADMANAGER_CONTRACTID = '@mozilla.org/thread-manager;1'; + + NS_DISPATCH_NORMAL = NS_IEVENTTARGET_DISPATCH_NORMAL; + NS_DISPATCH_SYNC = NS_IEVENTTARGET_DISPATCH_SYNC; + +type + nsTimerCallbackFunc = procedure (aTimer: nsITimer; aClosure: Pointer); cdecl; + +function NS_NewThread(aInitialEvent: nsIRunnable = nil): nsIThread; +function NS_GetCurrentThread(): nsIThread; +function NS_GetMainThread(): nsIThread; +function NS_IsMainThread(): PRBool; +procedure NS_DispatchToCurrentThread(aEvent: nsIRunnable); +procedure NS_DispatchToMainThread(aEvent: nsIRunnable; + aDispatchFlags: PRUint32 = NS_DISPATCH_NORMAL); +procedure NS_ProcessPendingEvents(aThread: nsIThread; + aTimeout: PRUint32 = $ffffffff); +// const PR_INTERVAL_NO_TIMEOUT = $ffffffff; +function NS_HasPendingEvents(aThread: nsIThread = nil): PRBool; +function NS_ProcessNextEvent(aThread: nsIThread = nil; + aMayWait: PRBool = True): PRBool; + +implementation + +uses + nsXPCOMGlue, nsError, mmsystem; + +function NS_NewThread(aInitialEvent: nsIRunnable): nsIThread; +var + tm: nsIThreadManager; + thread: nsIThread; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + thread := tm.newThread(0); + if Assigned(aInitialEvent) then + thread.dispatch(aInitialEvent, NS_DISPATCH_NORMAL); + Result := thread; +end; + +function NS_GetCurrentThread(): nsIThread; +var + tm: nsIThreadManager; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + Result := tm.currentThread; +end; + +function NS_GetMainThread(): nsIThread; +var + tm: nsIThreadManager; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + Result := tm.mainThread; +end; + +function NS_IsMainThread(): PRBool; +var + tm: nsIThreadManager; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + Result := tm.isMainThread; +end; + +procedure NS_DispatchToCurrentThread(aEvent: nsIRunnable); +var + tm: nsIThreadManager; + thread: nsIThread; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + thread := tm.currentThread; + thread.dispatch(aEvent, NS_DISPATCH_NORMAL); +end; + +procedure NS_DispatchToMainThread(aEvent: nsIRunnable; + aDispatchFlags: PRUint32); +var + tm: nsIThreadManager; + thread: nsIThread; +begin + NS_GetService(NS_THREADMANAGER_CONTRACTID, nsIThreadManager, tm); + thread := tm.mainThread; + thread.dispatch(aEvent, aDispatchFlags); +end; + +procedure NS_ProcessPendingEvents(aThread: nsIThread; + aTimeout: PRUint32); +var + start: PRUint32; + processedEvent: PRBool; +begin + if not Assigned(aThread) then + aThread := NS_GetCurrentThread; + start := timeGetTime(); + while True do + begin + processedEvent := aThread.processNextEvent(False); + if not ProcessedEvent then + Break; + if (timeGetTime()-start)>aTimeout then + Break; + end; +end; + +function NS_HasPendingEvents(aThread: nsIThread): PRBool; +begin + if not Assigned(aThread) then + aThread := NS_GetCurrentThread; + result := aThread.hasPendingEvents; +end; + +function NS_ProcessNextEvent(aThread: nsIThread; aMayWait: PRBool): PRBool; +begin + if not Assigned(aThread) then + aThread := NS_GetCurrentThread; + result := aThread.processNextEvent(aMayWait); +end; + +end. diff --git a/components/geckoport/version2/nsTypes.pas b/components/geckoport/version2/nsTypes.pas new file mode 100644 index 000000000..3407558f8 --- /dev/null +++ b/components/geckoport/version2/nsTypes.pas @@ -0,0 +1,125 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsTypes; + +interface + +type + PRBool = LongBool; + PRUint8 = Byte; + PRUint16 = Word; + PRUint32 = Longword; + PRUint64 = Int64; + PRTime = Int64; + PRInt8 = Shortint; + PRInt16 = Smallint; + PRInt32 = Longint; + PRInt64 = Int64; + + nsresult = PRint32; + nsrefcnt = PRint32; + +{$IFNDEF FPC} + size_t = SizeUint; +{$ENDIF} +{$IFDEF CPU64} + PRSize = PtrUInt; +{$ELSE} + PRSize = PRUint32; +{$ENDIF} + + PRFileDesc = type Pointer; + PRLibrary = type Pointer; + + nsCoord = PRInt32; + + nsPoint = record + x, y: nsCoord; + end; + + nsRect = record + left, top, right, bottom: nsCoord; + end; + + nsMargin = record + left, top, right, bottom: nsCoord; + end; + + TGUIDArray = array[0..16383] of TGUID; + + nsHashKey = type Pointer; + + // not FROZEN interfaces + nsIDOMCounter = interface end; + nsIDOMRect = interface end; + nsIDOMRGBColor = interface end; + nsIPrintSession = interface end; + nsIAuthPrompt = interface end; + nsIWidget = interface end; + + PPWideCharArray = ^PWideCharArray; + PWideCharArray = array[0..16383] of PWideChar; + PPAnsiCharArray = ^PAnsiCharArray; + PAnsiCharArray = array[0..16383] of PAnsiChar; + + PGUIDArray = array[0..16383] of PGUID; + + PPRFileDesc = type Pointer; + PFile = type Pointer; + PPRLibrary = type Pointer; + + PRUint8Array = ^PRUint8; + + GREVersionRange = record + lower: PAnsiChar; + lowerInclusive: PRBool; + upper: PAnsiChar; + upperInclusive: PRBool; + end; + PGREVersionRangeArray = ^GREVersionRangeArray; + GREVersionRangeArray = array [0..SizeOf(GREVersionRange)] of GREVersionRange; + + GREProperty = record + property_: PAnsiChar; + value: PAnsiChar; + end; + PGREPropertyArray = ^GREPropertyArray; + GREPropertyArray = array[0..SizeOf(GREProperty)] of GREProperty; + +implementation + +end. diff --git a/components/geckoport/version2/nsXPCOM.pas b/components/geckoport/version2/nsXPCOM.pas new file mode 100644 index 000000000..1a1c852f0 --- /dev/null +++ b/components/geckoport/version2/nsXPCOM.pas @@ -0,0 +1,4261 @@ +unit nsXPCOM; + +{$MACRO on} + +{$IFDEF Windows} + {$DEFINE extdecl:=stdcall} +{$ELSE Windows} + {$DEFINE extdecl:=cdecl} +{$ENDIF} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsGeckoStrings, +{$IFDEF Unix} + BaseUnix, +{$ENDIF} + nsTypes; + +const + EncoderService_CID_BASE = '@mozilla.org/layout/documentEncoder;1?type='; + EncoderService_MIME_APPLICATION_XHTML_XML='application/xhtml+xml'; + EncoderService_MIME_APPLICATION_XML='application/xml'; + EncoderService_MIME_IMAGE_SVGXML='image/svg+xml'; + EncoderService_MIME_TEXT_HTML='text/html'; + EncoderService_MIME_TEXT_PLAIN='text/plain'; + EncoderService_MIME_TEXT_XML='text/xml'; + + NS_ISUPPORTS_IID: TGUID = '{00000000-0000-0000-c000-000000000046}'; + + MOZIJSSUBSCRIPTLOADER_IID: TGUID = '{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'; + + NS_IARRAY_IID: TGUID = '{114744d9-c369-456e-b55a-52fe52880d2d}'; + + NS_IASN1OBJECT_IID: TGUID = '{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'; + NS_IASN1OBJECT_ASN1_END_CONTENTS = 0; + NS_IASN1OBJECT_ASN1_BOOLEAN = 1; + NS_IASN1OBJECT_ASN1_INTEGER = 2; + NS_IASN1OBJECT_ASN1_BIT_STRING = 3; + NS_IASN1OBJECT_ASN1_OCTET_STRING = 4; + NS_IASN1OBJECT_ASN1_NULL = 5; + NS_IASN1OBJECT_ASN1_OBJECT_ID = 6; + NS_IASN1OBJECT_ASN1_ENUMERATED = 10; + NS_IASN1OBJECT_ASN1_UTF8_STRING = 12; + NS_IASN1OBJECT_ASN1_SEQUENCE = 16; + NS_IASN1OBJECT_ASN1_SET = 17; + NS_IASN1OBJECT_ASN1_PRINTABLE_STRING = 19; + NS_IASN1OBJECT_ASN1_T61_STRING = 20; + NS_IASN1OBJECT_ASN1_IA5_STRING = 22; + NS_IASN1OBJECT_ASN1_UTC_TIME = 23; + NS_IASN1OBJECT_ASN1_GEN_TIME = 24; + NS_IASN1OBJECT_ASN1_VISIBLE_STRING = 26; + NS_IASN1OBJECT_ASN1_UNIVERSAL_STRING = 28; + NS_IASN1OBJECT_ASN1_BMP_STRING = 30; + NS_IASN1OBJECT_ASN1_HIGH_TAG_NUMBER = 31; + NS_IASN1OBJECT_ASN1_CONTEXT_SPECIFIC = 32; + NS_IASN1OBJECT_ASN1_APPLICATION = 33; + NS_IASN1OBJECT_ASN1_PRIVATE = 34; + + NS_IASN1SEQUENCE_IID: TGUID = '{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'; + + NS_IAUTHPROMPT_IID: TGUID = '{358089f9-ee4b-4711-82fd-bcd07fc62061}'; + NS_IAUTHPROMPT_SAVE_PASSWORD_NEVER = 0; + NS_IAUTHPROMPT_SAVE_PASSWORD_FOR_SESSION = 1; + NS_IAUTHPROMPT_SAVE_PASSWORD_PERMANENTLY = 2; + + NS_IAUTHINFORMATION_IID: TGUID = '{0D73639C-2A92-4518-9F92-28F71FEA5F20}'; + NS_IAUTHINFORMATION_AUTH_HOST = 1; + NS_IAUTHINFORMATION_AUTH_PROXY = 2; + NS_IAUTHINFORMATION_NEED_DOMAIN = 4; + NS_IAUTHINFORMATION_ONLY_PASSWORD = 8; + + NS_IAUTHPROMPT2_IID: TGUID = '{651395EB-8612-4876-8AC0-A88D4DCE9E1E}'; + + NS_IAUTHPROMPT2_LEVEL_NONE = 0; + NS_IAUTHPROMPT2_LEVEL_PW_ENCRYPTED = 1; + NS_IAUTHPROMPT2_LEVEL_SECURE = 2; + + NS_IAUTHPROMPTCALLBACK_IID: TGUID = '{BDC387D7-2D29-4CAC-92F1-DD75D786631D}'; + + NS_ISIMPLEENUMERATOR_IID: TGUID = '{d1899240-f9d2-11d2-bdd6-000064657374}'; + + NS_ICANCELABLE_IID: TGUID = '{D94AC0A0-BB18-46B8-844E-84159064B0BD}'; + + NS_ICATEGORYMANAGER_IID: TGUID = '{3275b2cd-af6d-429a-80d7-f0c5120342ac}'; + + NS_ICERTIFICATEDIALOGS_IID: TGUID = '{a03ca940-09be-11d5-ac5d-000064657374}'; + + NS_IREQUEST_IID: TGUID = '{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'; + NS_IREQUEST_LOAD_NORMAL = 0; + NS_IREQUEST_LOAD_BACKGROUND = 1; + NS_IREQUEST_INHIBIT_CACHING = 128; + NS_IREQUEST_INHIBIT_PERSISTENT_CACHING = 256; + NS_IREQUEST_LOAD_BYPASS_CACHE = 512; + NS_IREQUEST_LOAD_FROM_CACHE = 1024; + NS_IREQUEST_VALIDATE_ALWAYS = 2048; + NS_IREQUEST_VALIDATE_NEVER = 4096; + NS_IREQUEST_VALIDATE_ONCE_PER_SESSION = 8192; + + NS_ICHANNEL_IID: TGUID = '{c63a055a-a676-4e71-bf3c-6cfa11082018}'; + NS_ICHANNEL_LOAD_DOCUMENT_URI = 65536; + NS_ICHANNEL_LOAD_RETARGETED_DOCUMENT_URI = 131072; + NS_ICHANNEL_LOAD_REPLACE = 262144; + NS_ICHANNEL_LOAD_INITIAL_DOCUMENT_URI = 524288; + NS_ICHANNEL_LOAD_TARGETED = 1048576; + NS_ICHANNEL_LOAD_CALL_CONTENT_SNIFFERS = 2097152; + + NS_ICLASSINFO_IID: TGUID = '{986c11d0-f340-11d4-9075-0010a4e73d9a}'; + NS_ICLASSINFO_SINGLETON = 1; + NS_ICLASSINFO_THREADSAFE = 2; + NS_ICLASSINFO_MAIN_THREAD_ONLY = 4; + NS_ICLASSINFO_DOM_OBJECT = 8; + NS_ICLASSINFO_PLUGIN_OBJECT = 16; + NS_ICLASSINFO_EAGER_CLASSINFO = 32; + NS_ICLASSINFO_CONTENT_NODE = 64; + NS_ICLASSINFO_RESERVED = 2147483648; + + NS_ICLIPBOARDCOMMANDS_IID: TGUID = '{b8100c90-73be-11d2-92a5-00105a1b0d64}'; + + NS_ICOMPONENTMANAGER_IID: TGUID = '{a88e5a60-205a-4bb1-94e1-2628daf51eae}'; + + NS_ICOMPONENTREGISTRAR_IID: TGUID = '{2417cbfe-65ad-48a6-b4b6-eb84db174392}'; + + NS_ICONTEXTMENULISTENER_IID: TGUID = '{3478b6b0-3875-11d4-94ef-0020183bf181}'; + NS_ICONTEXTMENULISTENER_CONTEXT_NONE = 0; + NS_ICONTEXTMENULISTENER_CONTEXT_LINK = 1; + NS_ICONTEXTMENULISTENER_CONTEXT_IMAGE = 2; + NS_ICONTEXTMENULISTENER_CONTEXT_DOCUMENT = 4; + NS_ICONTEXTMENULISTENER_CONTEXT_TEXT = 8; + NS_ICONTEXTMENULISTENER_CONTEXT_INPUT = 16; + + NS_ICOOKIE_IID: TGUID = '{e9fcb9a4-d376-458f-b720-e65e7df593bc}'; + NS_ICOOKIE_STATUS_UNKNOWN = 0; + NS_ICOOKIE_STATUS_ACCEPTED = 1; + NS_ICOOKIE_STATUS_DOWNGRADED = 2; + NS_ICOOKIE_STATUS_FLAGGED = 3; + NS_ICOOKIE_STATUS_REJECTED = 4; + NS_ICOOKIE_POLICY_UNKNOWN = 0; + NS_ICOOKIE_POLICY_NONE = 1; + NS_ICOOKIE_POLICY_NO_CONSENT = 2; + NS_ICOOKIE_POLICY_IMPLICIT_CONSENT = 3; + NS_ICOOKIE_POLICY_EXPLICIT_CONSENT = 4; + NS_ICOOKIE_POLICY_NO_II = 5; + + NS_ICOOKIEMANAGER_IID: TGUID = '{aaab6710-0f2c-11d5-a53b-0010a401eb10}'; + + NS_ICRLINFO_IID: TGUID = '{c185d920-4a3e-11d5-ba27-00108303b117}'; + + NS_IDEBUG_IID: TGUID = '{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'; + + NS_IFILE_IID: TGUID = '{c8c0a080-0868-11d3-915f-d9d889d48e3c}'; + NS_IFILE_NORMAL_FILE_TYPE = 0; + NS_IFILE_DIRECTORY_TYPE = 1; + + NS_IDIRECTORYSERVICEPROVIDER_IID: TGUID = '{bbf8cab0-d43a-11d3-8cc2-00609792278c}'; + + NS_IDIRECTORYSERVICEPROVIDER2_IID: TGUID = '{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IDIRECTORYSERVICE_IID: TGUID = '{57a66a60-d43a-11d3-8cc2-00609792278c}'; + + NS_IDOCUMENTENCODERNODEFIXUP_IID: TGUID = '{C0DA5B87-0BA7-4D7C-8CB3-FCB02AF4253D}'; + + NS_IDOCUMENTENCODER_IID: TGUID = '{F85C5A20-258D-11DB-A98B-0800200C9A66}'; + + NS_IDOCUMENTENCODER_OutputSelectionOnly = Cardinal(1); + NS_IDOCUMENTENCODER_OutputFormatted = Cardinal(2); + NS_IDOCUMENTENCODER_OutputRaw = Cardinal(4); + NS_IDOCUMENTENCODER_OutputBodyOnly = Cardinal(8); + NS_IDOCUMENTENCODER_OutputPreformatted = Cardinal(16); + NS_IDOCUMENTENCODER_OutputWrap = Cardinal(32); + NS_IDOCUMENTENCODER_OutputFormatFlowed = Cardinal(64); + NS_IDOCUMENTENCODER_OutputAbsoluteLinks = Cardinal(128); + NS_IDOCUMENTENCODER_OutputEncodeW3CEntities = Cardinal(256); + NS_IDOCUMENTENCODER_OutputCRLineBreak = Cardinal(512); + NS_IDOCUMENTENCODER_OutputLFLineBreak = Cardinal(1024); + NS_IDOCUMENTENCODER_OutputNoScriptContent = Cardinal(2048); + NS_IDOCUMENTENCODER_OutputNoFramesContent = Cardinal(4096); + NS_IDOCUMENTENCODER_OutputNoFormattingInPre = Cardinal(8192); + NS_IDOCUMENTENCODER_OutputEncodeBasicEntities = Cardinal(16384); + NS_IDOCUMENTENCODER_OutputEncodeLatin1Entities = Cardinal(32768); + NS_IDOCUMENTENCODER_OutputEncodeHTMLEntities = Cardinal(65536); + NS_IDOCUMENTENCODER_OutputPersistNBSP = Cardinal(131072); + NS_IDOCUMENTENCODER_OutputDontRewriteEncodingDeclaration = Cardinal(262144); + + NS_IDOM3DOCUMENTEVENT_IID: TGUID = '{090ecc19-b7cb-4f47-ae47-ed68d4926249}'; + + NS_IDOM3EVENTTARGET_IID: TGUID = '{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'; + + NS_IDOMABSTRACTVIEW_IID: TGUID = '{f51ebade-8b1a-11d3-aae7-0010830123b4}'; + + NS_IDOMNODE_IID: TGUID = '{a6cf907c-15b3-11d2-932e-00805f8add32}'; + NS_IDOMNODE_ELEMENT_NODE = 1; + NS_IDOMNODE_ATTRIBUTE_NODE = 2; + NS_IDOMNODE_TEXT_NODE = 3; + NS_IDOMNODE_CDATA_SECTION_NODE = 4; + NS_IDOMNODE_ENTITY_REFERENCE_NODE = 5; + NS_IDOMNODE_ENTITY_NODE = 6; + NS_IDOMNODE_PROCESSING_INSTRUCTION_NODE = 7; + NS_IDOMNODE_COMMENT_NODE = 8; + NS_IDOMNODE_DOCUMENT_NODE = 9; + NS_IDOMNODE_DOCUMENT_TYPE_NODE = 10; + NS_IDOMNODE_DOCUMENT_FRAGMENT_NODE = 11; + NS_IDOMNODE_NOTATION_NODE = 12; + + NS_IDOMATTR_IID: TGUID = '{a6cf9070-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMBARPROP_IID: TGUID = '{9eb2c150-1d56-11d3-8221-0060083a0bcf}'; + + NS_IDOMCHARACTERDATA_IID: TGUID = '{a6cf9072-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMTEXT_IID: TGUID = '{a6cf9082-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCDATASECTION_IID: TGUID = '{a6cf9071-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOMMENT_IID: TGUID = '{a6cf9073-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCOUNTER_IID: TGUID = '{31adb439-0055-402d-9b1d-d5ca94f3f55b}'; + + NS_IDOMCSSVALUE_IID: TGUID = '{009f7ea5-9e80-41be-b008-db62f10823f2}'; + NS_IDOMCSSVALUE_CSS_INHERIT = 0; + NS_IDOMCSSVALUE_CSS_PRIMITIVE_VALUE = 1; + NS_IDOMCSSVALUE_CSS_VALUE_LIST = 2; + NS_IDOMCSSVALUE_CSS_CUSTOM = 3; + + NS_IDOMCSSPRIMITIVEVALUE_IID: TGUID = '{e249031f-8df9-4e7a-b644-18946dce0019}'; + NS_IDOMCSSPRIMITIVEVALUE_CSS_UNKNOWN = 0; + NS_IDOMCSSPRIMITIVEVALUE_CSS_NUMBER = 1; + NS_IDOMCSSPRIMITIVEVALUE_CSS_PERCENTAGE = 2; + NS_IDOMCSSPRIMITIVEVALUE_CSS_EMS = 3; + NS_IDOMCSSPRIMITIVEVALUE_CSS_EXS = 4; + NS_IDOMCSSPRIMITIVEVALUE_CSS_PX = 5; + NS_IDOMCSSPRIMITIVEVALUE_CSS_CM = 6; + NS_IDOMCSSPRIMITIVEVALUE_CSS_MM = 7; + NS_IDOMCSSPRIMITIVEVALUE_CSS_IN = 8; + NS_IDOMCSSPRIMITIVEVALUE_CSS_PT = 9; + NS_IDOMCSSPRIMITIVEVALUE_CSS_PC = 10; + NS_IDOMCSSPRIMITIVEVALUE_CSS_DEG = 11; + NS_IDOMCSSPRIMITIVEVALUE_CSS_RAD = 12; + NS_IDOMCSSPRIMITIVEVALUE_CSS_GRAD = 13; + NS_IDOMCSSPRIMITIVEVALUE_CSS_MS = 14; + NS_IDOMCSSPRIMITIVEVALUE_CSS_S = 15; + NS_IDOMCSSPRIMITIVEVALUE_CSS_HZ = 16; + NS_IDOMCSSPRIMITIVEVALUE_CSS_KHZ = 17; + NS_IDOMCSSPRIMITIVEVALUE_CSS_DIMENSION = 18; + NS_IDOMCSSPRIMITIVEVALUE_CSS_STRING = 19; + NS_IDOMCSSPRIMITIVEVALUE_CSS_URI = 20; + NS_IDOMCSSPRIMITIVEVALUE_CSS_IDENT = 21; + NS_IDOMCSSPRIMITIVEVALUE_CSS_ATTR = 22; + NS_IDOMCSSPRIMITIVEVALUE_CSS_COUNTER = 23; + NS_IDOMCSSPRIMITIVEVALUE_CSS_RECT = 24; + NS_IDOMCSSPRIMITIVEVALUE_CSS_RGBCOLOR = 25; + + NS_IDOMCSSRULE_IID: TGUID = '{a6cf90c1-15b3-11d2-932e-00805f8add32}'; + NS_IDOMCSSRULE_UNKNOWN_RULE = 0; + NS_IDOMCSSRULE_STYLE_RULE = 1; + NS_IDOMCSSRULE_CHARSET_RULE = 2; + NS_IDOMCSSRULE_IMPORT_RULE = 3; + NS_IDOMCSSRULE_MEDIA_RULE = 4; + NS_IDOMCSSRULE_FONT_FACE_RULE = 5; + NS_IDOMCSSRULE_PAGE_RULE = 6; + + NS_IDOMCSSRULELIST_IID: TGUID = '{a6cf90c0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLEDECLARATION_IID: TGUID = '{a6cf90be-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMSTYLESHEET_IID: TGUID = '{a6cf9080-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSSTYLESHEET_IID: TGUID = '{a6cf90c2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMCSSVALUELIST_IID: TGUID = '{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'; + + NS_IDOMEVENT_IID: TGUID = '{a66b7b80-ff46-bd97-0080-5f8ae38add32}'; + NS_IDOMEVENT_CAPTURING_PHASE = 1; + NS_IDOMEVENT_AT_TARGET = 2; + NS_IDOMEVENT_BUBBLING_PHASE = 3; + + NS_IDOMCUSTOMEVENT_IID: TGUID = '{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'; + + NS_IDOMDOCUMENT_IID: TGUID = '{a6cf9075-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTEVENT_IID: TGUID = '{46b91d66-28e2-11d4-ab1e-0010830123b4}'; + + NS_IDOMDOCUMENTFRAGMENT_IID: TGUID = '{a6cf9076-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTRANGE_IID: TGUID = '{7b9badc6-c9bc-447a-8670-dbd195aed24b}'; + + NS_IDOMDOCUMENTSTYLE_IID: TGUID = '{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'; + + NS_IDOMDOCUMENTTYPE_IID: TGUID = '{a6cf9077-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMDOCUMENTVIEW_IID: TGUID = '{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'; + + NS_IDOMDOMEXCEPTION_IID: TGUID = '{a6cf910a-15b3-11d2-932e-00805f8add32}'; + NS_IDOMDOMEXCEPTION_INDEX_SIZE_ERR = 1; + NS_IDOMDOMEXCEPTION_DOMSTRING_SIZE_ERR = 2; + NS_IDOMDOMEXCEPTION_HIERARCHY_REQUEST_ERR = 3; + NS_IDOMDOMEXCEPTION_WRONG_DOCUMENT_ERR = 4; + NS_IDOMDOMEXCEPTION_INVALID_CHARACTER_ERR = 5; + NS_IDOMDOMEXCEPTION_NO_DATA_ALLOWED_ERR = 6; + NS_IDOMDOMEXCEPTION_NO_MODIFICATION_ALLOWED_ERR = 7; + NS_IDOMDOMEXCEPTION_NOT_FOUND_ERR = 8; + NS_IDOMDOMEXCEPTION_NOT_SUPPORTED_ERR = 9; + NS_IDOMDOMEXCEPTION_INUSE_ATTRIBUTE_ERR = 10; + NS_IDOMDOMEXCEPTION_INVALID_STATE_ERR = 11; + NS_IDOMDOMEXCEPTION_SYNTAX_ERR = 12; + NS_IDOMDOMEXCEPTION_INVALID_MODIFICATION_ERR = 13; + NS_IDOMDOMEXCEPTION_NAMESPACE_ERR = 14; + NS_IDOMDOMEXCEPTION_INVALID_ACCESS_ERR = 15; + NS_IDOMDOMEXCEPTION_VALIDATION_ERR = 16; + NS_IDOMDOMEXCEPTION_TYPE_MISMATCH_ERR = 17; + + NS_IDOMDOMIMPLEMENTATION_IID: TGUID = '{a6cf9074-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENT_IID: TGUID = '{a6cf9078-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMELEMENTCSSINLINESTYLE_IID: TGUID = '{99715845-95fc-4a56-aa53-214b65c26e22}'; + + NS_IDOMENTITY_IID: TGUID = '{a6cf9079-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMENTITYREFERENCE_IID: TGUID = '{a6cf907a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMEVENTGROUP_IID: TGUID = '{33347bee-6620-4841-8152-36091ae80c7e}'; + + NS_IDOMEVENTLISTENER_IID: TGUID = '{df31c120-ded6-11d1-bd85-00805f8ae3f4}'; + + NS_IDOMEVENTTARGET_IID: TGUID = '{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'; + + NS_IDOMHTMLELEMENT_IID: TGUID = '{a6cf9085-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLANCHORELEMENT_IID: TGUID = '{a6cf90aa-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAPPLETELEMENT_IID: TGUID = '{a6cf90ae-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLAREAELEMENT_IID: TGUID = '{a6cf90b0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEELEMENT_IID: TGUID = '{a6cf908b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBASEFONTELEMENT_IID: TGUID = '{a6cf90a6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBODYELEMENT_IID: TGUID = '{a6cf908e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBRELEMENT_IID: TGUID = '{a6cf90a5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLBUTTONELEMENT_IID: TGUID = '{a6cf9095-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLCOLLECTION_IID: TGUID = '{a6cf9083-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIRECTORYELEMENT_IID: TGUID = '{a6cf909c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDIVELEMENT_IID: TGUID = '{a6cf90a0-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDLISTELEMENT_IID: TGUID = '{a6cf909b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLDOCUMENT_IID: TGUID = '{a6cf9084-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLEMBEDELEMENT_IID: TGUID = '{123f90ab-15b3-11d2-456e-00805f8add32}'; + + NS_IDOMHTMLFIELDSETELEMENT_IID: TGUID = '{a6cf9097-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFONTELEMENT_IID: TGUID = '{a6cf90a7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFORMELEMENT_IID: TGUID = '{a6cf908f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMEELEMENT_IID: TGUID = '{a6cf90b9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLFRAMESETELEMENT_IID: TGUID = '{a6cf90b8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADELEMENT_IID: TGUID = '{a6cf9087-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHEADINGELEMENT_IID: TGUID = '{a6cf90a2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHRELEMENT_IID: TGUID = '{a6cf90a8-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLHTMLELEMENT_IID: TGUID = '{a6cf9086-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIFRAMEELEMENT_IID: TGUID = '{a6cf90ba-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLIMAGEELEMENT_IID: TGUID = '{a6cf90ab-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLINPUTELEMENT_IID: TGUID = '{a6cf9093-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLISINDEXELEMENT_IID: TGUID = '{a6cf908c-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLABELELEMENT_IID: TGUID = '{a6cf9096-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLEGENDELEMENT_IID: TGUID = '{a6cf9098-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLIELEMENT_IID: TGUID = '{a6cf909e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLLINKELEMENT_IID: TGUID = '{a6cf9088-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMAPELEMENT_IID: TGUID = '{a6cf90af-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMENUELEMENT_IID: TGUID = '{a6cf909d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMETAELEMENT_IID: TGUID = '{a6cf908a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLMODELEMENT_IID: TGUID = '{a6cf90a9-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOBJECTELEMENT_IID: TGUID = '{a6cf90ac-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOLISTELEMENT_IID: TGUID = '{a6cf909a-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTGROUPELEMENT_IID: TGUID = '{a6cf9091-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONELEMENT_IID: TGUID = '{a6cf9092-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLOPTIONSCOLLECTION_IID: TGUID = '{bce0213c-f70f-488f-b93f-688acca55d63}'; + + NS_IDOMHTMLPARAGRAPHELEMENT_IID: TGUID = '{a6cf90a1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPARAMELEMENT_IID: TGUID = '{a6cf90ad-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLPREELEMENT_IID: TGUID = '{a6cf90a4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLQUOTEELEMENT_IID: TGUID = '{a6cf90a3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSCRIPTELEMENT_IID: TGUID = '{a6cf90b1-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSELECTELEMENT_IID: TGUID = '{a6cf9090-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLSTYLEELEMENT_IID: TGUID = '{a6cf908d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECAPTIONELEMENT_IID: TGUID = '{a6cf90b3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECELLELEMENT_IID: TGUID = '{a6cf90b7-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLECOLELEMENT_IID: TGUID = '{a6cf90b4-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEELEMENT_IID: TGUID = '{a6cf90b2-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLEROWELEMENT_IID: TGUID = '{a6cf90b6-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTABLESECTIONELEMENT_IID: TGUID = '{a6cf90b5-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTEXTAREAELEMENT_IID: TGUID = '{a6cf9094-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLTITLEELEMENT_IID: TGUID = '{a6cf9089-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMHTMLULISTELEMENT_IID: TGUID = '{a6cf9099-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMEDIALIST_IID: TGUID = '{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'; + + NS_IDOMUIEVENT_IID: TGUID = '{a6cf90c3-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMMOUSEEVENT_IID: TGUID = '{ff751edc-8b02-aae7-0010-8301838a3123}'; + + NS_IDOMNAMEDNODEMAP_IID: TGUID = '{a6cf907b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNODELIST_IID: TGUID = '{a6cf907d-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNOTATION_IID: TGUID = '{a6cf907e-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMNSHTMLDOCUMENT_IID: TGUID = '{79BEB289-3644-4B54-9432-9FB993945629}'; + + NS_IDOMOFFLINERESOURCELIST_IID: TGUID = '{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'; + NS_IDOMOFFLINERESOURCELIST_UNCACHED = 0; + NS_IDOMOFFLINERESOURCELIST_IDLE = 1; + NS_IDOMOFFLINERESOURCELIST_CHECKING = 2; + NS_IDOMOFFLINERESOURCELIST_DOWNLOADING = 3; + NS_IDOMOFFLINERESOURCELIST_UPDATEREADY = 4; + + NS_IDOMPROCESSINGINSTRUCTION_IID: TGUID = '{a6cf907f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMRANGE_IID: TGUID = '{a6cf90ce-15b3-11d2-932e-00805f8add32}'; + NS_IDOMRANGE_START_TO_START = 0; + NS_IDOMRANGE_START_TO_END = 1; + NS_IDOMRANGE_END_TO_END = 2; + NS_IDOMRANGE_END_TO_START = 3; + + NS_IDOMRECT_IID: TGUID = '{71735f62-ac5c-4236-9a1f-5ffb280d531c}'; + + NS_IDOMRGBCOLOR_IID: TGUID = '{6aff3102-320d-4986-9790-12316bb87cf9}'; + + NS_IDOMSTORAGE_IID: TGUID = '{95cc1383-3b62-4b89-aaef-1004a513ef47}'; + + NS_IDOMSTORAGEEVENT_IID: TGUID = '{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'; + + NS_IDOMSTORAGEITEM_IID: TGUID = '{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'; + + NS_IDOMSTORAGELIST_IID: TGUID = '{f2166929-91b6-4372-8d5f-c366f47a5f54}'; + + NS_IDOMSTORAGEWINDOW_IID: TGUID = '{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'; + + NS_IDOMSTYLESHEETLIST_IID: TGUID = '{a6cf9081-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW_IID: TGUID = '{a6cf906b-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOW2_IID: TGUID = '{73c5fa35-3add-4c87-a303-a850ccf4d65a}'; + + NS_IDOMWINDOWCOLLECTION_IID: TGUID = '{a6cf906f-15b3-11d2-932e-00805f8add32}'; + + NS_IDOMWINDOWUTILS_IID: TGUID = '{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'; + + NS_IEMBEDDINGSITEWINDOW_IID: TGUID = '{3e5432cd-9568-4bd1-8cbe-d50aba110743}'; + NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_POSITION = 1; + NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_INNER = 2; + NS_IEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_OUTER = 4; + + NS_IFACTORY_IID: TGUID = '{00000001-0000-0000-c000-000000000046}'; + + NS_IURI_IID: TGUID = '{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'; + + NS_IURL_IID: TGUID = '{d6116970-8034-11d3-9399-00104ba0fd40}'; + + NS_IFILEURL_IID: TGUID = '{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'; + + NS_IGLOBALHISTORY_IID: TGUID = '{9491c383-e3c4-11d2-bdbe-0050040a9b44}'; + + NS_IHASHABLE_IID: TGUID = '{17e595fa-b57a-4933-bd0f-b1812e8ab188}'; + + NS_IHISTORYENTRY_IID: TGUID = '{a41661d4-1417-11d5-9882-00c04fa02f40}'; + + NS_IHTTPCHANNEL_IID: TGUID = '{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'; + + NS_IHTTPHEADERVISITOR_IID: TGUID = '{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'; + + NS_IINPUTSTREAM_IID: TGUID = '{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'; + + NS_IINTERFACEREQUESTOR_IID: TGUID = '{033a1470-8b2a-11d3-af88-00a024ffc08c}'; + + NS_IIOSERVICE_IID: TGUID = '{bddeda3f-9020-4d12-8c70-984ee9f7935e}'; + + NS_IJSON_IID: TGUID = '{45464c36-efde-4cb5-8e00-07480533ff35}'; + + NS_ILOADGROUP_IID: TGUID = '{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'; + + NS_ILOCALFILE_IID: TGUID = '{aa610f20-a889-11d3-8c81-000064657374}'; + + NS_IMEMORY_IID: TGUID = '{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'; + + NS_IMODULE_IID: TGUID = '{7392d032-5371-11d3-994e-00805fd26fee}'; + + NS_IMUTABLEARRAY_IID: TGUID = '{af059da0-c85b-40ec-af07-ae4bfdc192cc}'; + + NS_IOBSERVER_IID: TGUID = '{db242e01-e4d9-11d2-9dde-000064657374}'; + + NS_IOBSERVERSERVICE_IID: TGUID = '{d07f5192-e3d1-11d2-8acd-00105a1b8860}'; + + NS_IOUTPUTSTREAM_IID: TGUID = '{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'; + + NS_IPREFBRANCH_IID: TGUID = '{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'; + NS_IPREFBRANCH_PREF_INVALID = 0; + NS_IPREFBRANCH_PREF_STRING = 32; + NS_IPREFBRANCH_PREF_INT = 64; + NS_IPREFBRANCH_PREF_BOOL = 128; + + NS_IPREFBRANCH2_IID: TGUID = '{74567534-eb94-4b1c-8f45-389643bfc555}'; + + NS_IPREFLOCALIZEDSTRING_IID: TGUID = '{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'; + + NS_IPREFSERVICE_IID: TGUID = '{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'; + + NS_IPRINTSESSION_IID: TGUID = '{2f977d52-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPRINTSETTINGS_IID: TGUID = '{5af07661-6477-4235-8814-4a45215855b8}'; + NS_IPRINTSETTINGS_kInitSaveOddEvenPages = 1; + NS_IPRINTSETTINGS_kInitSaveHeaderLeft = 2; + NS_IPRINTSETTINGS_kInitSaveHeaderCenter = 4; + NS_IPRINTSETTINGS_kInitSaveHeaderRight = 8; + NS_IPRINTSETTINGS_kInitSaveFooterLeft = 16; + NS_IPRINTSETTINGS_kInitSaveFooterCenter = 32; + NS_IPRINTSETTINGS_kInitSaveFooterRight = 64; + NS_IPRINTSETTINGS_kInitSaveBGColors = 128; + NS_IPRINTSETTINGS_kInitSaveBGImages = 256; + NS_IPRINTSETTINGS_kInitSavePaperSize = 512; + NS_IPRINTSETTINGS_kInitSavePaperData = 8192; + NS_IPRINTSETTINGS_kInitSaveUnwriteableMargins = 16384; + NS_IPRINTSETTINGS_kInitSaveEdges = 32768; + NS_IPRINTSETTINGS_kInitSaveReversed = 65536; + NS_IPRINTSETTINGS_kInitSaveInColor = 131072; + NS_IPRINTSETTINGS_kInitSaveOrientation = 262144; + NS_IPRINTSETTINGS_kInitSavePrintCommand = 524288; + NS_IPRINTSETTINGS_kInitSavePrinterName = 1048576; + NS_IPRINTSETTINGS_kInitSavePrintToFile = 2097152; + NS_IPRINTSETTINGS_kInitSaveToFileName = 4194304; + NS_IPRINTSETTINGS_kInitSavePageDelay = 8388608; + NS_IPRINTSETTINGS_kInitSaveMargins = 16777216; + NS_IPRINTSETTINGS_kInitSaveNativeData = 33554432; + NS_IPRINTSETTINGS_kInitSavePlexName = 67108864; + NS_IPRINTSETTINGS_kInitSaveShrinkToFit = 134217728; + NS_IPRINTSETTINGS_kInitSaveScaling = 268435456; + NS_IPRINTSETTINGS_kInitSaveColorspace = 536870912; + NS_IPRINTSETTINGS_kInitSaveResolutionName = 1073741824; + NS_IPRINTSETTINGS_kInitSaveDownloadFonts = 2147483648; + NS_IPRINTSETTINGS_kInitSaveAll = 4294967295; + NS_IPRINTSETTINGS_kPrintOddPages = 1; + NS_IPRINTSETTINGS_kPrintEvenPages = 2; + NS_IPRINTSETTINGS_kEnableSelectionRB = 4; + NS_IPRINTSETTINGS_kRangeAllPages = 0; + NS_IPRINTSETTINGS_kRangeSpecifiedPageRange = 1; + NS_IPRINTSETTINGS_kRangeSelection = 2; + NS_IPRINTSETTINGS_kRangeFocusFrame = 3; + NS_IPRINTSETTINGS_kJustLeft = 0; + NS_IPRINTSETTINGS_kJustCenter = 1; + NS_IPRINTSETTINGS_kJustRight = 2; + NS_IPRINTSETTINGS_kUseInternalDefault = 0; + NS_IPRINTSETTINGS_kUseSettingWhenPossible = 1; + NS_IPRINTSETTINGS_kPaperSizeNativeData = 0; + NS_IPRINTSETTINGS_kPaperSizeDefined = 1; + NS_IPRINTSETTINGS_kPaperSizeInches = 0; + NS_IPRINTSETTINGS_kPaperSizeMillimeters = 1; + NS_IPRINTSETTINGS_kPortraitOrientation = 0; + NS_IPRINTSETTINGS_kLandscapeOrientation = 1; + NS_IPRINTSETTINGS_kNoFrames = 0; + NS_IPRINTSETTINGS_kFramesAsIs = 1; + NS_IPRINTSETTINGS_kSelectedFrame = 2; + NS_IPRINTSETTINGS_kEachFrameSep = 3; + NS_IPRINTSETTINGS_kFrameEnableNone = 0; + NS_IPRINTSETTINGS_kFrameEnableAll = 1; + NS_IPRINTSETTINGS_kFrameEnableAsIsAndEach = 2; + NS_IPRINTSETTINGS_kOutputFormatNative = 0; + NS_IPRINTSETTINGS_kOutputFormatPS = 1; + NS_IPRINTSETTINGS_kOutputFormatPDF = 2; + + NS_IPROFILE_IID: TGUID = '{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'; + NS_IPROFILE_SHUTDOWN_PERSIST = 1; + NS_IPROFILE_SHUTDOWN_CLEANSE = 2; + + NS_IPROFILECHANGESTATUS_IID: TGUID = '{2f977d43-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IPROGRAMMINGLANGUAGE_IID: TGUID = '{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'; + NS_IPROGRAMMINGLANGUAGE_UNKNOWN = 0; + NS_IPROGRAMMINGLANGUAGE_CPLUSPLUS = 1; + NS_IPROGRAMMINGLANGUAGE_JAVASCRIPT = 2; + NS_IPROGRAMMINGLANGUAGE_PYTHON = 3; + NS_IPROGRAMMINGLANGUAGE_PERL = 4; + NS_IPROGRAMMINGLANGUAGE_JAVA = 5; + NS_IPROGRAMMINGLANGUAGE_ZX81_BASIC = 6; + NS_IPROGRAMMINGLANGUAGE_JAVASCRIPT2 = 7; + NS_IPROGRAMMINGLANGUAGE_RUBY = 8; + NS_IPROGRAMMINGLANGUAGE_PHP = 9; + NS_IPROGRAMMINGLANGUAGE_TCL = 10; + NS_IPROGRAMMINGLANGUAGE_MAX = 10; + + NS_IPROMPT_IID: TGUID = '{a63f70c0-148b-11d3-9333-00104ba0fd40}'; + + NS_IPROMPT_BUTTON_POS_0 = 1; + NS_IPROMPT_BUTTON_POS_1 = 256; + NS_IPROMPT_BUTTON_POS_2 = 65536; + NS_IPROMPT_BUTTON_TITLE_OK = 1; + NS_IPROMPT_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPT_BUTTON_TITLE_YES = 3; + NS_IPROMPT_BUTTON_TITLE_NO = 4; + NS_IPROMPT_BUTTON_TITLE_SAVE = 5; + NS_IPROMPT_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPT_BUTTON_TITLE_REVERT = 7; + NS_IPROMPT_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPT_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPT_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPT_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPT_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPT_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPT_STD_YES_NO_BUTTONS = 1027; + + NS_IPROMPTSERVICE_IID: TGUID = '{1630c61a-325e-49ca-8759-a31b16c47aa5}'; + + NS_IPROMPTSERVICE_BUTTON_POS_0 = 1; + NS_IPROMPTSERVICE_BUTTON_POS_1 = 256; + NS_IPROMPTSERVICE_BUTTON_POS_2 = 65536; + NS_IPROMPTSERVICE_BUTTON_TITLE_OK = 1; + NS_IPROMPTSERVICE_BUTTON_TITLE_CANCEL = 2; + NS_IPROMPTSERVICE_BUTTON_TITLE_YES = 3; + NS_IPROMPTSERVICE_BUTTON_TITLE_NO = 4; + NS_IPROMPTSERVICE_BUTTON_TITLE_SAVE = 5; + NS_IPROMPTSERVICE_BUTTON_TITLE_DONT_SAVE = 6; + NS_IPROMPTSERVICE_BUTTON_TITLE_REVERT = 7; + NS_IPROMPTSERVICE_BUTTON_TITLE_IS_STRING = 127; + NS_IPROMPTSERVICE_BUTTON_POS_0_DEFAULT = 0; + NS_IPROMPTSERVICE_BUTTON_POS_1_DEFAULT = 16777216; + NS_IPROMPTSERVICE_BUTTON_POS_2_DEFAULT = 33554432; + NS_IPROMPTSERVICE_BUTTON_DELAY_ENABLE = 67108864; + NS_IPROMPTSERVICE_STD_OK_CANCEL_BUTTONS = 513; + NS_IPROMPTSERVICE_STD_YES_NO_BUTTONS = 1027; + + NS_IPROMPTSERVICE2_IID: TGUID = '{CF86D196-DBEE-4482-9DFA-3477AA128319}'; + + NS_IPROPERTIES_IID: TGUID = '{78650582-4e93-4b60-8e85-26ebd3eb14ca}'; + + NS_IPROTOCOLHANDLER_IID: TGUID = '{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'; + NS_IPROTOCOLHANDLER_URI_STD = 0; + NS_IPROTOCOLHANDLER_URI_NORELATIVE = 1; + NS_IPROTOCOLHANDLER_URI_NOAUTH = 2; + NS_IPROTOCOLHANDLER_URI_INHERITS_SECURITY_CONTEXT = 16; + NS_IPROTOCOLHANDLER_URI_FORBIDS_AUTOMATIC_DOCUMENT_REPLACEMENT = 32; + NS_IPROTOCOLHANDLER_URI_LOADABLE_BY_ANYONE = 64; + NS_IPROTOCOLHANDLER_URI_DANGEROUS_TO_LOAD = 128; + NS_IPROTOCOLHANDLER_URI_IS_UI_RESOURCE = 256; + NS_IPROTOCOLHANDLER_URI_IS_LOCAL_FILE = 512; + NS_IPROTOCOLHANDLER_URI_NON_PERSISTABLE = 1024; + NS_IPROTOCOLHANDLER_URI_DOES_NOT_RETURN_DATA = 2048; + NS_IPROTOCOLHANDLER_ALLOWS_PROXY = 4; + NS_IPROTOCOLHANDLER_ALLOWS_PROXY_HTTP = 8; + + NS_IREQUESTOBSERVER_IID: TGUID = '{fd91e2e0-1481-11d3-9333-00104ba0fd40}'; + + NS_ISCRIPTABLEINPUTSTREAM_IID: TGUID = '{a2a32f90-9b90-11d3-a189-0050041caf44}'; + + NS_ISECURITYWARNINGDIALOGS_IID: TGUID = '{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'; + + NS_ISELECTION_IID: TGUID = '{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'; + + NS_ISERVICEMANAGER_IID: TGUID = '{8bb35ed9-e332-462d-9155-4a002ab5c958}'; + + NS_ISHISTORY_IID: TGUID = '{9883609f-cdd8-4d83-9b55-868ff08ad433}'; + + NS_ISHISTORYLISTENER_IID: TGUID = '{3b07f591-e8e1-11d4-9882-00c04fa02f40}'; + + NS_ISTREAMLISTENER_IID: TGUID = '{1a637020-1482-11d3-9333-00104ba0fd40}'; + + NS_ISUPPORTSPRIMITIVE_IID: TGUID = '{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'; + NS_ISUPPORTSPRIMITIVE_TYPE_ID = 1; + NS_ISUPPORTSPRIMITIVE_TYPE_CSTRING = 2; + NS_ISUPPORTSPRIMITIVE_TYPE_STRING = 3; + NS_ISUPPORTSPRIMITIVE_TYPE_PRBOOL = 4; + NS_ISUPPORTSPRIMITIVE_TYPE_PRUINT8 = 5; + NS_ISUPPORTSPRIMITIVE_TYPE_PRUINT16 = 6; + NS_ISUPPORTSPRIMITIVE_TYPE_PRUINT32 = 7; + NS_ISUPPORTSPRIMITIVE_TYPE_PRUINT64 = 8; + NS_ISUPPORTSPRIMITIVE_TYPE_PRTIME = 9; + NS_ISUPPORTSPRIMITIVE_TYPE_CHAR = 10; + NS_ISUPPORTSPRIMITIVE_TYPE_PRINT16 = 11; + NS_ISUPPORTSPRIMITIVE_TYPE_PRINT32 = 12; + NS_ISUPPORTSPRIMITIVE_TYPE_PRINT64 = 13; + NS_ISUPPORTSPRIMITIVE_TYPE_FLOAT = 14; + NS_ISUPPORTSPRIMITIVE_TYPE_DOUBLE = 15; + NS_ISUPPORTSPRIMITIVE_TYPE_VOID = 16; + NS_ISUPPORTSPRIMITIVE_TYPE_INTERFACE_POINTER = 17; + + NS_ISUPPORTSID_IID: TGUID = '{d18290a0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCSTRING_IID: TGUID = '{d65ff270-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSSTRING_IID: TGUID = '{d79dc970-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRBOOL_IID: TGUID = '{ddc3b490-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT8_IID: TGUID = '{dec2e4e0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT16_IID: TGUID = '{dfacb090-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT32_IID: TGUID = '{e01dc470-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRUINT64_IID: TGUID = '{e13567c0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRTIME_IID: TGUID = '{e2563630-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSCHAR_IID: TGUID = '{e2b05e40-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT16_IID: TGUID = '{e30d94b0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT32_IID: TGUID = '{e36c5250-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSPRINT64_IID: TGUID = '{e3cb0ff0-4a1c-11d3-9890-006008962422}'; + + NS_ISUPPORTSFLOAT_IID: TGUID = '{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSDOUBLE_IID: TGUID = '{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'; + + NS_ISUPPORTSVOID_IID: TGUID = '{464484f0-568d-11d3-baf8-00805f8a5dd7}'; + + NS_ISUPPORTSINTERFACEPOINTER_IID: TGUID = '{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'; + + NS_ITOOLTIPLISTENER_IID: TGUID = '{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'; + + NS_ITOOLTIPTEXTPROVIDER_IID: TGUID = '{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'; + + NS_ITRACEREFCNT_IID: TGUID = '{273dc92f-0fe6-4545-96a9-21be77828039}'; + + NS_IUNICHARSTREAMLISTENER_IID: TGUID = '{4a7e9b62-fef8-400d-9865-d6820f630b4c}'; + + NS_IUPLOADCHANNEL_IID: TGUID = '{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'; + + NS_IURICONTENTLISTENER_IID: TGUID = '{94928ab3-8b63-11d3-989d-001083010e9b}'; + + NS_IWEAKREFERENCE_IID: TGUID = '{9188bc85-f92e-11d2-81ef-0060083a0bcf}'; + + NS_ISUPPORTSWEAKREFERENCE_IID: TGUID = '{9188bc86-f92e-11d2-81ef-0060083a0bcf}'; + + NS_IWEBBROWSER_IID: TGUID = '{69e5df00-7b8b-11d3-af61-00a024ffc08c}'; + + NS_IWEBBROWSERCHROME_IID: TGUID = '{ba434c60-9d52-11d3-afb0-00a024ffc08c}'; + NS_IWEBBROWSERCHROME_STATUS_SCRIPT = 1; + NS_IWEBBROWSERCHROME_STATUS_SCRIPT_DEFAULT = 2; + NS_IWEBBROWSERCHROME_STATUS_LINK = 3; + NS_IWEBBROWSERCHROME_CHROME_DEFAULT = 1; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_BORDERS = 2; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_CLOSE = 4; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_RESIZE = 8; + NS_IWEBBROWSERCHROME_CHROME_MENUBAR = 16; + NS_IWEBBROWSERCHROME_CHROME_TOOLBAR = 32; + NS_IWEBBROWSERCHROME_CHROME_LOCATIONBAR = 64; + NS_IWEBBROWSERCHROME_CHROME_STATUSBAR = 128; + NS_IWEBBROWSERCHROME_CHROME_PERSONAL_TOOLBAR = 256; + NS_IWEBBROWSERCHROME_CHROME_SCROLLBARS = 512; + NS_IWEBBROWSERCHROME_CHROME_TITLEBAR = 1024; + NS_IWEBBROWSERCHROME_CHROME_EXTRA = 2048; + NS_IWEBBROWSERCHROME_CHROME_WITH_SIZE = 4096; + NS_IWEBBROWSERCHROME_CHROME_WITH_POSITION = 8192; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_MIN = 16384; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_POPUP = 32768; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_RAISED = 33554432; + NS_IWEBBROWSERCHROME_CHROME_WINDOW_LOWERED = 67108864; + NS_IWEBBROWSERCHROME_CHROME_CENTER_SCREEN = 134217728; + NS_IWEBBROWSERCHROME_CHROME_DEPENDENT = 268435456; + NS_IWEBBROWSERCHROME_CHROME_MODAL = 536870912; + NS_IWEBBROWSERCHROME_CHROME_OPENAS_DIALOG = 1073741824; + NS_IWEBBROWSERCHROME_CHROME_OPENAS_CHROME = 2147483648; + NS_IWEBBROWSERCHROME_CHROME_ALL = 4094; + + NS_IWEBBROWSERCHROMEFOCUS_IID: TGUID = '{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'; + + NS_IWEBBROWSERFIND_IID: TGUID = '{2f977d44-5485-11d4-87e2-0010a4e75ef2}'; + + NS_IWEBBROWSERFINDINFRAMES_IID: TGUID = '{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'; + + NS_IWEBBROWSERFOCUS_IID: TGUID = '{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'; + + NS_IWEBBROWSERPRINT_IID: TGUID = '{9a7ca4b0-fbba-11d4-a869-00105a183419}'; + NS_IWEBBROWSERPRINT_PRINTPREVIEW_GOTO_PAGENUM = 0; + NS_IWEBBROWSERPRINT_PRINTPREVIEW_PREV_PAGE = 1; + NS_IWEBBROWSERPRINT_PRINTPREVIEW_NEXT_PAGE = 2; + NS_IWEBBROWSERPRINT_PRINTPREVIEW_HOME = 3; + NS_IWEBBROWSERPRINT_PRINTPREVIEW_END = 4; + + NS_IWEBBROWSERSETUP_IID: TGUID = '{f15398a0-8018-11d3-af70-00a024ffc08c}'; + NS_IWEBBROWSERSETUP_SETUP_ALLOW_PLUGINS = 1; + NS_IWEBBROWSERSETUP_SETUP_ALLOW_JAVASCRIPT = 2; + NS_IWEBBROWSERSETUP_SETUP_ALLOW_META_REDIRECTS = 3; + NS_IWEBBROWSERSETUP_SETUP_ALLOW_SUBFRAMES = 4; + NS_IWEBBROWSERSETUP_SETUP_ALLOW_IMAGES = 5; + NS_IWEBBROWSERSETUP_SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + NS_IWEBBROWSERSETUP_SETUP_USE_GLOBAL_HISTORY = 256; + NS_IWEBBROWSERSETUP_SETUP_IS_CHROME_WRAPPER = 7; + + NS_IWEBBROWSERSTREAM_IID: TGUID = '{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'; + + NS_IWEBPROGRESS_IID: TGUID = '{570f39d0-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESS_NOTIFY_STATE_REQUEST = 1; + NS_IWEBPROGRESS_NOTIFY_STATE_DOCUMENT = 2; + NS_IWEBPROGRESS_NOTIFY_STATE_NETWORK = 4; + NS_IWEBPROGRESS_NOTIFY_STATE_WINDOW = 8; + NS_IWEBPROGRESS_NOTIFY_STATE_ALL = 15; + NS_IWEBPROGRESS_NOTIFY_PROGRESS = 16; + NS_IWEBPROGRESS_NOTIFY_STATUS = 32; + NS_IWEBPROGRESS_NOTIFY_SECURITY = 64; + NS_IWEBPROGRESS_NOTIFY_LOCATION = 128; + NS_IWEBPROGRESS_NOTIFY_REFRESH = 256; + NS_IWEBPROGRESS_NOTIFY_ALL = 511; + + NS_IWEBPROGRESSLISTENER_IID: TGUID = '{570f39d1-efd0-11d3-b093-00a024ffc08c}'; + NS_IWEBPROGRESSLISTENER_STATE_START = 1; + NS_IWEBPROGRESSLISTENER_STATE_REDIRECTING = 2; + NS_IWEBPROGRESSLISTENER_STATE_TRANSFERRING = 4; + NS_IWEBPROGRESSLISTENER_STATE_NEGOTIATING = 8; + NS_IWEBPROGRESSLISTENER_STATE_STOP = 16; + NS_IWEBPROGRESSLISTENER_STATE_IS_REQUEST = 65536; + NS_IWEBPROGRESSLISTENER_STATE_IS_DOCUMENT = 131072; + NS_IWEBPROGRESSLISTENER_STATE_IS_NETWORK = 262144; + NS_IWEBPROGRESSLISTENER_STATE_IS_WINDOW = 524288; + NS_IWEBPROGRESSLISTENER_STATE_RESTORING = 16777216; + NS_IWEBPROGRESSLISTENER_STATE_IS_INSECURE = 4; + NS_IWEBPROGRESSLISTENER_STATE_IS_BROKEN = 1; + NS_IWEBPROGRESSLISTENER_STATE_IS_SECURE = 2; + NS_IWEBPROGRESSLISTENER_STATE_SECURE_HIGH = 262144; + NS_IWEBPROGRESSLISTENER_STATE_SECURE_MED = 65536; + NS_IWEBPROGRESSLISTENER_STATE_SECURE_LOW = 131072; + NS_IWEBPROGRESSLISTENER_STATE_IDENTITY_EV_TOPLEVEL = 1048576; + + NS_IWINDOWCREATOR_IID: TGUID = '{30465632-a777-44cc-90f9-8145475ef999}'; + + NS_IWINDOWWATCHER_IID: TGUID = '{002286a8-494b-43b3-8ddd-49e3fc50622b}'; + + NS_IX509CERT_IID: TGUID = '{f0980f60-ee3d-11d4-998b-00b0d02354a0}'; + NS_IX509CERT_UNKNOWN_CERT = 0; + NS_IX509CERT_CA_CERT = 1; + NS_IX509CERT_USER_CERT = 2; + NS_IX509CERT_EMAIL_CERT = 4; + NS_IX509CERT_SERVER_CERT = 8; + NS_IX509CERT_VERIFIED_OK = 0; + NS_IX509CERT_NOT_VERIFIED_UNKNOWN = 1; + NS_IX509CERT_CERT_REVOKED = 2; + NS_IX509CERT_CERT_EXPIRED = 4; + NS_IX509CERT_CERT_NOT_TRUSTED = 8; + NS_IX509CERT_ISSUER_NOT_TRUSTED = 16; + NS_IX509CERT_ISSUER_UNKNOWN = 32; + NS_IX509CERT_INVALID_CA = 64; + NS_IX509CERT_USAGE_NOT_ALLOWED = 128; + NS_IX509CERT_CERT_USAGE_SSLClient = 0; + NS_IX509CERT_CERT_USAGE_SSLServer = 1; + NS_IX509CERT_CERT_USAGE_SSLServerWithStepUp = 2; + NS_IX509CERT_CERT_USAGE_SSLCA = 3; + NS_IX509CERT_CERT_USAGE_EmailSigner = 4; + NS_IX509CERT_CERT_USAGE_EmailRecipient = 5; + NS_IX509CERT_CERT_USAGE_ObjectSigner = 6; + NS_IX509CERT_CERT_USAGE_UserCertImport = 7; + NS_IX509CERT_CERT_USAGE_VerifyCA = 8; + NS_IX509CERT_CERT_USAGE_ProtectedObjectSigner = 9; + NS_IX509CERT_CERT_USAGE_StatusResponder = 10; + NS_IX509CERT_CERT_USAGE_AnyCA = 11; + + NS_IX509CERTDB_IID: TGUID = '{da48b3c0-1284-11d5-ac67-000064657374}'; + NS_IX509CERTDB_UNTRUSTED = 0; + NS_IX509CERTDB_TRUSTED_SSL = 1; + NS_IX509CERTDB_TRUSTED_EMAIL = 2; + NS_IX509CERTDB_TRUSTED_OBJSIGN = 4; + + NS_IX509CERTVALIDITY_IID: TGUID = '{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'; + +type + nsISupports = interface; + mozIJSSubScriptLoader = interface; + nsIArray = interface; + nsIASN1Object = interface; + nsIASN1Sequence = interface; + nsIAuthPrompt = interface; + nsISimpleEnumerator = interface; + nsICategoryManager = interface; + nsICertificateDialogs = interface; + nsIRequest = interface; + nsIChannel = interface; + nsIClassInfo = interface; + nsIClipboardCommands = interface; + nsIComponentManager = interface; + nsIComponentRegistrar = interface; + nsIContextMenuListener = interface; + nsICookie = interface; + nsICookieManager = interface; + nsICRLInfo = interface; + nsIDebug = interface; + nsIFile = interface; + nsIDirectoryServiceProvider = interface; + nsIDirectoryServiceProvider2 = interface; + nsIDirectoryService = interface; + nsIDocumentEncoder = interface; + nsIDocumentEncoderNodeFixup = interface; + nsIDOM3DocumentEvent = interface; + nsIDOM3EventTarget = interface; + nsIDOMAbstractView = interface; + nsIDOMNode = interface; + nsIDOMAttr = interface; + nsIDOMBarProp = interface; + nsIDOMCharacterData = interface; + nsIDOMText = interface; + nsIDOMCDATASection = interface; + nsIDOMComment = interface; + nsIDOMCounter = interface; + nsIDOMCSSValue = interface; + nsIDOMCSSPrimitiveValue = interface; + nsIDOMCSSRule = interface; + nsIDOMCSSRuleList = interface; + nsIDOMCSSStyleDeclaration = interface; + nsIDOMStyleSheet = interface; + nsIDOMCSSStyleSheet = interface; + nsIDOMCSSValueList = interface; + nsIDOMEvent = interface; + nsIDOMCustomEvent = interface; + nsIDOMDocument = interface; + nsIDOMDocumentEvent = interface; + nsIDOMDocumentFragment = interface; + nsIDOMDocumentRange = interface; + nsIDOMDocumentStyle = interface; + nsIDOMDocumentType = interface; + nsIDOMDocumentView = interface; + nsIDOMDOMException = interface; + nsIDOMDOMImplementation = interface; + nsIDOMElement = interface; + nsIDOMElementCSSInlineStyle = interface; + nsIDOMEntity = interface; + nsIDOMEntityReference = interface; + nsIDOMEventGroup = interface; + nsIDOMEventListener = interface; + nsIDOMEventTarget = interface; + nsIDOMHTMLElement = interface; + nsIDOMHTMLAnchorElement = interface; + nsIDOMHTMLAppletElement = interface; + nsIDOMHTMLAreaElement = interface; + nsIDOMHTMLBaseElement = interface; + nsIDOMHTMLBaseFontElement = interface; + nsIDOMHTMLBodyElement = interface; + nsIDOMHTMLBRElement = interface; + nsIDOMHTMLButtonElement = interface; + nsIDOMHTMLCollection = interface; + nsIDOMHTMLDirectoryElement = interface; + nsIDOMHTMLDivElement = interface; + nsIDOMHTMLDListElement = interface; + nsIDOMHTMLDocument = interface; + nsIDOMHTMLEmbedElement = interface; + nsIDOMHTMLFieldSetElement = interface; + nsIDOMHTMLFontElement = interface; + nsIDOMHTMLFormElement = interface; + nsIDOMHTMLFrameElement = interface; + nsIDOMHTMLFrameSetElement = interface; + nsIDOMHTMLHeadElement = interface; + nsIDOMHTMLHeadingElement = interface; + nsIDOMHTMLHRElement = interface; + nsIDOMHTMLHtmlElement = interface; + nsIDOMHTMLIFrameElement = interface; + nsIDOMHTMLImageElement = interface; + nsIDOMHTMLInputElement = interface; + nsIDOMHTMLIsIndexElement = interface; + nsIDOMHTMLLabelElement = interface; + nsIDOMHTMLLegendElement = interface; + nsIDOMHTMLLIElement = interface; + nsIDOMHTMLLinkElement = interface; + nsIDOMHTMLMapElement = interface; + nsIDOMHTMLMenuElement = interface; + nsIDOMHTMLMetaElement = interface; + nsIDOMHTMLModElement = interface; + nsIDOMHTMLObjectElement = interface; + nsIDOMHTMLOListElement = interface; + nsIDOMHTMLOptGroupElement = interface; + nsIDOMHTMLOptionElement = interface; + nsIDOMHTMLOptionsCollection = interface; + nsIDOMHTMLParagraphElement = interface; + nsIDOMHTMLParamElement = interface; + nsIDOMHTMLPreElement = interface; + nsIDOMHTMLQuoteElement = interface; + nsIDOMHTMLScriptElement = interface; + nsIDOMHTMLSelectElement = interface; + nsIDOMHTMLStyleElement = interface; + nsIDOMHTMLTableCaptionElement = interface; + nsIDOMHTMLTableCellElement = interface; + nsIDOMHTMLTableColElement = interface; + nsIDOMHTMLTableElement = interface; + nsIDOMHTMLTableRowElement = interface; + nsIDOMHTMLTableSectionElement = interface; + nsIDOMHTMLTextAreaElement = interface; + nsIDOMHTMLTitleElement = interface; + nsIDOMHTMLUListElement = interface; + nsIDOMMediaList = interface; + nsIDOMUIEvent = interface; + nsIDOMMouseEvent = interface; + nsIDOMNamedNodeMap = interface; + nsIDOMNodeList = interface; + nsIDOMNotation = interface; + nsIDOMNSHTMLDocument = interface; + nsIDOMOfflineResourceList = interface; + nsIDOMProcessingInstruction = interface; + nsIDOMRange = interface; + nsIDOMRect = interface; + nsIDOMRGBColor = interface; + nsIDOMStorage = interface; + nsIDOMStorageEvent = interface; + nsIDOMStorageItem = interface; + nsIDOMStorageList = interface; + nsIDOMStorageWindow = interface; + nsIDOMStyleSheetList = interface; + nsIDOMWindow = interface; + nsIDOMWindow2 = interface; + nsIDOMWindowCollection = interface; + nsIDOMWindowUtils = interface; + nsIEmbeddingSiteWindow = interface; + nsIFactory = interface; + nsIURI = interface; + nsIURL = interface; + nsIFileURL = interface; + nsIGlobalHistory = interface; + nsIHashable = interface; + nsIHistoryEntry = interface; + nsIHttpChannel = interface; + nsIHttpHeaderVisitor = interface; + nsIInputStream = interface; + nsIInterfaceRequestor = interface; + nsIIOService = interface; + nsIJSON = interface; + nsILoadGroup = interface; + nsILocalFile = interface; + nsIMemory = interface; + nsIModule = interface; + nsIMutableArray = interface; + nsIObserver = interface; + nsIObserverService = interface; + nsIOutputStream = interface; + nsIPrefBranch = interface; + nsIPrefBranch2 = interface; + nsIPrefLocalizedString = interface; + nsIPrefService = interface; + nsIPrintSession = interface; + nsIPrintSettings = interface; + nsIProfile = interface; + nsIProfileChangeStatus = interface; + nsIProgrammingLanguage = interface; + nsIPrompt = interface; + nsIPromptService = interface; + nsIProperties = interface; + nsIProtocolHandler = interface; + nsIRequestObserver = interface; + nsIScriptableInputStream = interface; + nsISecurityWarningDialogs = interface; + nsISelection = interface; + nsIServiceManager = interface; + nsISHistory = interface; + nsISHistoryListener = interface; + nsIStreamListener = interface; + nsISupportsPrimitive = interface; + nsISupportsID = interface; + nsISupportsCString = interface; + nsISupportsString = interface; + nsISupportsPRBool = interface; + nsISupportsPRUint8 = interface; + nsISupportsPRUint16 = interface; + nsISupportsPRUint32 = interface; + nsISupportsPRUint64 = interface; + nsISupportsPRTime = interface; + nsISupportsChar = interface; + nsISupportsPRInt16 = interface; + nsISupportsPRInt32 = interface; + nsISupportsPRInt64 = interface; + nsISupportsFloat = interface; + nsISupportsDouble = interface; + nsISupportsVoid = interface; + nsISupportsInterfacePointer = interface; + nsITooltipListener = interface; + nsITooltipTextProvider = interface; + nsITraceRefcnt = interface; + nsIUnicharStreamListener = interface; + nsIUploadChannel = interface; + nsIURIContentListener = interface; + nsIWeakReference = interface; + nsISupportsWeakReference = interface; + nsIWebBrowser = interface; + nsIWebBrowserChrome = interface; + nsIWebBrowserChromeFocus = interface; + nsIWebBrowserFind = interface; + nsIWebBrowserFindInFrames = interface; + nsIWebBrowserFocus = interface; + nsIWebBrowserPrint = interface; + nsIWebBrowserSetup = interface; + nsIWebBrowserStream = interface; + nsIWebProgress = interface; + nsIWebProgressListener = interface; + nsIWindowCreator = interface; + nsIWindowWatcher = interface; + nsIX509Cert = interface; + nsIX509CertDB = interface; + nsIX509CertValidity = interface; + nsWriteSegmentFun = function (aInStream: nsIInputStream; + aClosure: Pointer; + const aFromSegment: Pointer; + aToOffset: PRUint32; + aCount: PRUint32; + out aWriteCount: PRUint32): nsresult; extdecl; + + + nsReadSegmentFun = function (aOutStream: nsIOutputStream; + aClosure: Pointer; + aToSegment: Pointer; + aFromOffset: PRUint32; + aCount: PRUint32; + out aReadCount: PRUint32): nsresult; extdecl; + + + DOMTimeStamp = PRUint64; + nsLoadFlags = PRUint32; +(*** + * An optional interface for accessing the HTTP or + * javascript cookie object + * + * @status FROZEN + *) + nsCookieStatus = PRInt32; + nsCookiePolicy = PRInt32; + nsISupports = interface + ['{00000000-0000-0000-c000-000000000046}'] + end; + + mozIJSSubScriptLoader = interface(nsISupports) + ['{8792d77e-1dd2-11b2-ac7f-9bc9be4f2916}'] + procedure LoadSubScript(const url: PWideChar); safecall; + end; + + nsIArray = interface(nsISupports) + ['{114744d9-c369-456e-b55a-52fe52880d2d}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure QueryElementAt(index: PRUint32; constref uuid: TGUID; out _result); safecall; + function IndexOf(startIndex: PRUint32; element: nsISupports): PRUint32; safecall; + function Enumerate(): nsISimpleEnumerator; safecall; + end; + + nsIASN1Object = interface(nsISupports) + ['{ba8bf582-1dd1-11b2-898c-f40246bc9a63}'] + function GetType(): PRUint32; safecall; + procedure SetType(aType: PRUint32); safecall; + property _Type: PRUint32 read GetType write SetType; + function GetTag(): PRUint32; safecall; + procedure SetTag(aTag: PRUint32); safecall; + property Tag: PRUint32 read GetTag write SetTag; + procedure GetDisplayName(aDisplayName: nsAString); safecall; + procedure SetDisplayName(const aDisplayName: nsAString); safecall; + procedure GetDisplayValue(aDisplayValue: nsAString); safecall; + procedure SetDisplayValue(const aDisplayValue: nsAString); safecall; + end; + + nsIASN1Sequence = interface(nsIASN1Object) + ['{b6b957e6-1dd1-11b2-89d7-e30624f50b00}'] + function GetASN1Objects(): nsIMutableArray; safecall; + procedure SetASN1Objects(aASN1Objects: nsIMutableArray); safecall; + property ASN1Objects: nsIMutableArray read GetASN1Objects write SetASN1Objects; + function GetIsValidContainer(): PRBool; safecall; + procedure SetIsValidContainer(aIsValidContainer: PRBool); safecall; + property IsValidContainer: PRBool read GetIsValidContainer write SetIsValidContainer; + function GetIsExpanded(): PRBool; safecall; + procedure SetIsExpanded(aIsExpanded: PRBool); safecall; + property IsExpanded: PRBool read GetIsExpanded write SetIsExpanded; + end; + + nsIAuthInformation = interface(nsISupports) + ['{0D73639C-2A92-4518-9F92-28F71FEA5F20}'] + procedure GetFlags(out aFlags: PRUINT32); safecall; + procedure GetRealm(aRealm: nsAString); safecall; + procedure GetAuthenticationScheme(aAuthenticationScheme: nsACString); safecall; + procedure GetUsername(aUsername: nsAString); safecall; + procedure SetUsername(const aUsername: nsAString); safecall; + procedure GetPassword(aPassword: nsAString); safecall; + procedure SetPassword(const aPassword: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure SetDomain(const aDomain: nsAString); safecall; + end; + + nsIAuthPrompt = interface(nsISupports) + ['{358089f9-ee4b-4711-82fd-bcd07fc62061}'] + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; const defaultText: PWideChar; out _result: PWideChar): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out user: PWideChar; out pwd: PWideChar): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; const passwordRealm: PWideChar; savePassword: PRUint32; out pwd: PWideChar): PRBool; safecall; + end; + + nsIAuthPromptCallback = interface(nsISupports) + ['{BDC387D7-2D29-4CAC-92F1-DD75D786631D}'] + procedure OnAuthAvailable(aContext: nsISupports; aAuthInfo: nsIAuthInformation); safecall; + procedure OnAuthCancelled(aContext: nsISupports; userCancel: LongBool); safecall; + end; + + nsISimpleEnumerator = interface(nsISupports) + ['{d1899240-f9d2-11d2-bdd6-000064657374}'] + function HasMoreElements(): PRBool; safecall; + function GetNext(): nsISupports; safecall; + end; + + nsICancelable = interface(nsISupports) + ['{D94AC0A0-BB18-46B8-844E-84159064B0BD}'] + procedure Cancel(aReason: nsresult); safecall; + end; + + nsICategoryManager = interface(nsISupports) + ['{3275b2cd-af6d-429a-80d7-f0c5120342ac}'] + function GetCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar): PAnsiChar; safecall; + function AddCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; const aValue: PAnsiChar; aPersist: PRBool; aReplace: PRBool): PAnsiChar; safecall; + procedure DeleteCategoryEntry(const aCategory: PAnsiChar; const aEntry: PAnsiChar; aPersist: PRBool); safecall; + procedure DeleteCategory(const aCategory: PAnsiChar); safecall; + function EnumerateCategory(const aCategory: PAnsiChar): nsISimpleEnumerator; safecall; + function EnumerateCategories(): nsISimpleEnumerator; safecall; + end; + + nsICertificateDialogs = interface(nsISupports) + ['{a03ca940-09be-11d5-ac5d-000064657374}'] + function ConfirmDownloadCACert(ctx: nsIInterfaceRequestor; cert: nsIX509Cert; out trust: PRUint32): PRBool; safecall; + procedure NotifyCACertExists(ctx: nsIInterfaceRequestor); safecall; + function SetPKCS12FilePassword(ctx: nsIInterfaceRequestor; password: nsAString): PRBool; safecall; + function GetPKCS12FilePassword(ctx: nsIInterfaceRequestor; password: nsAString): PRBool; safecall; + procedure ViewCert(ctx: nsIInterfaceRequestor; cert: nsIX509Cert); safecall; + procedure CrlImportStatusDialog(ctx: nsIInterfaceRequestor; crl: nsICRLInfo); safecall; + end; + + nsIRequest = interface(nsISupports) + ['{ef6bfbd2-fd46-48d8-96b7-9f8f0fd387fe}'] + procedure GetName(aName: nsAUTF8String); safecall; + function IsPending(): PRBool; safecall; + function GetStatus(): nsresult; safecall; + property Status: nsresult read GetStatus; + procedure Cancel(aStatus: nsresult); safecall; + procedure Suspend(); safecall; + procedure Resume(); safecall; + function GetLoadGroup(): nsILoadGroup; safecall; + procedure SetLoadGroup(aLoadGroup: nsILoadGroup); safecall; + property LoadGroup: nsILoadGroup read GetLoadGroup write SetLoadGroup; + function GetLoadFlags(): nsLoadFlags; safecall; + procedure SetLoadFlags(aLoadFlags: nsLoadFlags); safecall; + property LoadFlags: nsLoadFlags read GetLoadFlags write SetLoadFlags; + end; + + nsIChannel = interface(nsIRequest) + ['{c63a055a-a676-4e71-bf3c-6cfa11082018}'] + function GetOriginalURI(): nsIURI; safecall; + procedure SetOriginalURI(aOriginalURI: nsIURI); safecall; + property OriginalURI: nsIURI read GetOriginalURI write SetOriginalURI; + function GetURI(): nsIURI; safecall; + property URI: nsIURI read GetURI; + function GetOwner(): nsISupports; safecall; + procedure SetOwner(aOwner: nsISupports); safecall; + property Owner: nsISupports read GetOwner write SetOwner; + function GetNotificationCallbacks(): nsIInterfaceRequestor; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor); safecall; + property NotificationCallbacks: nsIInterfaceRequestor read GetNotificationCallbacks write SetNotificationCallbacks; + function GetSecurityInfo(): nsISupports; safecall; + property SecurityInfo: nsISupports read GetSecurityInfo; + procedure GetContentType(aContentType: nsACString); safecall; + procedure SetContentType(const aContentType: nsACString); safecall; + procedure GetContentCharset(aContentCharset: nsACString); safecall; + procedure SetContentCharset(const aContentCharset: nsACString); safecall; + function GetContentLength(): PRInt32; safecall; + procedure SetContentLength(aContentLength: PRInt32); safecall; + property ContentLength: PRInt32 read GetContentLength write SetContentLength; + function Open(): nsIInputStream; safecall; + procedure AsyncOpen(aListener: nsIStreamListener; aContext: nsISupports); safecall; + end; + + nsIClassInfo = interface(nsISupports) + ['{986c11d0-f340-11d4-9075-0010a4e73d9a}'] + procedure GetInterfaces(out count: PRUint32; out _array_array); safecall; + function GetHelperForLanguage(language: PRUint32): nsISupports; safecall; + function GetContractID(): PAnsiChar; safecall; + property ContractID: PAnsiChar read GetContractID; + function GetClassDescription(): PAnsiChar; safecall; + property ClassDescription: PAnsiChar read GetClassDescription; + function GetClassID(): PGUID; safecall; + property ClassID: PGUID read GetClassID; + function GetImplementationLanguage(): PRUint32; safecall; + property ImplementationLanguage: PRUint32 read GetImplementationLanguage; + function GetFlags(): PRUint32; safecall; + property Flags: PRUint32 read GetFlags; + function GetClassIDNoAlloc(): TGUID; safecall; + property ClassIDNoAlloc: TGUID read GetClassIDNoAlloc; + end; + + nsIClipboardCommands = interface(nsISupports) + ['{b8100c90-73be-11d2-92a5-00105a1b0d64}'] + function CanCutSelection(): PRBool; safecall; + function CanCopySelection(): PRBool; safecall; + function CanCopyLinkLocation(): PRBool; safecall; + function CanCopyImageLocation(): PRBool; safecall; + function CanCopyImageContents(): PRBool; safecall; + function CanPaste(): PRBool; safecall; + procedure CutSelection(); safecall; + procedure CopySelection(); safecall; + procedure CopyLinkLocation(); safecall; + procedure CopyImageLocation(); safecall; + procedure CopyImageContents(); safecall; + procedure Paste(); safecall; + procedure SelectAll(); safecall; + procedure SelectNone(); safecall; + end; + + nsIComponentManager = interface(nsISupports) + ['{a88e5a60-205a-4bb1-94e1-2628daf51eae}'] + procedure GetClassObject(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetClassObjectByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + procedure CreateInstance(constref aClass: TGUID; aDelegate: nsISupports; constref aIID: TGUID; out _result); safecall; + procedure CreateInstanceByContractID(const aContractID: PAnsiChar; aDelegate: nsISupports; constref aIID: TGUID; out _result); safecall; + end; + + nsIComponentRegistrar = interface(nsISupports) + ['{2417cbfe-65ad-48a6-b4b6-eb84db174392}'] + procedure AutoRegister(aSpec: nsIFile); safecall; + procedure AutoUnregister(aSpec: nsIFile); safecall; + procedure RegisterFactory(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFactory: nsIFactory); safecall; + procedure UnregisterFactory(constref aClass: TGUID; aFactory: nsIFactory); safecall; + procedure RegisterFactoryLocation(constref aClass: TGUID; const aClassName: PAnsiChar; const aContractID: PAnsiChar; aFile: nsIFile; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterFactoryLocation(constref aClass: TGUID; aFile: nsIFile); safecall; + function IsCIDRegistered(constref aClass: TGUID): PRBool; safecall; + function IsContractIDRegistered(const aContractID: PAnsiChar): PRBool; safecall; + function EnumerateCIDs(): nsISimpleEnumerator; safecall; + function EnumerateContractIDs(): nsISimpleEnumerator; safecall; + function CIDToContractID(constref aClass: TGUID): PAnsiChar; safecall; + function ContractIDToCID(const aContractID: PAnsiChar): PGUID; safecall; + end; + + nsIContextMenuListener = interface(nsISupports) + ['{3478b6b0-3875-11d4-94ef-0020183bf181}'] + procedure OnShowContextMenu(aContextFlags: PRUint32; aEvent: nsIDOMEvent; aNode: nsIDOMNode); safecall; + end; + + nsICookie = interface(nsISupports) + ['{e9fcb9a4-d376-458f-b720-e65e7df593bc}'] + procedure GetName(aName: nsACString); safecall; + procedure GetValue(aValue: nsACString); safecall; + function GetIsDomain(): PRBool; safecall; + property IsDomain: PRBool read GetIsDomain; + procedure GetHost(aHost: nsAUTF8String); safecall; + procedure GetPath(aPath: nsAUTF8String); safecall; + function GetIsSecure(): PRBool; safecall; + property IsSecure: PRBool read GetIsSecure; + function GetExpires(): PRUint64; safecall; + property Expires: PRUint64 read GetExpires; + function GetStatus(): nsCookieStatus; safecall; + property Status: nsCookieStatus read GetStatus; + function GetPolicy(): nsCookiePolicy; safecall; + property Policy: nsCookiePolicy read GetPolicy; + end; + + nsICookieManager = interface(nsISupports) + ['{aaab6710-0f2c-11d5-a53b-0010a401eb10}'] + procedure RemoveAll(); safecall; + function GetEnumerator(): nsISimpleEnumerator; safecall; + property Enumerator: nsISimpleEnumerator read GetEnumerator; + procedure Remove(const aDomain: nsAUTF8String; const aName: nsACString; const aPath: nsAUTF8String; aBlocked: PRBool); safecall; + end; + + nsICRLInfo = interface(nsISupports) + ['{c185d920-4a3e-11d5-ba27-00108303b117}'] + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + function GetLastUpdate(): PRTime; safecall; + property LastUpdate: PRTime read GetLastUpdate; + function GetNextUpdate(): PRTime; safecall; + property NextUpdate: PRTime read GetNextUpdate; + procedure GetLastUpdateLocale(aLastUpdateLocale: nsAString); safecall; + procedure GetNextUpdateLocale(aNextUpdateLocale: nsAString); safecall; + procedure GetNameInDb(aNameInDb: nsAString); safecall; + procedure GetLastFetchURL(aLastFetchURL: nsAUTF8String); safecall; + end; + + nsIDebug = interface(nsISupports) + ['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}'] + procedure Assertion(const aStr: PAnsiChar; const aExpr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Warning(const aStr: PAnsiChar; const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Break(const aFile: PAnsiChar; aLine: PRInt32); safecall; + procedure Abort(const aFile: PAnsiChar; aLine: PRInt32); safecall; + end; + + nsIFile = interface(nsISupports) + ['{c8c0a080-0868-11d3-915f-d9d889d48e3c}'] + procedure Append(const node: nsAString); safecall; + procedure AppendNative(const node: nsACString); safecall; + procedure Normalize(); safecall; + procedure Create(_type: PRUint32; permissions: PRUint32); safecall; + procedure GetLeafName(aLeafName: nsAString); safecall; + procedure SetLeafName(const aLeafName: nsAString); safecall; + procedure GetNativeLeafName(aNativeLeafName: nsACString); safecall; + procedure SetNativeLeafName(const aNativeLeafName: nsACString); safecall; + procedure CopyTo(newParentDir: nsIFile; const newName: nsAString); safecall; + procedure CopyToNative(newParentDir: nsIFile; const newName: nsACString); safecall; + procedure CopyToFollowingLinks(newParentDir: nsIFile; const newName: nsAString); safecall; + procedure CopyToFollowingLinksNative(newParentDir: nsIFile; const newName: nsACString); safecall; + procedure MoveTo(newParentDir: nsIFile; const newName: nsAString); safecall; + procedure MoveToNative(newParentDir: nsIFile; const newName: nsACString); safecall; + procedure Remove(recursive: PRBool); safecall; + function GetPermissions(): PRUint32; safecall; + procedure SetPermissions(aPermissions: PRUint32); safecall; + property Permissions: PRUint32 read GetPermissions write SetPermissions; + function GetPermissionsOfLink(): PRUint32; safecall; + procedure SetPermissionsOfLink(aPermissionsOfLink: PRUint32); safecall; + property PermissionsOfLink: PRUint32 read GetPermissionsOfLink write SetPermissionsOfLink; + function GetLastModifiedTime(): PRInt64; safecall; + procedure SetLastModifiedTime(aLastModifiedTime: PRInt64); safecall; + property LastModifiedTime: PRInt64 read GetLastModifiedTime write SetLastModifiedTime; + function GetLastModifiedTimeOfLink(): PRInt64; safecall; + procedure SetLastModifiedTimeOfLink(aLastModifiedTimeOfLink: PRInt64); safecall; + property LastModifiedTimeOfLink: PRInt64 read GetLastModifiedTimeOfLink write SetLastModifiedTimeOfLink; + function GetFileSize(): PRInt64; safecall; + procedure SetFileSize(aFileSize: PRInt64); safecall; + property FileSize: PRInt64 read GetFileSize write SetFileSize; + function GetFileSizeOfLink(): PRInt64; safecall; + property FileSizeOfLink: PRInt64 read GetFileSizeOfLink; + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetNativeTarget(aNativeTarget: nsACString); safecall; + procedure GetPath(aPath: nsAString); safecall; + procedure GetNativePath(aNativePath: nsACString); safecall; + function Exists(): PRBool; safecall; + function IsWritable(): PRBool; safecall; + function IsReadable(): PRBool; safecall; + function IsExecutable(): PRBool; safecall; + function IsHidden(): PRBool; safecall; + function IsDirectory(): PRBool; safecall; + function IsFile(): PRBool; safecall; + function IsSymlink(): PRBool; safecall; + function IsSpecial(): PRBool; safecall; + procedure CreateUnique(_type: PRUint32; permissions: PRUint32); safecall; + function Clone(): nsIFile; safecall; + function Equals(inFile: nsIFile): PRBool; safecall; + function _Contains(inFile: nsIFile; recur: PRBool): PRBool; safecall; + function GetParent(): nsIFile; safecall; + property Parent: nsIFile read GetParent; + function GetDirectoryEntries(): nsISimpleEnumerator; safecall; + property DirectoryEntries: nsISimpleEnumerator read GetDirectoryEntries; + end; + + nsIDirectoryServiceProvider = interface(nsISupports) + ['{bbf8cab0-d43a-11d3-8cc2-00609792278c}'] + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile; safecall; + end; + + nsIDirectoryServiceProvider2 = interface(nsIDirectoryServiceProvider) + ['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}'] + function GetFiles(const prop: PAnsiChar): nsISimpleEnumerator; safecall; + end; + + nsIDirectoryService = interface(nsISupports) + ['{57a66a60-d43a-11d3-8cc2-00609792278c}'] + procedure Init(); safecall; + procedure RegisterProvider(prov: nsIDirectoryServiceProvider); safecall; + procedure UnregisterProvider(prov: nsIDirectoryServiceProvider); safecall; + end; + + nsIDocumentEncoder = interface(nsISupports) + ['{F85C5A20-258D-11DB-A98B-0800200C9A66}'] + procedure Init(aDocument: nsIDOMDocument; const aMimeType: nsAString; aFlags: Cardinal); safecall; + procedure SetSelection(aSelection: nsISelection); safecall; + procedure SetRange(aRange: nsIDOMRange); safecall; + procedure SetNode(aNode: nsIDOMNode);safecall; + procedure SetContainerNode(aContainer: nsIDOMNode); safecall; + procedure SetCharset(const aCharset: nsACString); safecall; + procedure SetWrapColumn(aWrapColumn: Cardinal); safecall; + procedure GetMimeType(aMimeType: nsAString); safecall; + procedure EncodeToStream(aStream: nsIOutputStream); safecall; + procedure EncodeToString(aString: nsAString); safecall; + function EncodeToStringWithContext(aContextString: nsAString; aInfoString: nsAString): nsAString; safecall; + procedure SetNodeFixup(aFixup: nsIDocumentEncoderNodeFixup); safecall; + end; + + nsIDocumentEncoderNodeFixup = interface(nsISupports) + ['{C0DA5B87-0BA7-4D7C-8CB3-FCB02AF4253D}'] + function FixupNode(aNode: nsIDOMNode; var aSerializeCloneKids: LongBool): nsIDOMNode; safecall; + end; + + nsIDOM3DocumentEvent = interface(nsISupports) + ['{090ecc19-b7cb-4f47-ae47-ed68d4926249}'] + function CreateEventGroup(): nsIDOMEventGroup; safecall; + end; + + nsIDOM3EventTarget = interface(nsISupports) + ['{3e9c01a7-de97-4c3b-8294-b4bd9d7056d1}'] + procedure AddGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener; useCapture: PRBool; evtGroup: nsIDOMEventGroup); safecall; + procedure RemoveGroupedEventListener(const _type: nsAString; listener: nsIDOMEventListener; useCapture: PRBool; evtGroup: nsIDOMEventGroup); safecall; + function CanTrigger(const _type: nsAString): PRBool; safecall; + function IsRegisteredHere(const _type: nsAString): PRBool; safecall; + end; + + nsIDOMAbstractView = interface(nsISupports) + ['{f51ebade-8b1a-11d3-aae7-0010830123b4}'] + function GetDocument(): nsIDOMDocumentView; safecall; + property Document: nsIDOMDocumentView read GetDocument; + end; + + nsIDOMNode = interface(nsISupports) + ['{a6cf907c-15b3-11d2-932e-00805f8add32}'] + procedure GetNodeName(aNodeName: nsAString); safecall; + procedure GetNodeValue(aNodeValue: nsAString); safecall; + procedure SetNodeValue(const aNodeValue: nsAString); safecall; + function GetNodeType(): PRUint16; safecall; + property NodeType: PRUint16 read GetNodeType; + function GetParentNode(): nsIDOMNode; safecall; + property ParentNode: nsIDOMNode read GetParentNode; + function GetChildNodes(): nsIDOMNodeList; safecall; + property ChildNodes: nsIDOMNodeList read GetChildNodes; + function GetFirstChild(): nsIDOMNode; safecall; + property FirstChild: nsIDOMNode read GetFirstChild; + function GetLastChild(): nsIDOMNode; safecall; + property LastChild: nsIDOMNode read GetLastChild; + function GetPreviousSibling(): nsIDOMNode; safecall; + property PreviousSibling: nsIDOMNode read GetPreviousSibling; + function GetNextSibling(): nsIDOMNode; safecall; + property NextSibling: nsIDOMNode read GetNextSibling; + function GetAttributes(): nsIDOMNamedNodeMap; safecall; + property Attributes: nsIDOMNamedNodeMap read GetAttributes; + function GetOwnerDocument(): nsIDOMDocument; safecall; + property OwnerDocument: nsIDOMDocument read GetOwnerDocument; + function InsertBefore(newChild: nsIDOMNode; refChild: nsIDOMNode): nsIDOMNode; safecall; + function ReplaceChild(newChild: nsIDOMNode; oldChild: nsIDOMNode): nsIDOMNode; safecall; + function RemoveChild(oldChild: nsIDOMNode): nsIDOMNode; safecall; + function AppendChild(newChild: nsIDOMNode): nsIDOMNode; safecall; + function HasChildNodes(): PRBool; safecall; + function CloneNode(deep: PRBool): nsIDOMNode; safecall; + procedure Normalize(); safecall; + function IsSupported(const feature: nsAString; const version: nsAString): PRBool; safecall; + procedure GetNamespaceURI(aNamespaceURI: nsAString); safecall; + procedure GetPrefix(aPrefix: nsAString); safecall; + procedure SetPrefix(const aPrefix: nsAString); safecall; + procedure GetLocalName(aLocalName: nsAString); safecall; + function HasAttributes(): PRBool; safecall; + end; + + nsIDOMAttr = interface(nsIDOMNode) + ['{a6cf9070-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetSpecified(): PRBool; safecall; + property Specified: PRBool read GetSpecified; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetOwnerElement(): nsIDOMElement; safecall; + property OwnerElement: nsIDOMElement read GetOwnerElement; + end; + + nsIDOMBarProp = interface(nsISupports) + ['{9eb2c150-1d56-11d3-8221-0060083a0bcf}'] + function GetVisible(): PRBool; safecall; + procedure SetVisible(aVisible: PRBool); safecall; + property Visible: PRBool read GetVisible write SetVisible; + end; + + nsIDOMCharacterData = interface(nsIDOMNode) + ['{a6cf9072-15b3-11d2-932e-00805f8add32}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure SubstringData(offset: PRUint32; count: PRUint32; _retval: nsAString); safecall; + procedure AppendData(const arg: nsAString); safecall; + procedure InsertData(offset: PRUint32; const arg: nsAString); safecall; + procedure DeleteData(offset: PRUint32; count: PRUint32); safecall; + procedure ReplaceData(offset: PRUint32; count: PRUint32; const arg: nsAString); safecall; + end; + + nsIDOMText = interface(nsIDOMCharacterData) + ['{a6cf9082-15b3-11d2-932e-00805f8add32}'] + function SplitText(offset: PRUint32): nsIDOMText; safecall; + end; + + nsIDOMCDATASection = interface(nsIDOMText) + ['{a6cf9071-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMComment = interface(nsIDOMCharacterData) + ['{a6cf9073-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMCounter = interface(nsISupports) + ['{31adb439-0055-402d-9b1d-d5ca94f3f55b}'] + procedure GetIdentifier(aIdentifier: nsAString); safecall; + procedure GetListStyle(aListStyle: nsAString); safecall; + procedure GetSeparator(aSeparator: nsAString); safecall; + end; + + nsIDOMCSSValue = interface(nsISupports) + ['{009f7ea5-9e80-41be-b008-db62f10823f2}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetCssValueType(): PRUint16; safecall; + property CssValueType: PRUint16 read GetCssValueType; + end; + + nsIDOMCSSPrimitiveValue = interface(nsIDOMCSSValue) + ['{e249031f-8df9-4e7a-b644-18946dce0019}'] + function GetPrimitiveType(): PRUint16; safecall; + property PrimitiveType: PRUint16 read GetPrimitiveType; + procedure SetFloatValue(unitType: PRUint16; floatValue: Single); safecall; + function GetFloatValue(unitType: PRUint16): Single; safecall; + procedure SetStringValue(stringType: PRUint16; const stringValue: nsAString); safecall; + procedure GetStringValue(_retval: nsAString); safecall; + function GetCounterValue(): nsIDOMCounter; safecall; + function GetRectValue(): nsIDOMRect; safecall; + function GetRGBColorValue(): nsIDOMRGBColor; safecall; + end; + + nsIDOMCSSRule = interface(nsISupports) + ['{a6cf90c1-15b3-11d2-932e-00805f8add32}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + function GetParentStyleSheet(): nsIDOMCSSStyleSheet; safecall; + property ParentStyleSheet: nsIDOMCSSStyleSheet read GetParentStyleSheet; + function GetParentRule(): nsIDOMCSSRule; safecall; + property ParentRule: nsIDOMCSSRule read GetParentRule; + end; + + nsIDOMCSSRuleList = interface(nsISupports) + ['{a6cf90c0-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSRule; safecall; + end; + + nsIDOMCSSStyleDeclaration = interface(nsISupports) + ['{a6cf90be-15b3-11d2-932e-00805f8add32}'] + procedure GetCssText(aCssText: nsAString); safecall; + procedure SetCssText(const aCssText: nsAString); safecall; + procedure GetPropertyValue(const propertyName: nsAString; _retval: nsAString); safecall; + function GetPropertyCSSValue(const propertyName: nsAString): nsIDOMCSSValue; safecall; + procedure RemoveProperty(const propertyName: nsAString; _retval: nsAString); safecall; + procedure GetPropertyPriority(const propertyName: nsAString; _retval: nsAString); safecall; + procedure SetProperty(const propertyName: nsAString; const value: nsAString; const priority: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + function GetParentRule(): nsIDOMCSSRule; safecall; + property ParentRule: nsIDOMCSSRule read GetParentRule; + end; + + nsIDOMStyleSheet = interface(nsISupports) + ['{a6cf9080-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetOwnerNode(): nsIDOMNode; safecall; + property OwnerNode: nsIDOMNode read GetOwnerNode; + function GetParentStyleSheet(): nsIDOMStyleSheet; safecall; + property ParentStyleSheet: nsIDOMStyleSheet read GetParentStyleSheet; + procedure GetHref(aHref: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + function GetMedia(): nsIDOMMediaList; safecall; + property Media: nsIDOMMediaList read GetMedia; + end; + + nsIDOMCSSStyleSheet = interface(nsIDOMStyleSheet) + ['{a6cf90c2-15b3-11d2-932e-00805f8add32}'] + function GetOwnerRule(): nsIDOMCSSRule; safecall; + property OwnerRule: nsIDOMCSSRule read GetOwnerRule; + function GetCssRules(): nsIDOMCSSRuleList; safecall; + property CssRules: nsIDOMCSSRuleList read GetCssRules; + function InsertRule(const rule: nsAString; index: PRUint32): PRUint32; safecall; + procedure DeleteRule(index: PRUint32); safecall; + end; + + nsIDOMCSSValueList = interface(nsIDOMCSSValue) + ['{8f09fa84-39b9-4dca-9b2f-db0eeb186286}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMCSSValue; safecall; + end; + + nsIDOMEvent = interface(nsISupports) + ['{a66b7b80-ff46-bd97-0080-5f8ae38add32}'] + procedure GetType(aType: nsAString); safecall; + function GetTarget(): nsIDOMEventTarget; safecall; + property Target: nsIDOMEventTarget read GetTarget; + function GetCurrentTarget(): nsIDOMEventTarget; safecall; + property CurrentTarget: nsIDOMEventTarget read GetCurrentTarget; + function GetEventPhase(): PRUint16; safecall; + property EventPhase: PRUint16 read GetEventPhase; + function GetBubbles(): PRBool; safecall; + property Bubbles: PRBool read GetBubbles; + function GetCancelable(): PRBool; safecall; + property Cancelable: PRBool read GetCancelable; + function GetTimeStamp(): DOMTimeStamp; safecall; + property TimeStamp: DOMTimeStamp read GetTimeStamp; + procedure StopPropagation(); safecall; + procedure PreventDefault(); safecall; + procedure InitEvent(const eventTypeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool); safecall; + end; + + nsIDOMCustomEvent = interface(nsIDOMEvent) + ['{55c7af7b-1a64-40bf-87eb-2c2cbee0491b}'] + procedure SetCurrentTarget(target: nsIDOMNode); safecall; + procedure SetEventPhase(phase: PRUint16); safecall; + end; + + nsIDOMDocument = interface(nsIDOMNode) + ['{a6cf9075-15b3-11d2-932e-00805f8add32}'] + function GetDoctype(): nsIDOMDocumentType; safecall; + property Doctype: nsIDOMDocumentType read GetDoctype; + function GetImplementation(): nsIDOMDOMImplementation; safecall; + property _Implementation: nsIDOMDOMImplementation read GetImplementation; + function GetDocumentElement(): nsIDOMElement; safecall; + property DocumentElement: nsIDOMElement read GetDocumentElement; + function CreateElement(const tagName: nsAString): nsIDOMElement; safecall; + function CreateDocumentFragment(): nsIDOMDocumentFragment; safecall; + function CreateTextNode(const data: nsAString): nsIDOMText; safecall; + function CreateComment(const data: nsAString): nsIDOMComment; safecall; + function CreateCDATASection(const data: nsAString): nsIDOMCDATASection; safecall; + function CreateProcessingInstruction(const target: nsAString; const data: nsAString): nsIDOMProcessingInstruction; safecall; + function CreateAttribute(const name: nsAString): nsIDOMAttr; safecall; + function CreateEntityReference(const name: nsAString): nsIDOMEntityReference; safecall; + function GetElementsByTagName(const tagname: nsAString): nsIDOMNodeList; safecall; + function ImportNode(importedNode: nsIDOMNode; deep: PRBool): nsIDOMNode; safecall; + function CreateElementNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMElement; safecall; + function CreateAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString): nsIDOMAttr; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList; safecall; + function GetElementById(const elementId: nsAString): nsIDOMElement; safecall; + end; + + nsIDOMDocumentEvent = interface(nsISupports) + ['{46b91d66-28e2-11d4-ab1e-0010830123b4}'] + function CreateEvent(const eventType: nsAString): nsIDOMEvent; safecall; + end; + + nsIDOMDocumentFragment = interface(nsIDOMNode) + ['{a6cf9076-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMDocumentRange = interface(nsISupports) + ['{7b9badc6-c9bc-447a-8670-dbd195aed24b}'] + function CreateRange(): nsIDOMRange; safecall; + end; + + nsIDOMDocumentStyle = interface(nsISupports) + ['{3d9f4973-dd2e-48f5-b5f7-2634e09eadd9}'] + function GetStyleSheets(): nsIDOMStyleSheetList; safecall; + property StyleSheets: nsIDOMStyleSheetList read GetStyleSheets; + end; + + nsIDOMDocumentType = interface(nsIDOMNode) + ['{a6cf9077-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + function GetEntities(): nsIDOMNamedNodeMap; safecall; + property Entities: nsIDOMNamedNodeMap read GetEntities; + function GetNotations(): nsIDOMNamedNodeMap; safecall; + property Notations: nsIDOMNamedNodeMap read GetNotations; + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetInternalSubset(aInternalSubset: nsAString); safecall; + end; + + nsIDOMDocumentView = interface(nsISupports) + ['{1acdb2ba-1dd2-11b2-95bc-9542495d2569}'] + function GetDefaultView(): nsIDOMAbstractView; safecall; + property DefaultView: nsIDOMAbstractView read GetDefaultView; + end; + + nsIDOMDOMException = interface(nsISupports) + ['{a6cf910a-15b3-11d2-932e-00805f8add32}'] + function GetCode(): PRUint32; safecall; + property Code: PRUint32 read GetCode; + end; + + nsIDOMDOMImplementation = interface(nsISupports) + ['{a6cf9074-15b3-11d2-932e-00805f8add32}'] + function HasFeature(const feature: nsAString; const version: nsAString): PRBool; safecall; + function CreateDocumentType(const qualifiedName: nsAString; const publicId: nsAString; const systemId: nsAString): nsIDOMDocumentType; safecall; + function CreateDocument(const namespaceURI: nsAString; const qualifiedName: nsAString; doctype: nsIDOMDocumentType): nsIDOMDocument; safecall; + end; + + nsIDOMElement = interface(nsIDOMNode) + ['{a6cf9078-15b3-11d2-932e-00805f8add32}'] + procedure GetTagName(aTagName: nsAString); safecall; + procedure GetAttribute(const name: nsAString; _retval: nsAString); safecall; + procedure SetAttribute(const name: nsAString; const value: nsAString); safecall; + procedure RemoveAttribute(const name: nsAString); safecall; + function GetAttributeNode(const name: nsAString): nsIDOMAttr; safecall; + function SetAttributeNode(newAttr: nsIDOMAttr): nsIDOMAttr; safecall; + function RemoveAttributeNode(oldAttr: nsIDOMAttr): nsIDOMAttr; safecall; + function GetElementsByTagName(const name: nsAString): nsIDOMNodeList; safecall; + procedure GetAttributeNS(const namespaceURI: nsAString; const localName: nsAString; _retval: nsAString); safecall; + procedure SetAttributeNS(const namespaceURI: nsAString; const qualifiedName: nsAString; const value: nsAString); safecall; + procedure RemoveAttributeNS(const namespaceURI: nsAString; const localName: nsAString); safecall; + function GetAttributeNodeNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMAttr; safecall; + function SetAttributeNodeNS(newAttr: nsIDOMAttr): nsIDOMAttr; safecall; + function GetElementsByTagNameNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNodeList; safecall; + function HasAttribute(const name: nsAString): PRBool; safecall; + function HasAttributeNS(const namespaceURI: nsAString; const localName: nsAString): PRBool; safecall; + end; + + nsIDOMElementCSSInlineStyle = interface(nsISupports) + ['{99715845-95fc-4a56-aa53-214b65c26e22}'] + function GetStyle(): nsIDOMCSSStyleDeclaration; safecall; + property Style: nsIDOMCSSStyleDeclaration read GetStyle; + end; + + nsIDOMEntity = interface(nsIDOMNode) + ['{a6cf9079-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + procedure GetNotationName(aNotationName: nsAString); safecall; + end; + + nsIDOMEntityReference = interface(nsIDOMNode) + ['{a6cf907a-15b3-11d2-932e-00805f8add32}'] + end; + + nsIDOMEventGroup = interface(nsISupports) + ['{33347bee-6620-4841-8152-36091ae80c7e}'] + function IsSameEventGroup(other: nsIDOMEventGroup): PRBool; safecall; + end; + + nsIDOMEventListener = interface(nsISupports) + ['{df31c120-ded6-11d1-bd85-00805f8ae3f4}'] + procedure HandleEvent(event: nsIDOMEvent); safecall; + end; + + nsIDOMEventTarget = interface(nsISupports) + ['{1c773b30-d1cf-11d2-bd95-00805f8ae3f4}'] + procedure AddEventListener(const _type: nsAString; listener: nsIDOMEventListener; useCapture: PRBool); safecall; + procedure RemoveEventListener(const _type: nsAString; listener: nsIDOMEventListener; useCapture: PRBool); safecall; + function DispatchEvent(evt: nsIDOMEvent): PRBool; safecall; + end; + + nsIDOMHTMLElement = interface(nsIDOMElement) + ['{a6cf9085-15b3-11d2-932e-00805f8add32}'] + procedure GetId(aId: nsAString); safecall; + procedure SetId(const aId: nsAString); safecall; + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetLang(aLang: nsAString); safecall; + procedure SetLang(const aLang: nsAString); safecall; + procedure GetDir(aDir: nsAString); safecall; + procedure SetDir(const aDir: nsAString); safecall; + procedure GetClassName(aClassName: nsAString); safecall; + procedure SetClassName(const aClassName: nsAString); safecall; + end; + + nsIDOMHTMLAnchorElement = interface(nsIDOMHTMLElement) + ['{a6cf90aa-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLAppletElement = interface(nsIDOMHTMLElement) + ['{a6cf90ae-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetObject(aObject: nsAString); safecall; + procedure SetObject(const aObject: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLAreaElement = interface(nsIDOMHTMLElement) + ['{a6cf90b0-15b3-11d2-932e-00805f8add32}'] + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetCoords(aCoords: nsAString); safecall; + procedure SetCoords(const aCoords: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + function GetNoHref(): PRBool; safecall; + procedure SetNoHref(aNoHref: PRBool); safecall; + property NoHref: PRBool read GetNoHref write SetNoHref; + procedure GetShape(aShape: nsAString); safecall; + procedure SetShape(const aShape: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseElement = interface(nsIDOMHTMLElement) + ['{a6cf908b-15b3-11d2-932e-00805f8add32}'] + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + end; + + nsIDOMHTMLBaseFontElement = interface(nsIDOMHTMLElement) + ['{a6cf90a6-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + end; + + nsIDOMHTMLBodyElement = interface(nsIDOMHTMLElement) + ['{a6cf908e-15b3-11d2-932e-00805f8add32}'] + procedure GetALink(aALink: nsAString); safecall; + procedure SetALink(const aALink: nsAString); safecall; + procedure GetBackground(aBackground: nsAString); safecall; + procedure SetBackground(const aBackground: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetLink(aLink: nsAString); safecall; + procedure SetLink(const aLink: nsAString); safecall; + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetVLink(aVLink: nsAString); safecall; + procedure SetVLink(const aVLink: nsAString); safecall; + end; + + nsIDOMHTMLBRElement = interface(nsIDOMHTMLElement) + ['{a6cf90a5-15b3-11d2-932e-00805f8add32}'] + procedure GetClear(aClear: nsAString); safecall; + procedure SetClear(const aClear: nsAString); safecall; + end; + + nsIDOMHTMLButtonElement = interface(nsIDOMHTMLElement) + ['{a6cf9095-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLCollection = interface(nsISupports) + ['{a6cf9083-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMNode; safecall; + function NamedItem(const name: nsAString): nsIDOMNode; safecall; + end; + + nsIDOMHTMLDirectoryElement = interface(nsIDOMHTMLElement) + ['{a6cf909c-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDivElement = interface(nsIDOMHTMLElement) + ['{a6cf90a0-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLDListElement = interface(nsIDOMHTMLElement) + ['{a6cf909b-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLDocument = interface(nsIDOMDocument) + ['{a6cf9084-15b3-11d2-932e-00805f8add32}'] + procedure GetTitle(aTitle: nsAString); safecall; + procedure SetTitle(const aTitle: nsAString); safecall; + procedure GetReferrer(aReferrer: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure GetURL(aURL: nsAString); safecall; + function GetBody(): nsIDOMHTMLElement; safecall; + procedure SetBody(aBody: nsIDOMHTMLElement); safecall; + property Body: nsIDOMHTMLElement read GetBody write SetBody; + function GetImages(): nsIDOMHTMLCollection; safecall; + property Images: nsIDOMHTMLCollection read GetImages; + function GetApplets(): nsIDOMHTMLCollection; safecall; + property Applets: nsIDOMHTMLCollection read GetApplets; + function GetLinks(): nsIDOMHTMLCollection; safecall; + property Links: nsIDOMHTMLCollection read GetLinks; + function GetForms(): nsIDOMHTMLCollection; safecall; + property Forms: nsIDOMHTMLCollection read GetForms; + function GetAnchors(): nsIDOMHTMLCollection; safecall; + property Anchors: nsIDOMHTMLCollection read GetAnchors; + procedure GetCookie(aCookie: nsAString); safecall; + procedure SetCookie(const aCookie: nsAString); safecall; + procedure Open(); safecall; + procedure Close(); safecall; + procedure Write(const text: nsAString); safecall; + procedure Writeln(const text: nsAString); safecall; + function GetElementsByName(const elementName: nsAString): nsIDOMNodeList; safecall; + end; + + nsIDOMHTMLEmbedElement = interface(nsIDOMHTMLElement) + ['{123f90ab-15b3-11d2-456e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLFieldSetElement = interface(nsIDOMHTMLElement) + ['{a6cf9097-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + end; + + nsIDOMHTMLFontElement = interface(nsIDOMHTMLElement) + ['{a6cf90a7-15b3-11d2-932e-00805f8add32}'] + procedure GetColor(aColor: nsAString); safecall; + procedure SetColor(const aColor: nsAString); safecall; + procedure GetFace(aFace: nsAString); safecall; + procedure SetFace(const aFace: nsAString); safecall; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + end; + + nsIDOMHTMLFormElement = interface(nsIDOMHTMLElement) + ['{a6cf908f-15b3-11d2-932e-00805f8add32}'] + function GetElements(): nsIDOMHTMLCollection; safecall; + property Elements: nsIDOMHTMLCollection read GetElements; + function GetLength(): PRInt32; safecall; + property Length: PRInt32 read GetLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAcceptCharset(aAcceptCharset: nsAString); safecall; + procedure SetAcceptCharset(const aAcceptCharset: nsAString); safecall; + procedure GetAction(aAction: nsAString); safecall; + procedure SetAction(const aAction: nsAString); safecall; + procedure GetEnctype(aEnctype: nsAString); safecall; + procedure SetEnctype(const aEnctype: nsAString); safecall; + procedure GetMethod(aMethod: nsAString); safecall; + procedure SetMethod(const aMethod: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure Submit(); safecall; + procedure Reset(); safecall; + end; + + nsIDOMHTMLFrameElement = interface(nsIDOMHTMLElement) + ['{a6cf90b9-15b3-11d2-932e-00805f8add32}'] + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetNoResize(): PRBool; safecall; + procedure SetNoResize(aNoResize: PRBool); safecall; + property NoResize: PRBool read GetNoResize write SetNoResize; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument; safecall; + property ContentDocument: nsIDOMDocument read GetContentDocument; + end; + + nsIDOMHTMLFrameSetElement = interface(nsIDOMHTMLElement) + ['{a6cf90b8-15b3-11d2-932e-00805f8add32}'] + procedure GetCols(aCols: nsAString); safecall; + procedure SetCols(const aCols: nsAString); safecall; + procedure GetRows(aRows: nsAString); safecall; + procedure SetRows(const aRows: nsAString); safecall; + end; + + nsIDOMHTMLHeadElement = interface(nsIDOMHTMLElement) + ['{a6cf9087-15b3-11d2-932e-00805f8add32}'] + procedure GetProfile(aProfile: nsAString); safecall; + procedure SetProfile(const aProfile: nsAString); safecall; + end; + + nsIDOMHTMLHeadingElement = interface(nsIDOMHTMLElement) + ['{a6cf90a2-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLHRElement = interface(nsIDOMHTMLElement) + ['{a6cf90a8-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + function GetNoShade(): PRBool; safecall; + procedure SetNoShade(aNoShade: PRBool); safecall; + property NoShade: PRBool read GetNoShade write SetNoShade; + procedure GetSize(aSize: nsAString); safecall; + procedure SetSize(const aSize: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLHtmlElement = interface(nsIDOMHTMLElement) + ['{a6cf9086-15b3-11d2-932e-00805f8add32}'] + procedure GetVersion(aVersion: nsAString); safecall; + procedure SetVersion(const aVersion: nsAString); safecall; + end; + + nsIDOMHTMLIFrameElement = interface(nsIDOMHTMLElement) + ['{a6cf90ba-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetFrameBorder(aFrameBorder: nsAString); safecall; + procedure SetFrameBorder(const aFrameBorder: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetMarginHeight(aMarginHeight: nsAString); safecall; + procedure SetMarginHeight(const aMarginHeight: nsAString); safecall; + procedure GetMarginWidth(aMarginWidth: nsAString); safecall; + procedure SetMarginWidth(const aMarginWidth: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScrolling(aScrolling: nsAString); safecall; + procedure SetScrolling(const aScrolling: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument; safecall; + property ContentDocument: nsIDOMDocument read GetContentDocument; + end; + + nsIDOMHTMLImageElement = interface(nsIDOMHTMLElement) + ['{a6cf90ab-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + function GetHeight(): PRInt32; safecall; + procedure SetHeight(aHeight: PRInt32); safecall; + property Height: PRInt32 read GetHeight write SetHeight; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + function GetIsMap(): PRBool; safecall; + procedure SetIsMap(aIsMap: PRBool); safecall; + property IsMap: PRBool read GetIsMap write SetIsMap; + procedure GetLongDesc(aLongDesc: nsAString); safecall; + procedure SetLongDesc(const aLongDesc: nsAString); safecall; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLInputElement = interface(nsIDOMHTMLElement) + ['{a6cf9093-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetDefaultChecked(): PRBool; safecall; + procedure SetDefaultChecked(aDefaultChecked: PRBool); safecall; + property DefaultChecked: PRBool read GetDefaultChecked write SetDefaultChecked; + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetAccept(aAccept: nsAString); safecall; + procedure SetAccept(const aAccept: nsAString); safecall; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAlt(aAlt: nsAString); safecall; + procedure SetAlt(const aAlt: nsAString); safecall; + function GetChecked(): PRBool; safecall; + procedure SetChecked(aChecked: PRBool); safecall; + property Checked: PRBool read GetChecked write SetChecked; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetSize(): PRUint32; safecall; + procedure SetSize(aSize: PRUint32); safecall; + property Size: PRUint32 read GetSize write SetSize; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + procedure Click(); safecall; + end; + + nsIDOMHTMLIsIndexElement = interface(nsIDOMHTMLElement) + ['{a6cf908c-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetPrompt(aPrompt: nsAString); safecall; + procedure SetPrompt(const aPrompt: nsAString); safecall; + end; + + nsIDOMHTMLLabelElement = interface(nsIDOMHTMLElement) + ['{a6cf9096-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + end; + + nsIDOMHTMLLegendElement = interface(nsIDOMHTMLElement) + ['{a6cf9098-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLLIElement = interface(nsIDOMHTMLElement) + ['{a6cf909e-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + function GetValue(): PRInt32; safecall; + procedure SetValue(aValue: PRInt32); safecall; + property Value: PRInt32 read GetValue write SetValue; + end; + + nsIDOMHTMLLinkElement = interface(nsIDOMHTMLElement) + ['{a6cf9088-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + procedure GetHref(aHref: nsAString); safecall; + procedure SetHref(const aHref: nsAString); safecall; + procedure GetHreflang(aHreflang: nsAString); safecall; + procedure SetHreflang(const aHreflang: nsAString); safecall; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetRel(aRel: nsAString); safecall; + procedure SetRel(const aRel: nsAString); safecall; + procedure GetRev(aRev: nsAString); safecall; + procedure SetRev(const aRev: nsAString); safecall; + procedure GetTarget(aTarget: nsAString); safecall; + procedure SetTarget(const aTarget: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLMapElement = interface(nsIDOMHTMLElement) + ['{a6cf90af-15b3-11d2-932e-00805f8add32}'] + function GetAreas(): nsIDOMHTMLCollection; safecall; + property Areas: nsIDOMHTMLCollection read GetAreas; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + end; + + nsIDOMHTMLMenuElement = interface(nsIDOMHTMLElement) + ['{a6cf909d-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + end; + + nsIDOMHTMLMetaElement = interface(nsIDOMHTMLElement) + ['{a6cf908a-15b3-11d2-932e-00805f8add32}'] + procedure GetContent(aContent: nsAString); safecall; + procedure SetContent(const aContent: nsAString); safecall; + procedure GetHttpEquiv(aHttpEquiv: nsAString); safecall; + procedure SetHttpEquiv(const aHttpEquiv: nsAString); safecall; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetScheme(aScheme: nsAString); safecall; + procedure SetScheme(const aScheme: nsAString); safecall; + end; + + nsIDOMHTMLModElement = interface(nsIDOMHTMLElement) + ['{a6cf90a9-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + procedure GetDateTime(aDateTime: nsAString); safecall; + procedure SetDateTime(const aDateTime: nsAString); safecall; + end; + + nsIDOMHTMLObjectElement = interface(nsIDOMHTMLElement) + ['{a6cf90ac-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetCode(aCode: nsAString); safecall; + procedure SetCode(const aCode: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetArchive(aArchive: nsAString); safecall; + procedure SetArchive(const aArchive: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCodeBase(aCodeBase: nsAString); safecall; + procedure SetCodeBase(const aCodeBase: nsAString); safecall; + procedure GetCodeType(aCodeType: nsAString); safecall; + procedure SetCodeType(const aCodeType: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function GetDeclare(): PRBool; safecall; + procedure SetDeclare(aDeclare: PRBool); safecall; + property Declare: PRBool read GetDeclare write SetDeclare; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetHspace(): PRInt32; safecall; + procedure SetHspace(aHspace: PRInt32); safecall; + property Hspace: PRInt32 read GetHspace write SetHspace; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetStandby(aStandby: nsAString); safecall; + procedure SetStandby(const aStandby: nsAString); safecall; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetUseMap(aUseMap: nsAString); safecall; + procedure SetUseMap(const aUseMap: nsAString); safecall; + function GetVspace(): PRInt32; safecall; + procedure SetVspace(aVspace: PRInt32); safecall; + property Vspace: PRInt32 read GetVspace write SetVspace; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function GetContentDocument(): nsIDOMDocument; safecall; + property ContentDocument: nsIDOMDocument read GetContentDocument; + end; + + nsIDOMHTMLOListElement = interface(nsIDOMHTMLElement) + ['{a6cf909a-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + function GetStart(): PRInt32; safecall; + procedure SetStart(aStart: PRInt32); safecall; + property Start: PRInt32 read GetStart write SetStart; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLOptGroupElement = interface(nsIDOMHTMLElement) + ['{a6cf9091-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + end; + + nsIDOMHTMLOptionElement = interface(nsIDOMHTMLElement) + ['{a6cf9092-15b3-11d2-932e-00805f8add32}'] + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + function GetDefaultSelected(): PRBool; safecall; + procedure SetDefaultSelected(aDefaultSelected: PRBool); safecall; + property DefaultSelected: PRBool read GetDefaultSelected write SetDefaultSelected; + procedure GetText(aText: nsAString); safecall; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetLabel(aLabel: nsAString); safecall; + procedure SetLabel(const aLabel: nsAString); safecall; + function GetSelected(): PRBool; safecall; + procedure SetSelected(aSelected: PRBool); safecall; + property Selected: PRBool read GetSelected write SetSelected; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMHTMLOptionsCollection = interface(nsISupports) + ['{bce0213c-f70f-488f-b93f-688acca55d63}'] + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function Item(index: PRUint32): nsIDOMNode; safecall; + function NamedItem(const name: nsAString): nsIDOMNode; safecall; + end; + + nsIDOMHTMLParagraphElement = interface(nsIDOMHTMLElement) + ['{a6cf90a1-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLParamElement = interface(nsIDOMHTMLElement) + ['{a6cf90ad-15b3-11d2-932e-00805f8add32}'] + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure GetValueType(aValueType: nsAString); safecall; + procedure SetValueType(const aValueType: nsAString); safecall; + end; + + nsIDOMHTMLPreElement = interface(nsIDOMHTMLElement) + ['{a6cf90a4-15b3-11d2-932e-00805f8add32}'] + function GetWidth(): PRInt32; safecall; + procedure SetWidth(aWidth: PRInt32); safecall; + property Width: PRInt32 read GetWidth write SetWidth; + end; + + nsIDOMHTMLQuoteElement = interface(nsIDOMHTMLElement) + ['{a6cf90a3-15b3-11d2-932e-00805f8add32}'] + procedure GetCite(aCite: nsAString); safecall; + procedure SetCite(const aCite: nsAString); safecall; + end; + + nsIDOMHTMLScriptElement = interface(nsIDOMHTMLElement) + ['{a6cf90b1-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + procedure GetHtmlFor(aHtmlFor: nsAString); safecall; + procedure SetHtmlFor(const aHtmlFor: nsAString); safecall; + procedure GetEvent(aEvent: nsAString); safecall; + procedure SetEvent(const aEvent: nsAString); safecall; + procedure GetCharset(aCharset: nsAString); safecall; + procedure SetCharset(const aCharset: nsAString); safecall; + function GetDefer(): PRBool; safecall; + procedure SetDefer(aDefer: PRBool); safecall; + property Defer: PRBool read GetDefer write SetDefer; + procedure GetSrc(aSrc: nsAString); safecall; + procedure SetSrc(const aSrc: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLSelectElement = interface(nsIDOMHTMLElement) + ['{a6cf9090-15b3-11d2-932e-00805f8add32}'] + procedure GetType(aType: nsAString); safecall; + function GetSelectedIndex(): PRInt32; safecall; + procedure SetSelectedIndex(aSelectedIndex: PRInt32); safecall; + property SelectedIndex: PRInt32 read GetSelectedIndex write SetSelectedIndex; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + function GetLength(): PRUint32; safecall; + procedure SetLength(aLength: PRUint32); safecall; + property Length: PRUint32 read GetLength write SetLength; + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + function GetOptions(): nsIDOMHTMLOptionsCollection; safecall; + property Options: nsIDOMHTMLOptionsCollection read GetOptions; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + function GetMultiple(): PRBool; safecall; + procedure SetMultiple(aMultiple: PRBool); safecall; + property Multiple: PRBool read GetMultiple write SetMultiple; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetSize(): PRInt32; safecall; + procedure SetSize(aSize: PRInt32); safecall; + property Size: PRInt32 read GetSize write SetSize; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure Add(element: nsIDOMHTMLElement; before: nsIDOMHTMLElement); safecall; + procedure Remove(index: PRInt32); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + end; + + nsIDOMHTMLStyleElement = interface(nsIDOMHTMLElement) + ['{a6cf908d-15b3-11d2-932e-00805f8add32}'] + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetMedia(aMedia: nsAString); safecall; + procedure SetMedia(const aMedia: nsAString); safecall; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMHTMLTableCaptionElement = interface(nsIDOMHTMLElement) + ['{a6cf90b3-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + end; + + nsIDOMHTMLTableCellElement = interface(nsIDOMHTMLElement) + ['{a6cf90b7-15b3-11d2-932e-00805f8add32}'] + function GetCellIndex(): PRInt32; safecall; + property CellIndex: PRInt32 read GetCellIndex; + procedure GetAbbr(aAbbr: nsAString); safecall; + procedure SetAbbr(const aAbbr: nsAString); safecall; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetAxis(aAxis: nsAString); safecall; + procedure SetAxis(const aAxis: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetColSpan(): PRInt32; safecall; + procedure SetColSpan(aColSpan: PRInt32); safecall; + property ColSpan: PRInt32 read GetColSpan write SetColSpan; + procedure GetHeaders(aHeaders: nsAString); safecall; + procedure SetHeaders(const aHeaders: nsAString); safecall; + procedure GetHeight(aHeight: nsAString); safecall; + procedure SetHeight(const aHeight: nsAString); safecall; + function GetNoWrap(): PRBool; safecall; + procedure SetNoWrap(aNoWrap: PRBool); safecall; + property NoWrap: PRBool read GetNoWrap write SetNoWrap; + function GetRowSpan(): PRInt32; safecall; + procedure SetRowSpan(aRowSpan: PRInt32); safecall; + property RowSpan: PRInt32 read GetRowSpan write SetRowSpan; + procedure GetScope(aScope: nsAString); safecall; + procedure SetScope(const aScope: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableColElement = interface(nsIDOMHTMLElement) + ['{a6cf90b4-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + function GetSpan(): PRInt32; safecall; + procedure SetSpan(aSpan: PRInt32); safecall; + property Span: PRInt32 read GetSpan write SetSpan; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + end; + + nsIDOMHTMLTableElement = interface(nsIDOMHTMLElement) + ['{a6cf90b2-15b3-11d2-932e-00805f8add32}'] + function GetCaption(): nsIDOMHTMLTableCaptionElement; safecall; + procedure SetCaption(aCaption: nsIDOMHTMLTableCaptionElement); safecall; + property Caption: nsIDOMHTMLTableCaptionElement read GetCaption write SetCaption; + function GetTHead(): nsIDOMHTMLTableSectionElement; safecall; + procedure SetTHead(aTHead: nsIDOMHTMLTableSectionElement); safecall; + property THead: nsIDOMHTMLTableSectionElement read GetTHead write SetTHead; + function GetTFoot(): nsIDOMHTMLTableSectionElement; safecall; + procedure SetTFoot(aTFoot: nsIDOMHTMLTableSectionElement); safecall; + property TFoot: nsIDOMHTMLTableSectionElement read GetTFoot write SetTFoot; + function GetRows(): nsIDOMHTMLCollection; safecall; + property Rows: nsIDOMHTMLCollection read GetRows; + function GetTBodies(): nsIDOMHTMLCollection; safecall; + property TBodies: nsIDOMHTMLCollection read GetTBodies; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetBorder(aBorder: nsAString); safecall; + procedure SetBorder(const aBorder: nsAString); safecall; + procedure GetCellPadding(aCellPadding: nsAString); safecall; + procedure SetCellPadding(const aCellPadding: nsAString); safecall; + procedure GetCellSpacing(aCellSpacing: nsAString); safecall; + procedure SetCellSpacing(const aCellSpacing: nsAString); safecall; + procedure GetFrame(aFrame: nsAString); safecall; + procedure SetFrame(const aFrame: nsAString); safecall; + procedure GetRules(aRules: nsAString); safecall; + procedure SetRules(const aRules: nsAString); safecall; + procedure GetSummary(aSummary: nsAString); safecall; + procedure SetSummary(const aSummary: nsAString); safecall; + procedure GetWidth(aWidth: nsAString); safecall; + procedure SetWidth(const aWidth: nsAString); safecall; + function CreateTHead(): nsIDOMHTMLElement; safecall; + procedure DeleteTHead(); safecall; + function CreateTFoot(): nsIDOMHTMLElement; safecall; + procedure DeleteTFoot(); safecall; + function CreateCaption(): nsIDOMHTMLElement; safecall; + procedure DeleteCaption(); safecall; + function InsertRow(index: PRInt32): nsIDOMHTMLElement; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableRowElement = interface(nsIDOMHTMLElement) + ['{a6cf90b6-15b3-11d2-932e-00805f8add32}'] + function GetRowIndex(): PRInt32; safecall; + property RowIndex: PRInt32 read GetRowIndex; + function GetSectionRowIndex(): PRInt32; safecall; + property SectionRowIndex: PRInt32 read GetSectionRowIndex; + function GetCells(): nsIDOMHTMLCollection; safecall; + property Cells: nsIDOMHTMLCollection read GetCells; + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function InsertCell(index: PRInt32): nsIDOMHTMLElement; safecall; + procedure DeleteCell(index: PRInt32); safecall; + end; + + nsIDOMHTMLTableSectionElement = interface(nsIDOMHTMLElement) + ['{a6cf90b5-15b3-11d2-932e-00805f8add32}'] + procedure GetAlign(aAlign: nsAString); safecall; + procedure SetAlign(const aAlign: nsAString); safecall; + procedure GetCh(aCh: nsAString); safecall; + procedure SetCh(const aCh: nsAString); safecall; + procedure GetChOff(aChOff: nsAString); safecall; + procedure SetChOff(const aChOff: nsAString); safecall; + procedure GetVAlign(aVAlign: nsAString); safecall; + procedure SetVAlign(const aVAlign: nsAString); safecall; + function GetRows(): nsIDOMHTMLCollection; safecall; + property Rows: nsIDOMHTMLCollection read GetRows; + function InsertRow(index: PRInt32): nsIDOMHTMLElement; safecall; + procedure DeleteRow(index: PRInt32); safecall; + end; + + nsIDOMHTMLTextAreaElement = interface(nsIDOMHTMLElement) + ['{a6cf9094-15b3-11d2-932e-00805f8add32}'] + procedure GetDefaultValue(aDefaultValue: nsAString); safecall; + procedure SetDefaultValue(const aDefaultValue: nsAString); safecall; + function GetForm(): nsIDOMHTMLFormElement; safecall; + property Form: nsIDOMHTMLFormElement read GetForm; + procedure GetAccessKey(aAccessKey: nsAString); safecall; + procedure SetAccessKey(const aAccessKey: nsAString); safecall; + function GetCols(): PRInt32; safecall; + procedure SetCols(aCols: PRInt32); safecall; + property Cols: PRInt32 read GetCols write SetCols; + function GetDisabled(): PRBool; safecall; + procedure SetDisabled(aDisabled: PRBool); safecall; + property Disabled: PRBool read GetDisabled write SetDisabled; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetReadOnly(): PRBool; safecall; + procedure SetReadOnly(aReadOnly: PRBool); safecall; + property ReadOnly: PRBool read GetReadOnly write SetReadOnly; + function GetRows(): PRInt32; safecall; + procedure SetRows(aRows: PRInt32); safecall; + property Rows: PRInt32 read GetRows write SetRows; + function GetTabIndex(): PRInt32; safecall; + procedure SetTabIndex(aTabIndex: PRInt32); safecall; + property TabIndex: PRInt32 read GetTabIndex write SetTabIndex; + procedure GetType(aType: nsAString); safecall; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + procedure Blur(); safecall; + procedure Focus(); safecall; + procedure Select(); safecall; + end; + + nsIDOMHTMLTitleElement = interface(nsIDOMHTMLElement) + ['{a6cf9089-15b3-11d2-932e-00805f8add32}'] + procedure GetText(aText: nsAString); safecall; + procedure SetText(const aText: nsAString); safecall; + end; + + nsIDOMHTMLUListElement = interface(nsIDOMHTMLElement) + ['{a6cf9099-15b3-11d2-932e-00805f8add32}'] + function GetCompact(): PRBool; safecall; + procedure SetCompact(aCompact: PRBool); safecall; + property Compact: PRBool read GetCompact write SetCompact; + procedure GetType(aType: nsAString); safecall; + procedure SetType(const aType: nsAString); safecall; + end; + + nsIDOMMediaList = interface(nsISupports) + ['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}'] + procedure GetMediaText(aMediaText: nsAString); safecall; + procedure SetMediaText(const aMediaText: nsAString); safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure DeleteMedium(const oldMedium: nsAString); safecall; + procedure AppendMedium(const newMedium: nsAString); safecall; + end; + + nsIDOMUIEvent = interface(nsIDOMEvent) + ['{a6cf90c3-15b3-11d2-932e-00805f8add32}'] + function GetView(): nsIDOMAbstractView; safecall; + property View: nsIDOMAbstractView read GetView; + function GetDetail(): PRInt32; safecall; + property Detail: PRInt32 read GetDetail; + procedure InitUIEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView; detailArg: PRInt32); safecall; + end; + + nsIDOMMouseEvent = interface(nsIDOMUIEvent) + ['{ff751edc-8b02-aae7-0010-8301838a3123}'] + function GetScreenX(): PRInt32; safecall; + property ScreenX: PRInt32 read GetScreenX; + function GetScreenY(): PRInt32; safecall; + property ScreenY: PRInt32 read GetScreenY; + function GetClientX(): PRInt32; safecall; + property ClientX: PRInt32 read GetClientX; + function GetClientY(): PRInt32; safecall; + property ClientY: PRInt32 read GetClientY; + function GetCtrlKey(): PRBool; safecall; + property CtrlKey: PRBool read GetCtrlKey; + function GetShiftKey(): PRBool; safecall; + property ShiftKey: PRBool read GetShiftKey; + function GetAltKey(): PRBool; safecall; + property AltKey: PRBool read GetAltKey; + function GetMetaKey(): PRBool; safecall; + property MetaKey: PRBool read GetMetaKey; + function GetButton(): PRUint16; safecall; + property Button: PRUint16 read GetButton; + function GetRelatedTarget(): nsIDOMEventTarget; safecall; + property RelatedTarget: nsIDOMEventTarget read GetRelatedTarget; + procedure InitMouseEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; viewArg: nsIDOMAbstractView; detailArg: PRInt32; screenXArg: PRInt32; screenYArg: PRInt32; clientXArg: PRInt32; clientYArg: PRInt32; ctrlKeyArg: PRBool; altKeyArg: PRBool; shiftKeyArg: PRBool; metaKeyArg: PRBool; buttonArg: PRUint16; relatedTargetArg: nsIDOMEventTarget); safecall; + end; + + nsIDOMNamedNodeMap = interface(nsISupports) + ['{a6cf907b-15b3-11d2-932e-00805f8add32}'] + function GetNamedItem(const name: nsAString): nsIDOMNode; safecall; + function SetNamedItem(arg: nsIDOMNode): nsIDOMNode; safecall; + function RemoveNamedItem(const name: nsAString): nsIDOMNode; safecall; + function Item(index: PRUint32): nsIDOMNode; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function GetNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode; safecall; + function SetNamedItemNS(arg: nsIDOMNode): nsIDOMNode; safecall; + function RemoveNamedItemNS(const namespaceURI: nsAString; const localName: nsAString): nsIDOMNode; safecall; + end; + + nsIDOMNodeList = interface(nsISupports) + ['{a6cf907d-15b3-11d2-932e-00805f8add32}'] + function Item(index: PRUint32): nsIDOMNode; safecall; + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + end; + + nsIDOMNotation = interface(nsIDOMNode) + ['{a6cf907e-15b3-11d2-932e-00805f8add32}'] + procedure GetPublicId(aPublicId: nsAString); safecall; + procedure GetSystemId(aSystemId: nsAString); safecall; + end; + + nsIDOMNSHTMLDocument = interface(nsISupports) + ['{79BEB289-3644-4B54-9432-9FB993945629}'] + procedure GetWidth(out aWidth: Integer); safecall; + procedure GetHeight(out aHeight: Integer); safecall; + procedure GetAlinkColor(aAlinkColor: nsAString); safecall; + procedure SetAlinkColor(const aAlinkColor: nsAString); safecall; + procedure GetLinkColor(aLinkColor: nsAString); safecall; + procedure SetLinkColor(const aLinkColor: nsAString); safecall; + procedure GetVlinkColor(aVlinkColor: nsAString); safecall; + procedure SetVlinkColor(const aVlinkColor: nsAString); safecall; + procedure GetBgColor(aBgColor: nsAString); safecall; + procedure SetBgColor(const aBgColor: nsAString); safecall; + procedure GetFgColor(aFgColor: nsAString); safecall; + procedure SetFgColor(const aFgColor: nsAString); safecall; + procedure GetDomain(aDomain: nsAString); safecall; + procedure SetDomain(const aDomain: nsAString); safecall; + procedure GetEmbeds(out aEmbeds: nsIDOMHTMLCollection); safecall; + procedure GetSelection(_retval: nsAString); safecall; + function Open(const aContentType: nsACString; aReplace: LongBool): nsIDOMDocument; safecall; + procedure Write(); safecall; + procedure Writeln(); safecall; + procedure Clear(); safecall; + procedure CaptureEvents(eventFlags: Integer); safecall; + procedure ReleaseEvents(eventFlags: Integer); safecall; + procedure RouteEvent(evt: nsIDOMEvent); safecall; + procedure GetCompatMode(aCompatMode: nsAString); safecall; + procedure GetPlugins(out aPlugins: nsIDOMHTMLCollection); safecall; + procedure GetDesignMode(aDesignMode: nsAString); safecall; + procedure SetDesignMode(const aDesignMode: nsAString); safecall; + function ExecCommand(const commandID: nsAString; doShowUI: LongBool; const value: nsAString): LongBool; safecall; + function ExecCommandShowHelp(const commandID: nsAString): LongBool; safecall; + function QueryCommandEnabled(const commandID: nsAString): LongBool; safecall; + function QueryCommandIndeterm(const commandID: nsAString): LongBool; safecall; + function QueryCommandState(const commandID: nsAString): LongBool; safecall; + function QueryCommandSupported(const commandID: nsAString): LongBool; safecall; + procedure QueryCommandText(const commandID: nsAString; _retval: nsAString); extdecl; + procedure QueryCommandValue(const commandID: nsAString; _retval: nsAString); extdecl; + end; + + nsIDOMOfflineResourceList = interface(nsISupports) + ['{8449bce2-0d8c-4c74-ab79-b41b8d81f1c4}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Item(index: PRUint32; _retval: nsAString); safecall; + procedure Add(const uri: nsAString); safecall; + procedure Remove(const uri: nsAString); safecall; + function GetStatus(): PRUint16; safecall; + property Status: PRUint16 read GetStatus; + procedure Update(); safecall; + procedure SwapCache(); safecall; + function GetOnchecking(): nsIDOMEventListener; safecall; + procedure SetOnchecking(aOnchecking: nsIDOMEventListener); safecall; + property Onchecking: nsIDOMEventListener read GetOnchecking write SetOnchecking; + function GetOnerror(): nsIDOMEventListener; safecall; + procedure SetOnerror(aOnerror: nsIDOMEventListener); safecall; + property Onerror: nsIDOMEventListener read GetOnerror write SetOnerror; + function GetOnnoupdate(): nsIDOMEventListener; safecall; + procedure SetOnnoupdate(aOnnoupdate: nsIDOMEventListener); safecall; + property Onnoupdate: nsIDOMEventListener read GetOnnoupdate write SetOnnoupdate; + function GetOndownloading(): nsIDOMEventListener; safecall; + procedure SetOndownloading(aOndownloading: nsIDOMEventListener); safecall; + property Ondownloading: nsIDOMEventListener read GetOndownloading write SetOndownloading; + function GetOnprogress(): nsIDOMEventListener; safecall; + procedure SetOnprogress(aOnprogress: nsIDOMEventListener); safecall; + property Onprogress: nsIDOMEventListener read GetOnprogress write SetOnprogress; + function GetOnupdateready(): nsIDOMEventListener; safecall; + procedure SetOnupdateready(aOnupdateready: nsIDOMEventListener); safecall; + property Onupdateready: nsIDOMEventListener read GetOnupdateready write SetOnupdateready; + function GetOncached(): nsIDOMEventListener; safecall; + procedure SetOncached(aOncached: nsIDOMEventListener); safecall; + property Oncached: nsIDOMEventListener read GetOncached write SetOncached; + end; + + nsIDOMProcessingInstruction = interface(nsIDOMNode) + ['{a6cf907f-15b3-11d2-932e-00805f8add32}'] + procedure GetTarget(aTarget: nsAString); safecall; + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + end; + + nsIDOMRange = interface(nsISupports) + ['{a6cf90ce-15b3-11d2-932e-00805f8add32}'] + function GetStartContainer(): nsIDOMNode; safecall; + property StartContainer: nsIDOMNode read GetStartContainer; + function GetStartOffset(): PRInt32; safecall; + property StartOffset: PRInt32 read GetStartOffset; + function GetEndContainer(): nsIDOMNode; safecall; + property EndContainer: nsIDOMNode read GetEndContainer; + function GetEndOffset(): PRInt32; safecall; + property EndOffset: PRInt32 read GetEndOffset; + function GetCollapsed(): PRBool; safecall; + property Collapsed: PRBool read GetCollapsed; + function GetCommonAncestorContainer(): nsIDOMNode; safecall; + property CommonAncestorContainer: nsIDOMNode read GetCommonAncestorContainer; + procedure SetStart(refNode: nsIDOMNode; offset: PRInt32); safecall; + procedure SetEnd(refNode: nsIDOMNode; offset: PRInt32); safecall; + procedure SetStartBefore(refNode: nsIDOMNode); safecall; + procedure SetStartAfter(refNode: nsIDOMNode); safecall; + procedure SetEndBefore(refNode: nsIDOMNode); safecall; + procedure SetEndAfter(refNode: nsIDOMNode); safecall; + procedure Collapse(toStart: PRBool); safecall; + procedure SelectNode(refNode: nsIDOMNode); safecall; + procedure SelectNodeContents(refNode: nsIDOMNode); safecall; + function CompareBoundaryPoints(how: PRUint16; sourceRange: nsIDOMRange): PRInt16; safecall; + procedure DeleteContents(); safecall; + function ExtractContents(): nsIDOMDocumentFragment; safecall; + function CloneContents(): nsIDOMDocumentFragment; safecall; + procedure InsertNode(newNode: nsIDOMNode); safecall; + procedure SurroundContents(newParent: nsIDOMNode); safecall; + function CloneRange(): nsIDOMRange; safecall; + procedure ToString(_retval: nsAString); safecall; + procedure Detach(); safecall; + end; + + nsIDOMRect = interface(nsISupports) + ['{71735f62-ac5c-4236-9a1f-5ffb280d531c}'] + function GetTop(): nsIDOMCSSPrimitiveValue; safecall; + property Top: nsIDOMCSSPrimitiveValue read GetTop; + function GetRight(): nsIDOMCSSPrimitiveValue; safecall; + property Right: nsIDOMCSSPrimitiveValue read GetRight; + function GetBottom(): nsIDOMCSSPrimitiveValue; safecall; + property Bottom: nsIDOMCSSPrimitiveValue read GetBottom; + function GetLeft(): nsIDOMCSSPrimitiveValue; safecall; + property Left: nsIDOMCSSPrimitiveValue read GetLeft; + end; + + nsIDOMRGBColor = interface(nsISupports) + ['{6aff3102-320d-4986-9790-12316bb87cf9}'] + function GetRed(): nsIDOMCSSPrimitiveValue; safecall; + property Red: nsIDOMCSSPrimitiveValue read GetRed; + function GetGreen(): nsIDOMCSSPrimitiveValue; safecall; + property Green: nsIDOMCSSPrimitiveValue read GetGreen; + function GetBlue(): nsIDOMCSSPrimitiveValue; safecall; + property Blue: nsIDOMCSSPrimitiveValue read GetBlue; + end; + + nsIDOMStorage = interface(nsISupports) + ['{95cc1383-3b62-4b89-aaef-1004a513ef47}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + procedure Key(index: PRUint32; _retval: nsAString); safecall; + function GetItem(const key: nsAString): nsIDOMStorageItem; safecall; + procedure SetItem(const key: nsAString; const data: nsAString); safecall; + procedure RemoveItem(const key: nsAString); safecall; + end; + + nsIDOMStorageEvent = interface(nsIDOMEvent) + ['{fc540c28-8edd-4b7a-9c30-8638289b7a7d}'] + procedure GetDomain(aDomain: nsAString); safecall; + procedure InitStorageEvent(const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString); safecall; + procedure InitStorageEventNS(const namespaceURIArg: nsAString; const typeArg: nsAString; canBubbleArg: PRBool; cancelableArg: PRBool; const domainArg: nsAString); safecall; + end; + + nsIDOMStorageItem = interface(nsISupports) + ['{0cc37c78-4c5f-48e1-adfc-7480b8fe9dc4}'] + function GetSecure(): PRBool; safecall; + procedure SetSecure(aSecure: PRBool); safecall; + property Secure: PRBool read GetSecure write SetSecure; + procedure GetValue(aValue: nsAString); safecall; + procedure SetValue(const aValue: nsAString); safecall; + end; + + nsIDOMStorageList = interface(nsISupports) + ['{f2166929-91b6-4372-8d5f-c366f47a5f54}'] + function NamedItem(const domain: nsAString): nsIDOMStorage; safecall; + end; + + nsIDOMStorageWindow = interface(nsISupports) + ['{55e9c181-2476-47cf-97f8-efdaaf7b6f7a}'] + function GetSessionStorage(): nsIDOMStorage; safecall; + property SessionStorage: nsIDOMStorage read GetSessionStorage; + function GetGlobalStorage(): nsIDOMStorageList; safecall; + property GlobalStorage: nsIDOMStorageList read GetGlobalStorage; + end; + + nsIDOMStyleSheetList = interface(nsISupports) + ['{a6cf9081-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMStyleSheet; safecall; + end; + + nsIDOMWindow = interface(nsISupports) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetDocument(): nsIDOMDocument; safecall; + property Document: nsIDOMDocument read GetDocument; + function GetParent(): nsIDOMWindow; safecall; + property Parent: nsIDOMWindow read GetParent; + function GetTop(): nsIDOMWindow; safecall; + property Top: nsIDOMWindow read GetTop; + function GetScrollbars(): nsIDOMBarProp; safecall; + property Scrollbars: nsIDOMBarProp read GetScrollbars; + function GetFrames(): nsIDOMWindowCollection; safecall; + property Frames: nsIDOMWindowCollection read GetFrames; + procedure GetName(aName: nsAString); safecall; + procedure SetName(const aName: nsAString); safecall; + function GetTextZoom(): Single; safecall; + procedure SetTextZoom(aTextZoom: Single); safecall; + property TextZoom: Single read GetTextZoom write SetTextZoom; + function GetScrollX(): PRInt32; safecall; + property ScrollX: PRInt32 read GetScrollX; + function GetScrollY(): PRInt32; safecall; + property ScrollY: PRInt32 read GetScrollY; + procedure ScrollTo(xScroll: PRInt32; yScroll: PRInt32); safecall; + procedure ScrollBy(xScrollDif: PRInt32; yScrollDif: PRInt32); safecall; + function GetSelection(): nsISelection; safecall; + procedure ScrollByLines(numLines: PRInt32); safecall; + procedure ScrollByPages(numPages: PRInt32); safecall; + procedure SizeToContent(); safecall; + end; + + {$IFDEF XULRUNNER2} + nsIDOMWindow2 = interface(nsIDOMWindow) + ['{a6cf906b-15b3-11d2-932e-00805f8add32}'] + function GetWindowRoot(): nsIDOMEventTarget; safecall; + property WindowRoot: nsIDOMEventTarget read GetWindowRoot; + function GetApplicationCache(): nsIDOMOfflineResourceList; safecall; + property ApplicationCache: nsIDOMOfflineResourceList read GetApplicationCache; + end; + {$ELSE XULRUNNER2} + nsIDOMWindow2 = interface(nsIDOMWindow) + ['{73c5fa35-3add-4c87-a303-a850ccf4d65a}'] + function GetWindowRoot(): nsIDOMEventTarget; safecall; + property WindowRoot: nsIDOMEventTarget read GetWindowRoot; + function GetApplicationCache(): nsIDOMOfflineResourceList; safecall; + property ApplicationCache: nsIDOMOfflineResourceList read GetApplicationCache; + end; + {$ENDIF} + + nsIDOMWindowCollection = interface(nsISupports) + ['{a6cf906f-15b3-11d2-932e-00805f8add32}'] + function GetLength(): PRUint32; safecall; + property Length: PRUint32 read GetLength; + function Item(index: PRUint32): nsIDOMWindow; safecall; + function NamedItem(const name: nsAString): nsIDOMWindow; safecall; + end; + + nsIDOMWindowUtils = interface(nsISupports) + ['{1cfc1a0a-e348-4b18-b61b-935c192f85c4}'] + function GetImageAnimationMode(): PRUint16; safecall; + procedure SetImageAnimationMode(aImageAnimationMode: PRUint16); safecall; + property ImageAnimationMode: PRUint16 read GetImageAnimationMode write SetImageAnimationMode; + function GetDocCharsetIsForced(): PRBool; safecall; + property DocCharsetIsForced: PRBool read GetDocCharsetIsForced; + procedure GetDocumentMetadata(const aName: nsAString; _retval: nsAString); safecall; + procedure Redraw(); safecall; + procedure SendMouseEvent(const aType: nsAString; aX: PRInt32; aY: PRInt32; aButton: PRInt32; aClickCount: PRInt32; aModifiers: PRInt32); safecall; + procedure SendKeyEvent(const aType: nsAString; aKeyCode: PRInt32; aCharCode: PRInt32; aModifiers: PRInt32); safecall; + procedure SendNativeKeyEvent(aNativeKeyboardLayout: PRInt32; aNativeKeyCode: PRInt32; aModifierFlags: PRInt32; const aCharacters: nsAString; const aUnmodifiedCharacters: nsAString); safecall; + procedure Focus(aElement: nsIDOMElement); safecall; + procedure GarbageCollect(); safecall; + end; + + nsIEmbeddingSiteWindow = interface(nsISupports) + ['{3e5432cd-9568-4bd1-8cbe-d50aba110743}'] + procedure SetDimensions(flags: PRUint32; x: PRInt32; y: PRInt32; cx: PRInt32; cy: PRInt32); safecall; + procedure GetDimensions(flags: PRUint32; out x: PRInt32; out y: PRInt32; out cx: PRInt32; out cy: PRInt32); safecall; + procedure SetFocus(); safecall; + function GetVisibility(): PRBool; safecall; + procedure SetVisibility(aVisibility: PRBool); safecall; + property Visibility: PRBool read GetVisibility write SetVisibility; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetSiteWindow(): Pointer; safecall; + property SiteWindow: Pointer read GetSiteWindow; + end; + + nsIFactory = interface(nsISupports) + ['{00000001-0000-0000-c000-000000000046}'] + procedure CreateInstance(aOuter: nsISupports; constref iid: TGUID; out _result); safecall; + procedure LockFactory(lock: PRBool); safecall; + end; + + nsIURI = interface(nsISupports) + ['{07a22cc0-0ce5-11d3-9331-00104ba0fd40}'] + procedure GetSpec(aSpec: nsAUTF8String); safecall; + procedure SetSpec(const aSpec: nsAUTF8String); safecall; + procedure GetPrePath(aPrePath: nsAUTF8String); safecall; + procedure GetScheme(aScheme: nsACString); safecall; + procedure SetScheme(const aScheme: nsACString); safecall; + procedure GetUserPass(aUserPass: nsAUTF8String); safecall; + procedure SetUserPass(const aUserPass: nsAUTF8String); safecall; + procedure GetUsername(aUsername: nsAUTF8String); safecall; + procedure SetUsername(const aUsername: nsAUTF8String); safecall; + procedure GetPassword(aPassword: nsAUTF8String); safecall; + procedure SetPassword(const aPassword: nsAUTF8String); safecall; + procedure GetHostPort(aHostPort: nsAUTF8String); safecall; + procedure SetHostPort(const aHostPort: nsAUTF8String); safecall; + procedure GetHost(aHost: nsAUTF8String); safecall; + procedure SetHost(const aHost: nsAUTF8String); safecall; + function GetPort(): PRInt32; safecall; + procedure SetPort(aPort: PRInt32); safecall; + property Port: PRInt32 read GetPort write SetPort; + procedure GetPath(aPath: nsAUTF8String); safecall; + procedure SetPath(const aPath: nsAUTF8String); safecall; + function Equals(other: nsIURI): PRBool; safecall; + function SchemeIs(const scheme: PAnsiChar): PRBool; safecall; + function Clone(): nsIURI; safecall; + procedure Resolve(const relativePath: nsAUTF8String; _retval: nsAUTF8String); safecall; + procedure GetAsciiSpec(aAsciiSpec: nsACString); safecall; + procedure GetAsciiHost(aAsciiHost: nsACString); safecall; + procedure GetOriginCharset(aOriginCharset: nsACString); safecall; + end; + + nsIURL = interface(nsIURI) + ['{d6116970-8034-11d3-9399-00104ba0fd40}'] + procedure GetFilePath(aFilePath: nsAUTF8String); safecall; + procedure SetFilePath(const aFilePath: nsAUTF8String); safecall; + procedure GetParam(aParam: nsAUTF8String); safecall; + procedure SetParam(const aParam: nsAUTF8String); safecall; + procedure GetQuery(aQuery: nsAUTF8String); safecall; + procedure SetQuery(const aQuery: nsAUTF8String); safecall; + procedure GetRef(aRef: nsAUTF8String); safecall; + procedure SetRef(const aRef: nsAUTF8String); safecall; + procedure GetDirectory(aDirectory: nsAUTF8String); safecall; + procedure SetDirectory(const aDirectory: nsAUTF8String); safecall; + procedure GetFileName(aFileName: nsAUTF8String); safecall; + procedure SetFileName(const aFileName: nsAUTF8String); safecall; + procedure GetFileBaseName(aFileBaseName: nsAUTF8String); safecall; + procedure SetFileBaseName(const aFileBaseName: nsAUTF8String); safecall; + procedure GetFileExtension(aFileExtension: nsAUTF8String); safecall; + procedure SetFileExtension(const aFileExtension: nsAUTF8String); safecall; + procedure GetCommonBaseSpec(aURIToCompare: nsIURI; _retval: nsAUTF8String); safecall; + procedure GetRelativeSpec(aURIToCompare: nsIURI; _retval: nsAUTF8String); safecall; + end; + + nsIFileURL = interface(nsIURL) + ['{d26b2e2e-1dd1-11b2-88f3-8545a7ba7949}'] + function GetFile(): nsIFile; safecall; + procedure SetFile(aFile: nsIFile); safecall; + property _File: nsIFile read GetFile write SetFile; + end; + + nsIGlobalHistory = interface(nsISupports) + ['{9491c383-e3c4-11d2-bdbe-0050040a9b44}'] + procedure AddPage(const aURL: PAnsiChar); safecall; + function IsVisited(const aURL: PAnsiChar): PRBool; safecall; + end; + + nsIHashable = interface(nsISupports) + ['{17e595fa-b57a-4933-bd0f-b1812e8ab188}'] + function Equals(aOther: nsIHashable): PRBool; safecall; + function GetHashCode(): PRUint32; safecall; + property HashCode: PRUint32 read GetHashCode; + end; + + nsIHistoryEntry = interface(nsISupports) + ['{a41661d4-1417-11d5-9882-00c04fa02f40}'] + function GetURI(): nsIURI; safecall; + property URI: nsIURI read GetURI; + function GetTitle(): PWideChar; safecall; + property Title: PWideChar read GetTitle; + function GetIsSubFrame(): PRBool; safecall; + property IsSubFrame: PRBool read GetIsSubFrame; + end; + + nsIHttpChannel = interface(nsIChannel) + ['{9277fe09-f0cc-4cd9-bbce-581dd94b0260}'] + procedure GetRequestMethod(aRequestMethod: nsACString); safecall; + procedure SetRequestMethod(const aRequestMethod: nsACString); safecall; + function GetReferrer(): nsIURI; safecall; + procedure SetReferrer(aReferrer: nsIURI); safecall; + property Referrer: nsIURI read GetReferrer write SetReferrer; + function GetRequestHeader(const aHeader: nsACString): nsACString; safecall; + procedure SetRequestHeader(const aHeader: nsACString; const aValue: nsACString; aMerge: PRBool); safecall; + procedure VisitRequestHeaders(aVisitor: nsIHttpHeaderVisitor); safecall; + function GetAllowPipelining(): PRBool; safecall; + procedure SetAllowPipelining(aAllowPipelining: PRBool); safecall; + property AllowPipelining: PRBool read GetAllowPipelining write SetAllowPipelining; + function GetRedirectionLimit(): PRUint32; safecall; + procedure SetRedirectionLimit(aRedirectionLimit: PRUint32); safecall; + property RedirectionLimit: PRUint32 read GetRedirectionLimit write SetRedirectionLimit; + function GetResponseStatus(): PRUint32; safecall; + property ResponseStatus: PRUint32 read GetResponseStatus; + procedure GetResponseStatusText(aResponseStatusText: nsACString); safecall; + function GetRequestSucceeded(): PRBool; safecall; + property RequestSucceeded: PRBool read GetRequestSucceeded; + function GetResponseHeader(const header: nsACString): nsACString; safecall; + procedure SetResponseHeader(const header: nsACString; const value: nsACString; merge: PRBool); safecall; + procedure VisitResponseHeaders(aVisitor: nsIHttpHeaderVisitor); safecall; + function IsNoStoreResponse(): PRBool; safecall; + function IsNoCacheResponse(): PRBool; safecall; + end; + + nsIHttpHeaderVisitor = interface(nsISupports) + ['{0cf40717-d7c1-4a94-8c1e-d6c9734101bb}'] + procedure VisitHeader(const aHeader: nsACString; const aValue: nsACString); safecall; + end; + + nsIInputStream = interface(nsISupports) + ['{fa9c7f6c-61b3-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + function Available(): PRUint32; safecall; + function Read(aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function ReadSegments(aWriter: nsWriteSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIInterfaceRequestor = interface(nsISupports) + ['{033a1470-8b2a-11d3-af88-00a024ffc08c}'] + procedure GetInterface(constref uuid: TGUID; out _result); safecall; + end; + + nsIIOService = interface(nsISupports) + ['{bddeda3f-9020-4d12-8c70-984ee9f7935e}'] + function GetProtocolHandler(const aScheme: PAnsiChar): nsIProtocolHandler; safecall; + function GetProtocolFlags(const aScheme: PAnsiChar): PRUint32; safecall; + function NewURI(const aSpec: nsAUTF8String; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI): nsIURI; safecall; + function NewFileURI(aFile: nsIFile): nsIURI; safecall; + function NewChannelFromURI(aURI: nsIURI): nsIChannel; safecall; + function NewChannel(const aSpec: nsAUTF8String; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI): nsIChannel; safecall; + function GetOffline(): PRBool; safecall; + procedure SetOffline(aOffline: PRBool); safecall; + property Offline: PRBool read GetOffline write SetOffline; + function AllowPort(aPort: PRInt32; const aScheme: PAnsiChar): PRBool; safecall; + function ExtractScheme(const urlString: nsAUTF8String): nsAUTF8String; safecall; + end; + + nsIJSON = interface(nsISupports) + ['{45464c36-efde-4cb5-8e00-07480533ff35}'] + procedure Encode(_retval: nsAString); safecall; + procedure EncodeToStream(stream: nsIOutputStream; const charset: PAnsiChar; writeBOM: PRBool); safecall; + procedure Decode(const str: nsAString); safecall; + procedure DecodeFromStream(stream: nsIInputStream; contentLength: PRInt32); safecall; + end; + + nsILoadGroup = interface(nsIRequest) + ['{3de0a31c-feaf-400f-9f1e-4ef71f8b20cc}'] + function GetGroupObserver(): nsIRequestObserver; safecall; + procedure SetGroupObserver(aGroupObserver: nsIRequestObserver); safecall; + property GroupObserver: nsIRequestObserver read GetGroupObserver write SetGroupObserver; + function GetDefaultLoadRequest(): nsIRequest; safecall; + procedure SetDefaultLoadRequest(aDefaultLoadRequest: nsIRequest); safecall; + property DefaultLoadRequest: nsIRequest read GetDefaultLoadRequest write SetDefaultLoadRequest; + procedure AddRequest(aRequest: nsIRequest; aContext: nsISupports); safecall; + procedure RemoveRequest(aRequest: nsIRequest; aContext: nsISupports; aStatus: nsresult); safecall; + function GetRequests(): nsISimpleEnumerator; safecall; + property Requests: nsISimpleEnumerator read GetRequests; + function GetActiveCount(): PRUint32; safecall; + property ActiveCount: PRUint32 read GetActiveCount; + function GetNotificationCallbacks(): nsIInterfaceRequestor; safecall; + procedure SetNotificationCallbacks(aNotificationCallbacks: nsIInterfaceRequestor); safecall; + property NotificationCallbacks: nsIInterfaceRequestor read GetNotificationCallbacks write SetNotificationCallbacks; + end; + + nsILocalFile = interface(nsIFile) + ['{aa610f20-a889-11d3-8c81-000064657374}'] + procedure InitWithPath(const filePath: nsAString); safecall; + procedure InitWithNativePath(const filePath: nsACString); safecall; + procedure InitWithFile(aFile: nsILocalFile); safecall; + function GetFollowLinks(): PRBool; safecall; + procedure SetFollowLinks(aFollowLinks: PRBool); safecall; + property FollowLinks: PRBool read GetFollowLinks write SetFollowLinks; + function OpenNSPRFileDesc(flags: PRInt32; mode: PRInt32): PPRFileDesc; safecall; + function OpenANSIFileDesc(const mode: PAnsiChar): PFILE; safecall; + function Load(): PPRLibrary; safecall; + function GetDiskSpaceAvailable(): PRInt64; safecall; + property DiskSpaceAvailable: PRInt64 read GetDiskSpaceAvailable; + procedure AppendRelativePath(const relativeFilePath: nsAString); safecall; + procedure AppendRelativeNativePath(const relativeFilePath: nsACString); safecall; + procedure GetPersistentDescriptor(aPersistentDescriptor: nsACString); safecall; + procedure SetPersistentDescriptor(const aPersistentDescriptor: nsACString); safecall; + procedure Reveal(); safecall; + procedure Launch(); safecall; + function GetRelativeDescriptor(fromFile: nsILocalFile): nsACString; safecall; + procedure SetRelativeDescriptor(fromFile: nsILocalFile; const relativeDesc: nsACString); safecall; + end; + + nsIMemory = interface(nsISupports) + ['{59e7e77a-38e4-11d4-8cf5-0060b0fc14a3}'] + function Alloc(size: size_t): Pointer; extdecl; + function Realloc(ptr: Pointer; newSize: size_t): Pointer; extdecl; + procedure Free(ptr: Pointer); extdecl; + procedure HeapMinimize(immediate: PRBool); safecall; + function IsLowMemory(): PRBool; safecall; + end; + + nsIModule = interface(nsISupports) + ['{7392d032-5371-11d3-994e-00805fd26fee}'] + procedure GetClassObject(aCompMgr: nsIComponentManager; constref aClass: TGUID; constref aIID: TGUID; out aResult); safecall; + procedure RegisterSelf(aCompMgr: nsIComponentManager; aLocation: nsIFile; const aLoaderStr: PAnsiChar; const aType: PAnsiChar); safecall; + procedure UnregisterSelf(aCompMgr: nsIComponentManager; aLocation: nsIFile; const aLoaderStr: PAnsiChar); safecall; + function CanUnload(aCompMgr: nsIComponentManager): PRBool; safecall; + end; + + nsIMutableArray = interface(nsIArray) + ['{af059da0-c85b-40ec-af07-ae4bfdc192cc}'] + procedure AppendElement(element: nsISupports; weak: PRBool); safecall; + procedure RemoveElementAt(index: PRUint32); safecall; + procedure InsertElementAt(element: nsISupports; index: PRUint32; weak: PRBool); safecall; + procedure ReplaceElementAt(element: nsISupports; index: PRUint32; weak: PRBool); safecall; + procedure Clear(); safecall; + end; + + nsIObserver = interface(nsISupports) + ['{db242e01-e4d9-11d2-9dde-000064657374}'] + procedure Observe(aSubject: nsISupports; const aTopic: PAnsiChar; const aData: PWideChar); safecall; + end; + + nsIObserverService = interface(nsISupports) + ['{d07f5192-e3d1-11d2-8acd-00105a1b8860}'] + procedure AddObserver(anObserver: nsIObserver; const aTopic: PAnsiChar; ownsWeak: PRBool); safecall; + procedure RemoveObserver(anObserver: nsIObserver; const aTopic: PAnsiChar); safecall; + procedure NotifyObservers(aSubject: nsISupports; const aTopic: PAnsiChar; const someData: PWideChar); safecall; + function EnumerateObservers(const aTopic: PAnsiChar): nsISimpleEnumerator; safecall; + end; + + nsIOutputStream = interface(nsISupports) + ['{0d0acd2a-61b4-11d4-9877-00c04fa0cf4a}'] + procedure Close(); safecall; + procedure Flush(); safecall; + function Write(const aBuf: PAnsiChar; aCount: PRUint32): PRUint32; safecall; + function WriteFrom(aFromStream: nsIInputStream; aCount: PRUint32): PRUint32; safecall; + function WriteSegments(aReader: nsReadSegmentFun; aClosure: Pointer; aCount: PRUint32): PRUint32; safecall; + function IsNonBlocking(): PRBool; safecall; + end; + + nsIPrefBranch = interface(nsISupports) + ['{56c35506-f14b-11d3-99d3-ddbfac2ccf65}'] + function GetRoot(): PAnsiChar; safecall; + property Root: PAnsiChar read GetRoot; + function GetPrefType(const aPrefName: PAnsiChar): PRInt32; safecall; + function GetBoolPref(const aPrefName: PAnsiChar): PRBool; safecall; + procedure SetBoolPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + function GetCharPref(const aPrefName: PAnsiChar): PAnsiChar; safecall; + procedure SetCharPref(const aPrefName: PAnsiChar; const aValue: PAnsiChar); safecall; + function GetIntPref(const aPrefName: PAnsiChar): PRInt32; safecall; + procedure SetIntPref(const aPrefName: PAnsiChar; aValue: PRInt32); safecall; + procedure GetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; out aValue); safecall; + procedure SetComplexValue(const aPrefName: PAnsiChar; constref aType: TGUID; aValue: nsISupports); safecall; + procedure ClearUserPref(const aPrefName: PAnsiChar); safecall; + procedure LockPref(const aPrefName: PAnsiChar); safecall; + function PrefHasUserValue(const aPrefName: PAnsiChar): PRBool; safecall; + function PrefIsLocked(const aPrefName: PAnsiChar): PRBool; safecall; + procedure UnlockPref(const aPrefName: PAnsiChar); safecall; + procedure DeleteBranch(const aStartingAt: PAnsiChar); safecall; + procedure GetChildList(const aStartingAt: PAnsiChar; out aCount: PRUint32; out aChildArray_array); safecall; + procedure ResetBranch(const aStartingAt: PAnsiChar); safecall; + end; + + nsIPrefBranch2 = interface(nsIPrefBranch) + ['{74567534-eb94-4b1c-8f45-389643bfc555}'] + procedure AddObserver(const aDomain: PAnsiChar; aObserver: nsIObserver; aHoldWeak: PRBool); safecall; + procedure RemoveObserver(const aDomain: PAnsiChar; aObserver: nsIObserver); safecall; + end; + + nsIPrefLocalizedString = interface(nsISupports) + ['{ae419e24-1dd1-11b2-b39a-d3e5e7073802}'] + function GetData(): PWideChar; safecall; + procedure SetData(const aData: PWideChar); safecall; + property Data: PWideChar read GetData write SetData; + function ToString(): PWideChar; safecall; + procedure SetDataWithLength(length: PRUint32; const data: PWideChar); safecall; + end; + + nsIPrefService = interface(nsISupports) + ['{decb9cc7-c08f-4ea5-be91-a8fc637ce2d2}'] + procedure ReadUserPrefs(aFile: nsIFile); safecall; + procedure ResetPrefs(); safecall; + procedure ResetUserPrefs(); safecall; + procedure SavePrefFile(aFile: nsIFile); safecall; + function GetBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch; safecall; + function GetDefaultBranch(const aPrefRoot: PAnsiChar): nsIPrefBranch; safecall; + end; + + nsIPrintSession = interface(nsISupports) + ['{2f977d52-5485-11d4-87e2-0010a4e75ef2}'] + end; + + nsIPrintSettings = interface(nsISupports) + ['{5af07661-6477-4235-8814-4a45215855b8}'] + procedure SetPrintOptions(aType: PRInt32; aTurnOnOff: PRBool); safecall; + function GetPrintOptions(aType: PRInt32): PRBool; 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(): PRInt32; safecall; + procedure SetStartPageRange(aStartPageRange: PRInt32); safecall; + property StartPageRange: PRInt32 read GetStartPageRange write SetStartPageRange; + function GetEndPageRange(): PRInt32; safecall; + procedure SetEndPageRange(aEndPageRange: PRInt32); safecall; + property EndPageRange: PRInt32 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(): PRBool; safecall; + procedure SetPrintBGColors(aPrintBGColors: PRBool); safecall; + property PrintBGColors: PRBool read GetPrintBGColors write SetPrintBGColors; + function GetPrintBGImages(): PRBool; safecall; + procedure SetPrintBGImages(aPrintBGImages: PRBool); safecall; + property PrintBGImages: PRBool read GetPrintBGImages write SetPrintBGImages; + function GetPrintRange(): PRInt16; safecall; + procedure SetPrintRange(aPrintRange: PRInt16); safecall; + property PrintRange: PRInt16 read GetPrintRange write SetPrintRange; + function GetTitle(): PWideChar; safecall; + procedure SetTitle(const aTitle: PWideChar); safecall; + property Title: PWideChar read GetTitle write SetTitle; + function GetDocURL(): PWideChar; safecall; + procedure SetDocURL(const aDocURL: PWideChar); safecall; + property DocURL: PWideChar read GetDocURL write SetDocURL; + function GetHeaderStrLeft(): PWideChar; safecall; + procedure SetHeaderStrLeft(const aHeaderStrLeft: PWideChar); safecall; + property HeaderStrLeft: PWideChar read GetHeaderStrLeft write SetHeaderStrLeft; + function GetHeaderStrCenter(): PWideChar; safecall; + procedure SetHeaderStrCenter(const aHeaderStrCenter: PWideChar); safecall; + property HeaderStrCenter: PWideChar read GetHeaderStrCenter write SetHeaderStrCenter; + function GetHeaderStrRight(): PWideChar; safecall; + procedure SetHeaderStrRight(const aHeaderStrRight: PWideChar); safecall; + property HeaderStrRight: PWideChar read GetHeaderStrRight write SetHeaderStrRight; + function GetFooterStrLeft(): PWideChar; safecall; + procedure SetFooterStrLeft(const aFooterStrLeft: PWideChar); safecall; + property FooterStrLeft: PWideChar read GetFooterStrLeft write SetFooterStrLeft; + function GetFooterStrCenter(): PWideChar; safecall; + procedure SetFooterStrCenter(const aFooterStrCenter: PWideChar); safecall; + property FooterStrCenter: PWideChar read GetFooterStrCenter write SetFooterStrCenter; + function GetFooterStrRight(): PWideChar; safecall; + procedure SetFooterStrRight(const aFooterStrRight: PWideChar); safecall; + property FooterStrRight: PWideChar read GetFooterStrRight write SetFooterStrRight; + function GetHowToEnableFrameUI(): PRInt16; safecall; + procedure SetHowToEnableFrameUI(aHowToEnableFrameUI: PRInt16); safecall; + property HowToEnableFrameUI: PRInt16 read GetHowToEnableFrameUI write SetHowToEnableFrameUI; + function GetIsCancelled(): PRBool; safecall; + procedure SetIsCancelled(aIsCancelled: PRBool); safecall; + property IsCancelled: PRBool read GetIsCancelled write SetIsCancelled; + function GetPrintFrameTypeUsage(): PRInt16; safecall; + procedure SetPrintFrameTypeUsage(aPrintFrameTypeUsage: PRInt16); safecall; + property PrintFrameTypeUsage: PRInt16 read GetPrintFrameTypeUsage write SetPrintFrameTypeUsage; + function GetPrintFrameType(): PRInt16; safecall; + procedure SetPrintFrameType(aPrintFrameType: PRInt16); safecall; + property PrintFrameType: PRInt16 read GetPrintFrameType write SetPrintFrameType; + function GetPrintSilent(): PRBool; safecall; + procedure SetPrintSilent(aPrintSilent: PRBool); safecall; + property PrintSilent: PRBool read GetPrintSilent write SetPrintSilent; + function GetShrinkToFit(): PRBool; safecall; + procedure SetShrinkToFit(aShrinkToFit: PRBool); safecall; + property ShrinkToFit: PRBool read GetShrinkToFit write SetShrinkToFit; + function GetShowPrintProgress(): PRBool; safecall; + procedure SetShowPrintProgress(aShowPrintProgress: PRBool); safecall; + property ShowPrintProgress: PRBool read GetShowPrintProgress write SetShowPrintProgress; + function GetPaperName(): PWideChar; safecall; + procedure SetPaperName(const aPaperName: PWideChar); safecall; + property PaperName: PWideChar read GetPaperName write SetPaperName; + function GetPaperSizeType(): PRInt16; safecall; + procedure SetPaperSizeType(aPaperSizeType: PRInt16); safecall; + property PaperSizeType: PRInt16 read GetPaperSizeType write SetPaperSizeType; + function GetPaperData(): PRInt16; safecall; + procedure SetPaperData(aPaperData: PRInt16); safecall; + property PaperData: PRInt16 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(): PRInt16; safecall; + procedure SetPaperSizeUnit(aPaperSizeUnit: PRInt16); safecall; + property PaperSizeUnit: PRInt16 read GetPaperSizeUnit write SetPaperSizeUnit; + function GetPlexName(): PWideChar; safecall; + procedure SetPlexName(const aPlexName: PWideChar); safecall; + property PlexName: PWideChar read GetPlexName write SetPlexName; + function GetColorspace(): PWideChar; safecall; + procedure SetColorspace(const aColorspace: PWideChar); safecall; + property Colorspace: PWideChar read GetColorspace write SetColorspace; + function GetResolutionName(): PWideChar; safecall; + procedure SetResolutionName(const aResolutionName: PWideChar); safecall; + property ResolutionName: PWideChar read GetResolutionName write SetResolutionName; + function GetDownloadFonts(): PRBool; safecall; + procedure SetDownloadFonts(aDownloadFonts: PRBool); safecall; + property DownloadFonts: PRBool read GetDownloadFonts write SetDownloadFonts; + function GetPrintReversed(): PRBool; safecall; + procedure SetPrintReversed(aPrintReversed: PRBool); safecall; + property PrintReversed: PRBool read GetPrintReversed write SetPrintReversed; + function GetPrintInColor(): PRBool; safecall; + procedure SetPrintInColor(aPrintInColor: PRBool); safecall; + property PrintInColor: PRBool read GetPrintInColor write SetPrintInColor; + function GetOrientation(): PRInt32; safecall; + procedure SetOrientation(aOrientation: PRInt32); safecall; + property Orientation: PRInt32 read GetOrientation write SetOrientation; + function GetPrintCommand(): PWideChar; safecall; + procedure SetPrintCommand(const aPrintCommand: PWideChar); safecall; + property PrintCommand: PWideChar read GetPrintCommand write SetPrintCommand; + function GetNumCopies(): PRInt32; safecall; + procedure SetNumCopies(aNumCopies: PRInt32); safecall; + property NumCopies: PRInt32 read GetNumCopies write SetNumCopies; + function GetPrinterName(): PWideChar; safecall; + procedure SetPrinterName(const aPrinterName: PWideChar); safecall; + property PrinterName: PWideChar read GetPrinterName write SetPrinterName; + function GetPrintToFile(): PRBool; safecall; + procedure SetPrintToFile(aPrintToFile: PRBool); safecall; + property PrintToFile: PRBool read GetPrintToFile write SetPrintToFile; + function GetToFileName(): PWideChar; safecall; + procedure SetToFileName(const aToFileName: PWideChar); safecall; + property ToFileName: PWideChar read GetToFileName write SetToFileName; + function GetOutputFormat(): PRInt16; safecall; + procedure SetOutputFormat(aOutputFormat: PRInt16); safecall; + property OutputFormat: PRInt16 read GetOutputFormat write SetOutputFormat; + function GetPrintPageDelay(): PRInt32; safecall; + procedure SetPrintPageDelay(aPrintPageDelay: PRInt32); safecall; + property PrintPageDelay: PRInt32 read GetPrintPageDelay write SetPrintPageDelay; + function GetIsInitializedFromPrinter(): PRBool; safecall; + procedure SetIsInitializedFromPrinter(aIsInitializedFromPrinter: PRBool); safecall; + property IsInitializedFromPrinter: PRBool read GetIsInitializedFromPrinter write SetIsInitializedFromPrinter; + function GetIsInitializedFromPrefs(): PRBool; safecall; + procedure SetIsInitializedFromPrefs(aIsInitializedFromPrefs: PRBool); safecall; + property IsInitializedFromPrefs: PRBool read GetIsInitializedFromPrefs write SetIsInitializedFromPrefs; + procedure SetMarginInTwips(var aMargin: nsMargin); safecall; + procedure SetEdgeInTwips(var aEdge: nsMargin); safecall; + procedure GetMarginInTwips(var aMargin: nsMargin); safecall; + procedure GetEdgeInTwips(var aEdge: nsMargin); safecall; + procedure SetupSilentPrinting(); safecall; + procedure SetUnwriteableMarginInTwips(var aEdge: nsMargin); safecall; + procedure GetUnwriteableMarginInTwips(var aEdge: nsMargin); safecall; + end; + + nsIProfile = interface(nsISupports) + ['{02b0625a-e7f3-11d2-9f5a-006008a6efe9}'] + function GetProfileCount(): PRInt32; safecall; + property ProfileCount: PRInt32 read GetProfileCount; + procedure GetProfileList(out length: PRUint32; out profileNames_array); safecall; + function ProfileExists(const profileName: PWideChar): PRBool; safecall; + function GetCurrentProfile(): PWideChar; safecall; + procedure SetCurrentProfile(const aCurrentProfile: PWideChar); safecall; + property CurrentProfile: PWideChar read GetCurrentProfile write SetCurrentProfile; + procedure ShutDownCurrentProfile(shutDownType: PRUint32); safecall; + procedure CreateNewProfile(const profileName: PWideChar; const nativeProfileDir: PWideChar; const langcode: PWideChar; useExistingDir: PRBool); safecall; + procedure RenameProfile(const oldName: PWideChar; const newName: PWideChar); safecall; + procedure DeleteProfile(const name: PWideChar; canDeleteFiles: PRBool); safecall; + procedure CloneProfile(const profileName: PWideChar); safecall; + end; + + nsIProfileChangeStatus = interface(nsISupports) + ['{2f977d43-5485-11d4-87e2-0010a4e75ef2}'] + procedure VetoChange(); safecall; + procedure ChangeFailed(); safecall; + end; + + nsIProgrammingLanguage = interface(nsISupports) + ['{ea604e90-40ba-11d5-90bb-0010a4e73d9a}'] + end; + + nsIPrompt = interface(nsISupports) + ['{a63f70c0-148b-11d3-9333-00104ba0fd40}'] + procedure Alert(const dialogTitle: PWideChar; const text: PWideChar); safecall; + procedure AlertCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool); safecall; + function Confirm(const dialogTitle: PWideChar; const text: PWideChar): PRBool; safecall; + function ConfirmCheck(const dialogTitle: PWideChar; const text: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function ConfirmEx(const dialogTitle: PWideChar; const text: PWideChar; buttonFlags: PRUint32; const button0Title: PWideChar; const button1Title: PWideChar; const button2Title: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRInt32; safecall; + function Prompt(const dialogTitle: PWideChar; const text: PWideChar; out value: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptPassword(const dialogTitle: PWideChar; const text: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(const dialogTitle: PWideChar; const text: PWideChar; out username: PWideChar; out password: PWideChar; const checkMsg: PWideChar; out checkValue: PRBool): PRBool; safecall; + function Select(const dialogTitle: PWideChar; const text: PWideChar; count: PRUint32; const selectList_array; out outSelection: PRInt32): PRBool; safecall; + end; + + nsIPromptService = interface(nsISupports) + ['{1630c61a-325e-49ca-8759-a31b16c47aa5}'] + procedure Alert(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar); safecall; + procedure AlertCheck(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall; + function Confirm(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall; + function ConfirmCheck(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function ConfirmEx(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; aButtonFlags: PRUint32; const aButton0Title: PWideChar; const aButton1Title: PWideChar; const aButton2Title: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRInt32; safecall; + function Prompt(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; var aValue: PWideChar; const aCheckMsg: PWideChar; var aCheckState: PRBool): PRBool; safecall; + function PromptUsernameAndPassword(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; out aUsername: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function PromptPassword(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; out aPassword: PWideChar; const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall; + function Select(aParent: nsIDOMWindow; const aDialogTitle: PWideChar; const aText: PWideChar; aCount: PRUint32; const aSelectList_array; out aOutSelection: PRInt32): PRBool; safecall; + end; + + nsIPromptService2 = interface(nsIPromptService) + ['{CF86D196-DBEE-4482-9DFA-3477AA128319}'] + function PromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; level: PRUint32; authInfo: nsIAuthInformation; const checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall; + function AsyncPromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; aCallback: nsIAuthPromptCallback; aContext: nsISupports; level: PRUint32; authInfo: nsIAuthInformation; const checkboxLabel: PWideChar; var checkValue: LongBool): nsICancelable; safecall; + end; + + nsIProperties = interface(nsISupports) + ['{78650582-4e93-4b60-8e85-26ebd3eb14ca}'] + procedure Get(const prop: PAnsiChar; constref iid: TGUID; out _result); safecall; + procedure _Set(const prop: PAnsiChar; value: nsISupports); safecall; + function Has(const prop: PAnsiChar): PRBool; safecall; + procedure Undefine(const prop: PAnsiChar); safecall; + procedure GetKeys(out count: PRUint32; out keys_array); safecall; + end; + + nsIProtocolHandler = interface(nsISupports) + ['{15fd6940-8ea7-11d3-93ad-00104ba0fd40}'] + procedure GetScheme(aScheme: nsACString); safecall; + function GetDefaultPort(): PRInt32; safecall; + property DefaultPort: PRInt32 read GetDefaultPort; + function GetProtocolFlags(): PRUint32; safecall; + property ProtocolFlags: PRUint32 read GetProtocolFlags; + function NewURI(const aSpec: nsAUTF8String; const aOriginCharset: PAnsiChar; aBaseURI: nsIURI): nsIURI; safecall; + function NewChannel(aURI: nsIURI): nsIChannel; safecall; + function AllowPort(port: PRInt32; const scheme: PAnsiChar): PRBool; safecall; + end; + + nsIRequestObserver = interface(nsISupports) + ['{fd91e2e0-1481-11d3-9333-00104ba0fd40}'] + procedure OnStartRequest(aRequest: nsIRequest; aContext: nsISupports); safecall; + procedure OnStopRequest(aRequest: nsIRequest; aContext: nsISupports; aStatusCode: nsresult); safecall; + end; + + nsIScriptableInputStream = interface(nsISupports) + ['{a2a32f90-9b90-11d3-a189-0050041caf44}'] + procedure Close(); safecall; + procedure Init(aInputStream: nsIInputStream); safecall; + function Available(): PRUint32; safecall; + function Read(aCount: PRUint32): PAnsiChar; safecall; + end; + + nsISecurityWarningDialogs = interface(nsISupports) + ['{1c399d06-1dd2-11b2-bc58-c87cbcacdb78}'] + function ConfirmEnteringSecure(ctx: nsIInterfaceRequestor): PRBool; safecall; + function ConfirmEnteringWeak(ctx: nsIInterfaceRequestor): PRBool; safecall; + function ConfirmLeavingSecure(ctx: nsIInterfaceRequestor): PRBool; safecall; + function ConfirmMixedMode(ctx: nsIInterfaceRequestor): PRBool; safecall; + function ConfirmPostToInsecure(ctx: nsIInterfaceRequestor): PRBool; safecall; + function ConfirmPostToInsecureFromSecure(ctx: nsIInterfaceRequestor): PRBool; safecall; + end; + + nsISelection = interface(nsISupports) + ['{b2c7ed59-8634-4352-9e37-5484c8b6e4e1}'] + function GetAnchorNode(): nsIDOMNode; safecall; + property AnchorNode: nsIDOMNode read GetAnchorNode; + function GetAnchorOffset(): PRInt32; safecall; + property AnchorOffset: PRInt32 read GetAnchorOffset; + function GetFocusNode(): nsIDOMNode; safecall; + property FocusNode: nsIDOMNode read GetFocusNode; + function GetFocusOffset(): PRInt32; safecall; + property FocusOffset: PRInt32 read GetFocusOffset; + function GetIsCollapsed(): PRBool; safecall; + property IsCollapsed: PRBool read GetIsCollapsed; + function GetRangeCount(): PRInt32; safecall; + property RangeCount: PRInt32 read GetRangeCount; + function GetRangeAt(index: PRInt32): nsIDOMRange; safecall; + procedure Collapse(parentNode: nsIDOMNode; offset: PRInt32); safecall; + procedure Extend(parentNode: nsIDOMNode; offset: PRInt32); safecall; + procedure CollapseToStart(); safecall; + procedure CollapseToEnd(); safecall; + function ContainsNode(node: nsIDOMNode; partlyContained: PRBool): PRBool; safecall; + procedure SelectAllChildren(parentNode: nsIDOMNode); safecall; + procedure AddRange(range: nsIDOMRange); safecall; + procedure RemoveRange(range: nsIDOMRange); safecall; + procedure RemoveAllRanges(); safecall; + procedure DeleteFromDocument(); safecall; + procedure SelectionLanguageChange(langRTL: PRBool); safecall; + function ToString(): PWideChar; safecall; + end; + + nsIServiceManager = interface(nsISupports) + ['{8bb35ed9-e332-462d-9155-4a002ab5c958}'] + procedure GetService(constref aClass: TGUID; constref aIID: TGUID; out _result); safecall; + procedure GetServiceByContractID(const aContractID: PAnsiChar; constref aIID: TGUID; out _result); safecall; + function IsServiceInstantiated(constref aClass: TGUID; constref aIID: TGUID): PRBool; safecall; + function IsServiceInstantiatedByContractID(const aContractID: PAnsiChar; constref aIID: TGUID): PRBool; safecall; + end; + + nsISHistory = interface(nsISupports) + ['{9883609f-cdd8-4d83-9b55-868ff08ad433}'] + function GetCount(): PRInt32; safecall; + property Count: PRInt32 read GetCount; + function GetIndex(): PRInt32; safecall; + property Index: PRInt32 read GetIndex; + function GetRequestedIndex(): PRInt32; safecall; + property RequestedIndex: PRInt32 read GetRequestedIndex; + function GetMaxLength(): PRInt32; safecall; + procedure SetMaxLength(aMaxLength: PRInt32); safecall; + property MaxLength: PRInt32 read GetMaxLength write SetMaxLength; + function GetEntryAtIndex(index: PRInt32; modifyIndex: PRBool): nsIHistoryEntry; safecall; + procedure PurgeHistory(numEntries: PRInt32); safecall; + procedure AddSHistoryListener(aListener: nsISHistoryListener); safecall; + procedure RemoveSHistoryListener(aListener: nsISHistoryListener); safecall; + function GetSHistoryEnumerator(): nsISimpleEnumerator; safecall; + property SHistoryEnumerator: nsISimpleEnumerator read GetSHistoryEnumerator; + end; + + nsISHistoryListener = interface(nsISupports) + ['{3b07f591-e8e1-11d4-9882-00c04fa02f40}'] + procedure OnHistoryNewEntry(aNewURI: nsIURI); safecall; + function OnHistoryGoBack(aBackURI: nsIURI): PRBool; safecall; + function OnHistoryGoForward(aForwardURI: nsIURI): PRBool; safecall; + function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: PRUint32): PRBool; safecall; + function OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI): PRBool; safecall; + function OnHistoryPurge(aNumEntries: PRInt32): PRBool; safecall; + end; + + nsIStreamListener = interface(nsIRequestObserver) + ['{1a637020-1482-11d3-9333-00104ba0fd40}'] + procedure OnDataAvailable(aRequest: nsIRequest; aContext: nsISupports; aInputStream: nsIInputStream; aOffset: PRUint32; aCount: PRUint32); safecall; + end; + + nsISupportsPrimitive = interface(nsISupports) + ['{d0d4b136-1dd1-11b2-9371-f0727ef827c0}'] + function GetType(): PRUint16; safecall; + property _Type: PRUint16 read GetType; + end; + + nsISupportsID = interface(nsISupportsPrimitive) + ['{d18290a0-4a1c-11d3-9890-006008962422}'] + function GetData(): PGUID; safecall; + procedure SetData(const aData: PGUID); safecall; + property Data: PGUID read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsCString = interface(nsISupportsPrimitive) + ['{d65ff270-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsACString); safecall; + procedure SetData(const aData: nsACString); safecall; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsString = interface(nsISupportsPrimitive) + ['{d79dc970-4a1c-11d3-9890-006008962422}'] + procedure GetData(aData: nsAString); safecall; + procedure SetData(const aData: nsAString); safecall; + function ToString(): PWideChar; safecall; + end; + + nsISupportsPRBool = interface(nsISupportsPrimitive) + ['{ddc3b490-4a1c-11d3-9890-006008962422}'] + function GetData(): PRBool; safecall; + procedure SetData(aData: PRBool); safecall; + property Data: PRBool read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint8 = interface(nsISupportsPrimitive) + ['{dec2e4e0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint8; safecall; + procedure SetData(aData: PRUint8); safecall; + property Data: PRUint8 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint16 = interface(nsISupportsPrimitive) + ['{dfacb090-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint16; safecall; + procedure SetData(aData: PRUint16); safecall; + property Data: PRUint16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint32 = interface(nsISupportsPrimitive) + ['{e01dc470-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint32; safecall; + procedure SetData(aData: PRUint32); safecall; + property Data: PRUint32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRUint64 = interface(nsISupportsPrimitive) + ['{e13567c0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRUint64; safecall; + procedure SetData(aData: PRUint64); safecall; + property Data: PRUint64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRTime = interface(nsISupportsPrimitive) + ['{e2563630-4a1c-11d3-9890-006008962422}'] + function GetData(): PRTime; safecall; + procedure SetData(aData: PRTime); safecall; + property Data: PRTime read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsChar = interface(nsISupportsPrimitive) + ['{e2b05e40-4a1c-11d3-9890-006008962422}'] + function GetData(): AnsiChar; safecall; + procedure SetData(aData: AnsiChar); safecall; + property Data: AnsiChar read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt16 = interface(nsISupportsPrimitive) + ['{e30d94b0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt16; safecall; + procedure SetData(aData: PRInt16); safecall; + property Data: PRInt16 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt32 = interface(nsISupportsPrimitive) + ['{e36c5250-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt32; safecall; + procedure SetData(aData: PRInt32); safecall; + property Data: PRInt32 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsPRInt64 = interface(nsISupportsPrimitive) + ['{e3cb0ff0-4a1c-11d3-9890-006008962422}'] + function GetData(): PRInt64; safecall; + procedure SetData(aData: PRInt64); safecall; + property Data: PRInt64 read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsFloat = interface(nsISupportsPrimitive) + ['{abeaa390-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Single; safecall; + procedure SetData(aData: Single); safecall; + property Data: Single read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsDouble = interface(nsISupportsPrimitive) + ['{b32523a0-4ac0-11d3-baea-00805f8a5dd7}'] + function GetData(): Double; safecall; + procedure SetData(aData: Double); safecall; + property Data: Double read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsVoid = interface(nsISupportsPrimitive) + ['{464484f0-568d-11d3-baf8-00805f8a5dd7}'] + function GetData(): Pointer; safecall; + procedure SetData(aData: Pointer); safecall; + property Data: Pointer read GetData write SetData; + function ToString(): PAnsiChar; safecall; + end; + + nsISupportsInterfacePointer = interface(nsISupportsPrimitive) + ['{995ea724-1dd1-11b2-9211-c21bdd3e7ed0}'] + function GetData(): nsISupports; safecall; + procedure SetData(aData: nsISupports); safecall; + property Data: nsISupports read GetData write SetData; + function GetDataIID(): PGUID; safecall; + procedure SetDataIID(const aDataIID: PGUID); safecall; + property DataIID: PGUID read GetDataIID write SetDataIID; + function ToString(): PAnsiChar; safecall; + end; + + nsITooltipListener = interface(nsISupports) + ['{44b78386-1dd2-11b2-9ad2-e4eee2ca1916}'] + procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall; + procedure OnHideTooltip(); safecall; + end; + + nsITooltipTextProvider = interface(nsISupports) + ['{b128a1e6-44f3-4331-8fbe-5af360ff21ee}'] + function GetNodeText(aNode: nsIDOMNode; out aText: PWideChar): PRBool; safecall; + end; + + nsITraceRefcnt = interface(nsISupports) + ['{273dc92f-0fe6-4545-96a9-21be77828039}'] + procedure LogAddRef(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogRelease(aPtr: Pointer; aNewRefcnt: nsrefcnt; const aTypeName: PAnsiChar); safecall; + procedure LogCtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogDtor(aPtr: Pointer; const aTypeName: PAnsiChar; aInstanceSize: PRUint32); safecall; + procedure LogAddCOMPtr(aPtr: Pointer; aObject: nsISupports); safecall; + procedure LogReleaseCOMPtr(aPtr: Pointer; aObject: nsISupports); safecall; + end; + + nsIUnicharStreamListener = interface(nsIRequestObserver) + ['{4a7e9b62-fef8-400d-9865-d6820f630b4c}'] + procedure OnUnicharDataAvailable(aRequest: nsIRequest; aContext: nsISupports; const aData: nsAString); safecall; + end; + + nsIUploadChannel = interface(nsISupports) + ['{ddf633d8-e9a4-439d-ad88-de636fd9bb75}'] + procedure SetUploadStream(aStream: nsIInputStream; const aContentType: nsACString; aContentLength: PRInt32); safecall; + function GetUploadStream(): nsIInputStream; safecall; + property UploadStream: nsIInputStream read GetUploadStream; + end; + + nsIURIContentListener = interface(nsISupports) + ['{94928ab3-8b63-11d3-989d-001083010e9b}'] + function OnStartURIOpen(aURI: nsIURI): PRBool; safecall; + function DoContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; aRequest: nsIRequest; out aContentHandler: nsIStreamListener): PRBool; safecall; + function IsPreferred(const aContentType: PAnsiChar; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function CanHandleContent(const aContentType: PAnsiChar; aIsContentPreferred: PRBool; out aDesiredContentType: PAnsiChar): PRBool; safecall; + function GetLoadCookie(): nsISupports; safecall; + procedure SetLoadCookie(aLoadCookie: nsISupports); safecall; + property LoadCookie: nsISupports read GetLoadCookie write SetLoadCookie; + function GetParentContentListener(): nsIURIContentListener; safecall; + procedure SetParentContentListener(aParentContentListener: nsIURIContentListener); safecall; + property ParentContentListener: nsIURIContentListener read GetParentContentListener write SetParentContentListener; + end; + + nsIWeakReference = interface(nsISupports) + ['{9188bc85-f92e-11d2-81ef-0060083a0bcf}'] + procedure QueryReferent(constref uuid: TGUID; out _result); safecall; + end; + + nsISupportsWeakReference = interface(nsISupports) + ['{9188bc86-f92e-11d2-81ef-0060083a0bcf}'] + function GetWeakReference(): nsIWeakReference; safecall; + end; + + {$IFDEF XULRUNNER2} + nsIWebBrowser = interface(nsISupports) + ['{33e9d001-caab-4ba9-8961-54902f197202}'] + procedure AddWebBrowserListener(aListener: nsIWeakReference; constref aIID: TGUID); safecall; + procedure RemoveWebBrowserListener(aListener: nsIWeakReference; constref aIID: TGUID); safecall; + function GetContainerWindow(): nsIWebBrowserChrome; safecall; + procedure SetContainerWindow(aContainerWindow: nsIWebBrowserChrome); safecall; + property ContainerWindow: nsIWebBrowserChrome read GetContainerWindow write SetContainerWindow; + function GetParentURIContentListener(): nsIURIContentListener; safecall; + procedure SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener); safecall; + property ParentURIContentListener: nsIURIContentListener read GetParentURIContentListener write SetParentURIContentListener; + function GetContentDOMWindow(): nsIDOMWindow; safecall; + property ContentDOMWindow: nsIDOMWindow read GetContentDOMWindow; + function GetIsActive: PRBool; safecall; + procedure SetIsActive(aIsActive: PRBool); safecall; + property IsActive: PRBool read GetIsActive write SetIsActive; + end; + {$ELSE XULRUNNER2} + nsIWebBrowser = interface(nsISupports) + ['{69e5df00-7b8b-11d3-af61-00a024ffc08c}'] + procedure AddWebBrowserListener(aListener: nsIWeakReference; constref aIID: TGUID); safecall; + procedure RemoveWebBrowserListener(aListener: nsIWeakReference; constref aIID: TGUID); safecall; + function GetContainerWindow(): nsIWebBrowserChrome; safecall; + procedure SetContainerWindow(aContainerWindow: nsIWebBrowserChrome); safecall; + property ContainerWindow: nsIWebBrowserChrome read GetContainerWindow write SetContainerWindow; + function GetParentURIContentListener(): nsIURIContentListener; safecall; + procedure SetParentURIContentListener(aParentURIContentListener: nsIURIContentListener); safecall; + property ParentURIContentListener: nsIURIContentListener read GetParentURIContentListener write SetParentURIContentListener; + function GetContentDOMWindow(): nsIDOMWindow; safecall; + property ContentDOMWindow: nsIDOMWindow read GetContentDOMWindow; + end; + {$ENDIF} + + nsIWebBrowserChrome = interface(nsISupports) + ['{ba434c60-9d52-11d3-afb0-00a024ffc08c}'] + procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall; + function GetWebBrowser(): nsIWebBrowser; safecall; + procedure SetWebBrowser(aWebBrowser: nsIWebBrowser); safecall; + property WebBrowser: nsIWebBrowser read GetWebBrowser write SetWebBrowser; + function GetChromeFlags(): PRUint32; safecall; + procedure SetChromeFlags(aChromeFlags: PRUint32); safecall; + property ChromeFlags: PRUint32 read GetChromeFlags write SetChromeFlags; + procedure DestroyBrowserWindow(); safecall; + procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall; + procedure ShowAsModal(); safecall; + function IsWindowModal(): PRBool; safecall; + procedure ExitModalEventLoop(aStatus: nsresult); safecall; + end; + + nsIWebBrowserChromeFocus = interface(nsISupports) + ['{d2206418-1dd1-11b2-8e55-acddcd2bcfb8}'] + procedure FocusNextElement(); safecall; + procedure FocusPrevElement(); safecall; + end; + + nsIWebBrowserFind = interface(nsISupports) + ['{2f977d44-5485-11d4-87e2-0010a4e75ef2}'] + function FindNext(): PRBool; safecall; + function GetSearchString(): PWideChar; safecall; + procedure SetSearchString(const aSearchString: PWideChar); safecall; + property SearchString: PWideChar read GetSearchString write SetSearchString; + function GetFindBackwards(): PRBool; safecall; + procedure SetFindBackwards(aFindBackwards: PRBool); safecall; + property FindBackwards: PRBool read GetFindBackwards write SetFindBackwards; + function GetWrapFind(): PRBool; safecall; + procedure SetWrapFind(aWrapFind: PRBool); safecall; + property WrapFind: PRBool read GetWrapFind write SetWrapFind; + function GetEntireWord(): PRBool; safecall; + procedure SetEntireWord(aEntireWord: PRBool); safecall; + property EntireWord: PRBool read GetEntireWord write SetEntireWord; + function GetMatchCase(): PRBool; safecall; + procedure SetMatchCase(aMatchCase: PRBool); safecall; + property MatchCase: PRBool read GetMatchCase write SetMatchCase; + function GetSearchFrames(): PRBool; safecall; + procedure SetSearchFrames(aSearchFrames: PRBool); safecall; + property SearchFrames: PRBool read GetSearchFrames write SetSearchFrames; + end; + + nsIWebBrowserFindInFrames = interface(nsISupports) + ['{e0f5d182-34bc-11d5-be5b-b760676c6ebc}'] + function GetCurrentSearchFrame(): nsIDOMWindow; safecall; + procedure SetCurrentSearchFrame(aCurrentSearchFrame: nsIDOMWindow); safecall; + property CurrentSearchFrame: nsIDOMWindow read GetCurrentSearchFrame write SetCurrentSearchFrame; + function GetRootSearchFrame(): nsIDOMWindow; safecall; + procedure SetRootSearchFrame(aRootSearchFrame: nsIDOMWindow); safecall; + property RootSearchFrame: nsIDOMWindow read GetRootSearchFrame write SetRootSearchFrame; + function GetSearchSubframes(): PRBool; safecall; + procedure SetSearchSubframes(aSearchSubframes: PRBool); safecall; + property SearchSubframes: PRBool read GetSearchSubframes write SetSearchSubframes; + function GetSearchParentFrames(): PRBool; safecall; + procedure SetSearchParentFrames(aSearchParentFrames: PRBool); safecall; + property SearchParentFrames: PRBool read GetSearchParentFrames write SetSearchParentFrames; + end; + + nsIWebBrowserFocus = interface(nsISupports) + ['{9c5d3c58-1dd1-11b2-a1c9-f3699284657a}'] + procedure Activate(); safecall; + procedure Deactivate(); safecall; + procedure SetFocusAtFirstElement(); safecall; + procedure SetFocusAtLastElement(); safecall; + function GetFocusedWindow(): nsIDOMWindow; safecall; + procedure SetFocusedWindow(aFocusedWindow: nsIDOMWindow); safecall; + property FocusedWindow: nsIDOMWindow read GetFocusedWindow write SetFocusedWindow; + function GetFocusedElement(): nsIDOMElement; safecall; + procedure SetFocusedElement(aFocusedElement: nsIDOMElement); safecall; + property FocusedElement: nsIDOMElement read GetFocusedElement write SetFocusedElement; + end; + + nsIWebBrowserPrint = interface(nsISupports) + ['{9a7ca4b0-fbba-11d4-a869-00105a183419}'] + function GetGlobalPrintSettings(): nsIPrintSettings; safecall; + property GlobalPrintSettings: nsIPrintSettings read GetGlobalPrintSettings; + function GetCurrentPrintSettings(): nsIPrintSettings; safecall; + property CurrentPrintSettings: nsIPrintSettings read GetCurrentPrintSettings; + function GetCurrentChildDOMWindow(): nsIDOMWindow; safecall; + property CurrentChildDOMWindow: nsIDOMWindow read GetCurrentChildDOMWindow; + function GetDoingPrint(): PRBool; safecall; + property DoingPrint: PRBool read GetDoingPrint; + function GetDoingPrintPreview(): PRBool; safecall; + property DoingPrintPreview: PRBool read GetDoingPrintPreview; + function GetIsFramesetDocument(): PRBool; safecall; + property IsFramesetDocument: PRBool read GetIsFramesetDocument; + function GetIsFramesetFrameSelected(): PRBool; safecall; + property IsFramesetFrameSelected: PRBool read GetIsFramesetFrameSelected; + function GetIsIFrameSelected(): PRBool; safecall; + property IsIFrameSelected: PRBool read GetIsIFrameSelected; + function GetIsRangeSelection(): PRBool; safecall; + property IsRangeSelection: PRBool read GetIsRangeSelection; + function GetPrintPreviewNumPages(): PRInt32; safecall; + property PrintPreviewNumPages: PRInt32 read GetPrintPreviewNumPages; + procedure Print(aThePrintSettings: nsIPrintSettings; aWPListener: nsIWebProgressListener); safecall; + procedure PrintPreview(aThePrintSettings: nsIPrintSettings; aChildDOMWin: nsIDOMWindow; aWPListener: nsIWebProgressListener); safecall; + procedure PrintPreviewNavigate(aNavType: PRInt16; aPageNum: PRInt32); safecall; + procedure Cancel(); safecall; + procedure EnumerateDocumentNames(out aCount: PRUint32; out aResult_array); safecall; + procedure ExitPrintPreview(); safecall; + end; + + nsIWebBrowserSetup = interface(nsISupports) + ['{f15398a0-8018-11d3-af70-00a024ffc08c}'] + procedure SetProperty(aId: PRUint32; aValue: PRUint32); safecall; + end; + + nsIWebBrowserStream = interface(nsISupports) + ['{86d02f0e-219b-4cfc-9c88-bd98d2cce0b8}'] + procedure OpenStream(aBaseURI: nsIURI; const aContentType: nsACString); safecall; + procedure AppendToStream(const aData_array; aLen: PRUint32); safecall; + procedure CloseStream(); safecall; + end; + + nsIWebProgress = interface(nsISupports) + ['{570f39d0-efd0-11d3-b093-00a024ffc08c}'] + procedure AddProgressListener(aListener: nsIWebProgressListener; aNotifyMask: PRUint32); safecall; + procedure RemoveProgressListener(aListener: nsIWebProgressListener); safecall; + function GetDOMWindow(): nsIDOMWindow; safecall; + property DOMWindow: nsIDOMWindow read GetDOMWindow; + function GetIsLoadingDocument(): PRBool; safecall; + property IsLoadingDocument: PRBool read GetIsLoadingDocument; + end; + + nsIWebProgressListener = interface(nsISupports) + ['{570f39d1-efd0-11d3-b093-00a024ffc08c}'] + procedure OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult); safecall; + procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32); safecall; + procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aLocation: nsIURI); safecall; + procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); safecall; + procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aState: PRUint32); safecall; + end; + + nsIWebProgressListener2 = interface(nsISupports) + ['{dde39de0-e4e0-11da-8ad9-0800200c9a66}'] + procedure OnProgressChange64(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt64; aMaxSelfProgress: PRInt64; aCurTotalProgress: PRInt64; aMaxTotalProgress: PRInt64); safecall; + function onRefreshAttempted(aWebProgress: nsIWebProgress; aRefreshURI: nsIURI; aMillis: PRInt32; aSameURI: PRBool): PRBool; safecall; + end; + + nsIWindowCreator = interface(nsISupports) + ['{30465632-a777-44cc-90f9-8145475ef999}'] + function CreateChromeWindow(parent: nsIWebBrowserChrome; chromeFlags: PRUint32): nsIWebBrowserChrome; safecall; + end; + + nsIWindowWatcher = interface(nsISupports) + ['{002286a8-494b-43b3-8ddd-49e3fc50622b}'] + function OpenWindow(aParent: nsIDOMWindow; const aUrl: PAnsiChar; const aName: PAnsiChar; const aFeatures: PAnsiChar; aArguments: nsISupports): nsIDOMWindow; safecall; + procedure RegisterNotification(aObserver: nsIObserver); safecall; + procedure UnregisterNotification(aObserver: nsIObserver); safecall; + function GetWindowEnumerator(): nsISimpleEnumerator; safecall; + function GetNewPrompter(aParent: nsIDOMWindow): nsIPrompt; safecall; + function GetNewAuthPrompter(aParent: nsIDOMWindow): nsIAuthPrompt; safecall; + procedure SetWindowCreator(creator: nsIWindowCreator); safecall; + function GetChromeForWindow(aWindow: nsIDOMWindow): nsIWebBrowserChrome; safecall; + function GetWindowByName(const aTargetName: PWideChar; aCurrentWindow: nsIDOMWindow): nsIDOMWindow; safecall; + function GetActiveWindow(): nsIDOMWindow; safecall; + procedure SetActiveWindow(aActiveWindow: nsIDOMWindow); safecall; + property ActiveWindow: nsIDOMWindow read GetActiveWindow write SetActiveWindow; + end; + + nsIX509Cert = interface(nsISupports) + ['{f0980f60-ee3d-11d4-998b-00b0d02354a0}'] + procedure GetNickname(aNickname: nsAString); safecall; + procedure GetEmailAddress(aEmailAddress: nsAString); safecall; + procedure GetEmailAddresses(out length: PRUint32; out addresses_array); safecall; + function ContainsEmailAddress(const aEmailAddress: nsAString): PRBool; safecall; + procedure GetSubjectName(aSubjectName: nsAString); safecall; + procedure GetCommonName(aCommonName: nsAString); safecall; + procedure GetOrganization(aOrganization: nsAString); safecall; + procedure GetOrganizationalUnit(aOrganizationalUnit: nsAString); safecall; + procedure GetSha1Fingerprint(aSha1Fingerprint: nsAString); safecall; + procedure GetMd5Fingerprint(aMd5Fingerprint: nsAString); safecall; + procedure GetTokenName(aTokenName: nsAString); safecall; + procedure GetIssuerName(aIssuerName: nsAString); safecall; + procedure GetSerialNumber(aSerialNumber: nsAString); safecall; + procedure GetIssuerCommonName(aIssuerCommonName: nsAString); safecall; + procedure GetIssuerOrganization(aIssuerOrganization: nsAString); safecall; + procedure GetIssuerOrganizationUnit(aIssuerOrganizationUnit: nsAString); safecall; + function GetIssuer(): nsIX509Cert; safecall; + property Issuer: nsIX509Cert read GetIssuer; + function GetValidity(): nsIX509CertValidity; safecall; + property Validity: nsIX509CertValidity read GetValidity; + function GetDbKey(): PAnsiChar; safecall; + property DbKey: PAnsiChar read GetDbKey; + function GetWindowTitle(): PAnsiChar; safecall; + property WindowTitle: PAnsiChar read GetWindowTitle; + function GetChain(): nsIArray; safecall; + procedure GetUsagesArray(ignoreOcsp: PRBool; out verified: PRUint32; out count: PRUint32; out usages_array); safecall; + procedure GetUsagesString(ignoreOcsp: PRBool; out verified: PRUint32; usages: nsAString); safecall; + function VerifyForUsage(usage: PRUint32): PRUint32; safecall; + function GetASN1Structure(): nsIASN1Object; safecall; + property ASN1Structure: nsIASN1Object read GetASN1Structure; + procedure GetRawDER(out length: PRUint32; out data_array); safecall; + function Equals(other: nsIX509Cert): PRBool; safecall; + end; + + nsIX509CertDB = interface(nsISupports) + ['{da48b3c0-1284-11d5-ac67-000064657374}'] + function FindCertByNickname(aToken: nsISupports; const aNickname: nsAString): nsIX509Cert; safecall; + function FindCertByDBKey(const aDBkey: PAnsiChar; aToken: nsISupports): nsIX509Cert; safecall; + procedure FindCertNicknames(aToken: nsISupports; aType: PRUint32; out count: PRUint32; out certNameList_array); safecall; + function FindEmailEncryptionCert(const aNickname: nsAString): nsIX509Cert; safecall; + function FindEmailSigningCert(const aNickname: nsAString): nsIX509Cert; safecall; + function FindCertByEmailAddress(aToken: nsISupports; const aEmailAddress: PAnsiChar): nsIX509Cert; safecall; + procedure ImportCertificates(const data_array; length: PRUint32; _type: PRUint32; ctx: nsIInterfaceRequestor); safecall; + procedure ImportEmailCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor); safecall; + procedure ImportServerCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor); safecall; + procedure ImportUserCertificate(const data_array; length: PRUint32; ctx: nsIInterfaceRequestor); safecall; + procedure DeleteCertificate(aCert: nsIX509Cert); safecall; + procedure SetCertTrust(cert: nsIX509Cert; _type: PRUint32; trust: PRUint32); safecall; + function IsCertTrusted(cert: nsIX509Cert; certType: PRUint32; trustType: PRUint32): PRBool; safecall; + procedure ImportCertsFromFile(aToken: nsISupports; aFile: nsILocalFile; aType: PRUint32); safecall; + procedure ImportPKCS12File(aToken: nsISupports; aFile: nsILocalFile); safecall; + procedure ExportPKCS12File(aToken: nsISupports; aFile: nsILocalFile; count: PRUint32; const aCerts_array); safecall; + function GetOCSPResponders(): nsIArray; safecall; + function GetIsOcspOn(): PRBool; safecall; + property IsOcspOn: PRBool read GetIsOcspOn; + function ConstructX509FromBase64(const base64: PAnsiChar): nsIX509Cert; safecall; + end; + + nsIX509CertValidity = interface(nsISupports) + ['{e701dfd8-1dd1-11b2-a172-ffa6cc6156ad}'] + function GetNotBefore(): PRTime; safecall; + property NotBefore: PRTime read GetNotBefore; + procedure GetNotBeforeLocalTime(aNotBeforeLocalTime: nsAString); safecall; + procedure GetNotBeforeLocalDay(aNotBeforeLocalDay: nsAString); safecall; + procedure GetNotBeforeGMT(aNotBeforeGMT: nsAString); safecall; + function GetNotAfter(): PRTime; safecall; + property NotAfter: PRTime read GetNotAfter; + procedure GetNotAfterLocalTime(aNotAfterLocalTime: nsAString); safecall; + procedure GetNotAfterLocalDay(aNotAfterLocalDay: nsAString); safecall; + procedure GetNotAfterGMT(aNotAfterGMT: nsAString); safecall; + end; + +implementation + +end. diff --git a/components/geckoport/version2/nsXPCOMGlue.pas b/components/geckoport/version2/nsXPCOMGlue.pas new file mode 100644 index 000000000..54e64d304 --- /dev/null +++ b/components/geckoport/version2/nsXPCOMGlue.pas @@ -0,0 +1,613 @@ +(* ***** BEGIN LICENSE BLOCK ***** + * Version: MPL 1.1/GPL 2.0/LGPL 2.1 + * + * The contents of this file are subject to the Mozilla Public License Version + * 1.1 (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.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS IS" basis, + * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License + * for the specific language governing rights and limitations under the + * License. + * + * The Original Code is mozilla.org. + * + * The Initial Developer of the Original Code is + * Netscape Communications Corpotation. + * Portions created by the Initial Developer are Copyright (C) 1998 + * the Initial Developer. All Rights Reserved. + * + * Contributor(s): + * Takanori Itou + * + * Alternatively, the contents of this file may be used under the terms of + * either the GNU General Public License Version 2 or later (the "GPL"), or + * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), + * in which case the provisions of the GPL or the LGPL are applicable instead + * of those above. If you wish to allow use of your version of this file only + * under the terms of either the GPL or the LGPL, and not to allow others to + * use your version of this file under the terms of the MPL, indicate your + * decision by deleting the provisions above and replace them with the notice + * and other provisions required by the GPL or the LGPL. If you do not delete + * the provisions above, a recipient may use your version of this file under + * the terms of any one of the MPL, the GPL or the LGPL. + * + * ***** END LICENSE BLOCK ***** *) +unit nsXPCOMGlue; + +{$MACRO on} + +{$IFNDEF FPC_HAS_CONSTREF} + {$DEFINE constref:=const} +{$ENDIF} + +interface + +uses + nsXPCOM, nsTypes, nsGeckoStrings, SysUtils; + +const +(* + * Original code: mozilla/xpcom/components/nsIServiceManager.idl + *) + NS_XPCOM_STARTUP_OBSERVER_ID = 'xpcom-startup'; + NS_XPCOM_SHUTDOWN_OBSERVER_ID = 'xpcom-shutdown'; + NS_XPCOM_AUTOREGISTRATION_OBSERVER_ID = 'xpcom-autoregistration'; + +(* + * Original code: mozilla/xpcom/glue/nsMemory.h + *) + NS_MEMORY_CONTRACTID = '@mozilla.org/xpcom/memory-service;1'; + NS_MEMORY_CLASSNAME = 'Global Memory Service'; + NS_MEMORY_CID: TGUID = '{30a04e40-38e7-11d4-8cf5-0060b0fc14a3}'; + +(* + * Original code: mozilla/xpcom/io/nsDirectoryServiceDefs.h + * Rev: 1.27 + *) +(** + * Defines the property names for directories available from + * nsIDirectoryService. These dirs are always available even if no + * nsIDirectoryServiceProviders have been registered with the service. + * Application level keys are defined in nsAppDirectoryServiceDefs.h. + * + * Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or + * subclass). Keys whose definition ends in "LIST" return an nsISimpleEnumerator + * which enumerates a list of file objects. + * + * Defines listed in this file are FROZEN. This list may grow. + *) + NS_OS_HOME_DIR = 'Home'; + NS_OS_TEMP_DIR = 'TmpD'; + NS_OS_CURRENT_WORKING_DIR = 'CurWorkD'; + NS_OS_DESKTOP_DIR = 'Desk'; + NS_OS_CURRENT_PROCESS_DIR = 'CurProcD'; + NS_XPCOM_CURRENT_PROCESS_DIR = 'XCurProcD'; + NS_XPCOM_COMPONENT_DIR = 'ComsD'; + NS_XPCOM_COMPONENT_DIR_LIST = 'ComsDL'; + NS_XPCOM_COMPONENT_REGISTRY_FILE = 'ComRegF'; + NS_XPCOM_XPTI_REGISTRY_FILE = 'XptiRegF'; + NS_XPCOM_LIBRARY_FILE = 'XpcomLib'; + NS_GRE_DIR = 'GreD'; + NS_GRE_COMPONENT_DIR = 'GreComsD'; + NS_WIN_WINDOWS_DIR = 'WinD'; + NS_WIN_HOME_DIR = NS_OS_HOME_DIR; + NS_WIN_DESKTOP_DIR = 'DeskV';// virtual folder at the root of the namespace + NS_WIN_PROGRAMS_DIR = 'Progs'; + NS_WIN_CONTROLS_DIR = 'Cntls'; + NS_WIN_PRINTERS_DIR = 'Prnts'; + NS_WIN_PERSONAL_DIR = 'Pers'; + NS_WIN_FAVORITES_DIR = 'Favs'; + NS_WIN_STARTUP_DIR = 'Strt'; + NS_WIN_RECENT_DIR = 'Rcnt'; + NS_WIN_SEND_TO_DIR = 'SndTo'; + NS_WIN_BITBUCKET_DIR = 'Buckt'; + NS_WIN_STARTMENU_DIR = 'Strt'; + NS_WIN_DESKTOP_DIRECTORY = 'DeskP';// file sys dir which physically stores objects on desktop + NS_WIN_DRIVES_DIR = 'Drivs'; + NS_WIN_NETWORK_DIR = 'NetW'; + NS_WIN_NETHOOD_DIR = 'netH'; + NS_WIN_FONTS_DIR = 'Fnts'; + NS_WIN_TEMPLATES_DIR = 'Tmpls'; + NS_WIN_COMMON_STARTMENU_DIR = 'CmStrt'; + NS_WIN_COMMON_PROGRAMS_DIR = 'CmPrgs'; + NS_WIN_COMMON_STARTUP_DIR = 'CmStrt'; + NS_WIN_COMMON_DESKTOP_DIRECTORY = 'CmDeskP'; + NS_WIN_APPDATA_DIR = 'AppData'; + NS_WIN_PRINTHOOD = 'PrntHd'; + NS_WIN_COOKIES_DIR = 'CookD'; + (* Deprecated *) + NS_OS_DRIVE_DIR = 'DrvD'; + +(* + * Original Code: mozilla/xpcom/io/nsAppDirectoryServiceDefs.h + * Revision: 1.16 + *) + NS_APP_APPLICATION_REGISTRY_FILE = 'AppRegF'; + NS_APP_APPLICATION_REGISTRY_DIR = 'AppRegD'; + NS_APP_DEFAULTS_50_DIR = 'DefRt'; // The root dir of all defaults dirs + NS_APP_PREF_DEFAULTS_50_DIR = 'PrfDef'; + NS_APP_PROFILE_DEFAULTS_50_DIR = 'profDef'; // The profile defaults of the "current" + // locale. Should be first choice. + NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR = 'ProfDefNoLoc'; // The profile defaults of the "default" + // installed locale. Second choice + // when above is not available. + NS_APP_USER_PROFILES_ROOT_DIR = 'DefProfRt'; // The dir where user profile dirs get created. + NS_APP_RES_DIR = 'ARes'; + NS_APP_CHROME_DIR = 'AChrom'; + NS_APP_PLUGINS_DIR = 'APlugns'; // Deprecated - use NS_APP_PLUGINS_DIR_LIST + NS_APP_SEARCH_DIR = 'SrchPlugns'; + NS_APP_CHROME_DIR_LIST = 'AChromeDL'; + NS_APP_PLUGINS_DIR_LIST = 'APluginsDL'; + NS_SHARED = 'SHARED'; + NS_APP_PREFS_50_DIR = 'PrefD'; // Directory which contains user prefs + NS_APP_PREFS_50_FILE = 'PrefF'; + NS_APP_PREFS_DEFAULTS_DIR_LIST = 'PrefDL'; + NS_APP_USER_PROFILE_50_DIR = 'ProfD'; + NS_APP_USER_CHROME_DIR = 'UChrm'; + NS_APP_LOCALSTORE_50_FILE = 'LclSt'; + NS_APP_HISTORY_50_FILE = 'UHist'; + NS_APP_USER_PANELS_50_FILE = 'UPnls'; + NS_APP_USER_MIMETYPES_50_FILE = 'UMimTyp'; + NS_APP_CACHE_PARENT_DIR = 'cachePDir'; + NS_APP_BOOKMARKS_50_FILE = 'BMarks'; + NS_APP_DOWNLOADS_50_FILE = 'DLoads'; + NS_APP_SEARCH_50_FILE = 'SrchF'; + NS_APP_MAIL_50_DIR = 'MailD'; + NS_APP_IMAP_MAIL_50_DIR = 'IMapMD'; + NS_APP_NEWS_50_DIR = 'NewsD'; + NS_APP_MESSENGER_FOLDER_CACHE_50_DIR = 'MFCaD'; + NS_APP_INSTALL_CLEANUP_DIR = 'XPIClnupD'; //location of xpicleanup.dat xpicleanup.exe + NS_APP_STORAGE_50_FILE = 'UStor'; + +procedure NS_CreateInstance(const CID, IID: TGUID; out Intf); overload; +procedure NS_CreateInstance(ContractID: PAnsiChar; constref IID: TGUID; out Intf); overload; +function NS_GetWeakReference(Instance: nsISupports): nsIWeakReference; +procedure NS_GetInterface(Source: nsISupports; constref IID: TGUID; out Instance); +procedure NS_GetService(const CID, IID: TGUID; out Intf); overload; +procedure NS_GetService(ContractID: PAnsiChar; constref IID: TGUID; out Intf); overload; +function NS_GetSpecialDirectory(const specialDirName: PAnsiChar): nsIFile; + +const + NS_PREFLOCALIZEDSTRING_CID: TGUID = '{064d9cee-1dd2-11b2-83e3-d25ab0193c26}'; + NS_PREFLOCALIZEDSTRING_CONTRACTID = '@mozilla.org/pref-localizedstring;1'; + NS_PREFLOCALIZEDSTRING_CLASSNAME = 'Pref LocalizedString'; + + NS_PREFSERVICE_CID: TGUID = '{1cd91b88-1dd2-11b2-92e1-ed22ed298000}'; + NS_PREFSERVICE_CONTRACTID = '@mozilla.org/preferences-service;1'; + NS_PREFSERVICE_CLASSNAME = 'Preferences Server'; + NS_PREFSERVICE_RESET_TOPIC_ID = 'prefservice:before-reset'; + + STATUS_UNKNOWN=0; + STATUS_ACCEPTED=1; + STATUS_DOWNGRADED=2; + STATUS_FLAGGED=3; + STATUS_REJECTED=4; + POLICY_UNKNOWN=0; + POLICY_NONE=1; + POLICY_NO_CONSENT=2; + POLICY_IMPLICIT_CONSENT=3; + POLICY_EXPLICIT_CONSENT=4; + POLICY_NO_II=5; + + NS_COOKIEPROMPTSERVICE_CONTRACTID = '@mozilla.org/embedcomp/cookieprompt-service;1'; + + NS_WINDOWWATCHER_CONTRACTID = '@mozilla.org/embedcomp/window-watcher;1'; + + NS_WEBBROWSER_CID: TGUID = '{f1eac761-87e9-11d3-af80-00a024ffc08c}'; + NS_WEBBROWSER_CONTRACTID = '@mozilla.org/embedding/browser/nsWebBrowser;1'; + + STATUS_SCRIPT = $00000001; + STATUS_SCRIPT_DEFAULT = $00000002; + STATUS_LINK = $00000003; + CHROME_DEFAULT = $00000001; + CHROME_WINDOW_BORDERS = $00000002; + CHROME_WINDOW_CLOSE = $00000004; + CHROME_WINDOW_RESIZE = $00000008; + CHROME_MENUBAR = $00000010; + CHROME_TOOLBAR = $00000020; + CHROME_LOCATIONBAR = $00000040; + CHROME_STATUSBAR = $00000080; + CHROME_PERSONAL_TOOLBAR = $00000100; + CHROME_SCROLLBARS = $00000200; + CHROME_TITLEBAR = $00000400; + CHROME_EXTRA = $00000800; + CHROME_WITH_SIZE = $00001000; + CHROME_WITH_POSITION = $00002000; + CHROME_WINDOW_MIN = $00004000; + CHROME_WINDOW_POPUP = $00008000; + CHROME_WINDOW_RAISED = $02000000; + CHROME_WINDOW_LOWERED = $04000000; + CHROME_CENTER_SCREEN = $08000000; + CHROME_DEPENDENT = $10000000; + CHROME_MODAL = $20000000; + CHROME_OPENAS_DIALOG = $40000000; + CHROME_OPENAS_CHROME = $80000000; + CHROME_ALL = $00000ffe; + + SETUP_ALLOW_PLUGINS = 1; + SETUP_ALLOW_JAVASCRIPT = 2; + SETUP_ALLOW_META_REDIRECTS = 3; + SETUP_ALLOW_SUBFRAMES = 4; + SETUP_ALLOW_IMAGES = 5; + SETUP_FOCUS_DOC_BEFORE_CONTENT = 6; + SETUP_USE_GLOBAL_HISTORY = 256; + SETUP_IS_CHROME_WRAPPER = 7; + + PRINTPREVIEW_GOTO_PAGENUM = 0; + PRINTPREVIEW_PREV_PAGE = 1; + PRINTPREVIEW_NEXT_PAGE = 2; + PRINTPREVIEW_HOME = 3; + PRINTPREVIEW_END = 4; + + DIM_FLAGS_POSITION = 1; + DIM_FLAGS_SIZE_INNER = 2; + DIM_FLAGS_SIZE_OUTER = 4; + + CONTEXT_NONE = 0; + CONTEXT_LINK = 1; + CONTEXT_IMAGE = 2; + CONTEXT_DOCUMENT = 4; + CONTEXT_TEXT = 8; + CONTEXT_INPUT = 16; + CONTEXT_BACKGROUND_IMAGE = 32; + + STATE_START = $00000001; + STATE_REDIRECTING = $00000002; + STATE_TRANSFERRING = $00000004; + STATE_NEGOTIATING = $00000008; + STATE_STOP = $00000010; + STATE_IS_REQUEST = $00010000; + STATE_IS_DOCUMENT = $00020000; + STATE_IS_NETWORK = $00040000; + STATE_IS_WINDOW = $00080000; + STATE_IS_INSECURE = $00000004; + STATE_IS_BROKEN = $00000001; + STATE_IS_SECURE = $00000002; + STATE_SECURE_HIGH = $00040000; + STATE_SECURE_MED = $00010000; + STATE_SECURE_LOW = $00020000; + + NOTIFY_STATE_REQUEST = $00000001; + NOTIFY_STATE_DOCUMENT = $00000002; + NOTIFY_STATE_NETWORK = $00000004; + NOTIFY_STATE_WINDOW = $00000008; + NOTIFY_STATE_ALL = $0000000f; + NOTIFY_PROGRESS = $00000010; + NOTIFY_STATUS = $00000020; + NOTIFY_SECURITY = $00000040; + NOTIFY_LOCATION = $00000080; + NOTIFY_ALL = $000000ff; + +type + TWeakReference = class; + TSupportsWeakReference = class; + + TWeakReference = class(TInterfacedObject, nsIWeakReference) + private + FSupports: TSupportsWeakReference; + public + constructor Create(supports: TSupportsWeakReference); + destructor Destroy; override; + procedure QueryReferent(constref uuid: TGUID; out Intf); safecall; + end; + + TSupportsWeakReference = class(TInterfacedObject, nsISupportsWeakReference) + private + FProxy: TWeakReference; + public + destructor Destroy; override; + function GetWeakReference: nsIWeakReference; safecall; + end; + + { IDirectoryServiceProvider } + + IDirectoryServiceProvider = class(TInterfacedObject, + nsIDirectoryServiceProvider) + private + FCacheParentDir: UTF8String; + FProfileDir: UTF8String; + procedure SetCacheDir(const AValue: UTF8String); + procedure SetProfileDir(const AValue: UTF8String); + public + function GetFile(const prop: PAnsiChar; out persistent: PRBool): nsIFile; safecall; + property CacheParentDir: UTF8String read FCacheParentDir write SetCacheDir; + property ProfileDir: UTF8String read FProfileDir write SetProfileDir; + end; + + EGeckoException = class (Exception); + EGeckoError = class(EGeckoException); //Gecko error. It is an error. + EGeckoHint = class(EGeckoException); //Gecko Hint. It does not necessary means an error. They could be hidden. + +function NS_NewSupportsWeakReferenceDelegate(aTarget: nsISupports): nsISupportsWeakReference; + +resourcestring + SGetComponentManagerError = 'Cannot get the Component Manager.'; + SGetServiceManagerError = 'Cannot get the Service Manager.'; + SCreateInstanceError = 'Cannot get the instance of CID ''%s.'' '; + SGetServiceError = 'Cannot get the service of CID ''%s.'' '; + SNoSuchSpecialDir = 'Cannot get the Special Directory ''%s.'' '; + SNoSuchInterface = 'Cannot get the Interface ''%s.'' '; + +var + GeckoEngineDirectoryService: IDirectoryServiceProvider; + +implementation + +uses + nsMemory, nsError, nsInit {$IFDEF MSWINDOWS} ,Windows {$ENDIF}; + +var + sCompMgr: nsIComponentManager = nil; + sSrvMgr: nsIServiceManager = nil; + + +procedure NS_CreateInstance(const CID, IID: TGUID; out Intf); +var + rv: nsresult; +begin + rv := NS_OK; + if not Assigned(sCompMgr) then + rv := NS_GetComponentManager(sCompMgr); + if NS_FAILED(rv) or not Assigned(sCompMgr) then + raise EGeckoError.CreateRes(PResStringRec(@SGetComponentManagerError)); + + try + sCompMgr.CreateInstance(CID, nil, IID, Intf); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SCreateInstanceError), [GUIDToString(CID)]); + end; +end; + +procedure NS_CreateInstance(ContractID: PAnsiChar; constref IID: TGUID; out Intf); +var + rv: nsresult; +begin + rv := NS_OK; + if not Assigned(sCompMgr) then + rv := NS_GetComponentManager(sCompMgr); + if NS_FAILED(rv) or not Assigned(sCompMgr) then + raise EGeckoError.CreateRes(PResStringRec(@SGetComponentManagerError)); + + try + sCompMgr.CreateInstanceByContractID(ContractID, nil, IID, Intf); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SCreateInstanceError), [String(ContractID)]); + end; +end; + +procedure NS_GetService(const CID, IID: TGUID; out Intf); +var + rv: nsresult; +begin + rv := NS_OK; + if not Assigned(sSrvMgr) then + rv := NS_GetServiceManager(sSrvMgr); + if NS_FAILED(rv) or not Assigned(sSrvMgr) then + raise EGeckoError.CreateRes(PResStringRec(@SGetServiceManagerError)); + + try + sSrvMgr.GetService(CID, IID, Intf); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SGetServiceError), [GUIDToString(CID)]); + end; +end; + +procedure NS_GetService(ContractID: PAnsiChar; constref IID: TGUID; out Intf); +var + rv: nsresult; +begin + rv := NS_OK; + if not Assigned(sSrvMgr) then + rv := NS_GetServiceManager(sSrvMgr); + if NS_FAILED(rv) or not Assigned(sSrvMgr) then + raise EGeckoError.CreateRes(PResStringRec(@SGetServiceManagerError)); + + try + sSrvMgr.GetServiceByContractID(ContractID, IID, Intf); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SGetServiceError), [ContractID]); + end; +end; + +function NS_GetSpecialDirectory(const specialDirName: PAnsiChar): nsIFile; +var + serv: nsIProperties; +const + NS_DIRECTORY_SERVICE_CID: TGUID = '{f00152d0-b40b-11d3-8c9c-000064657374}'; +begin + NS_GetService(NS_DIRECTORY_SERVICE_CID, nsIProperties, serv); + + try + serv.Get(specialDirName, nsIFile, Result); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SNoSuchSpecialDir), [specialDirName]); + end; +end; + +constructor TWeakReference.Create(supports: TSupportsWeakReference); +begin + inherited Create; + FSupports := supports; +end; + +destructor TWeakReference.Destroy; +begin + if Assigned(FSupports) then + FSupports.FProxy := nil; + inherited; +end; + +procedure TWeakReference.QueryReferent(constref uuid: TGUID; out Intf); +var + rv: nsresult; +begin + rv := FSupports.QueryInterface(uuid, Intf); + if NS_FAILED(rv) then begin + //This is not a catastrophic error, so no exception is needed. + //In example the uuid {DDE39DE0-E4E0-11DA-8AD9-0800200C9A66} request + //for a nsIWebProgressListener2. Just answering nothing does not + //produce an "error". + {$IFDEF DEBUG} + OutputDebugString('Missing interface in TWeakReference.QueryReferent '+GUIDToString(uuid)); + {$ENDIF} + //raise EGeckoError.Create('QueryReference Error'); + //System.Error(reIntfCastError); + end; +end; + +destructor TSupportsWeakReference.Destroy; +begin + if Assigned(FProxy) then + FProxy.FSupports := nil; + inherited; +end; + +function TSupportsWeakReference.GetWeakReference: nsIWeakReference; +begin + if not Assigned(FProxy) then + FProxy := TWeakReference.Create(Self); + + if NS_FAILED(FProxy.QueryInterface(nsIWeakReference, Result)) then + System.Error(reIntfCastError); +end; + +function NS_GetWeakReference(Instance: nsISupports): nsIWeakReference; +var + factory: nsISupportsWeakReference; +begin + if Assigned(Instance) then + try + factory := Instance as nsISupportsWeakReference; + Result := factory.GetWeakReference(); + except + Result := nil; + end; +end; + +procedure NS_GetInterface(Source: nsISupports; constref IID: TGUID; out Instance); +var + factory: nsIInterfaceRequestor; +begin + if Assigned(Source) then + try + factory := Source as nsIInterfaceRequestor; + factory.GetInterface(IID, Instance); + except + raise EGeckoError.CreateResFmt(PResStringRec(@SNoSuchInterface), [GUIDToString(IID)]); + end else + System.Error(reInvalidPtr); +end; + +type + TSupportsWeakReferenceInternal = class; + TWeakReferenceInternal = class; + + TSupportsWeakReferenceInternal = class(TInterfacedObject, + nsISupportsWeakReference) + FTarget: nsISupports; + FProxy: TWeakReferenceInternal; + constructor Create(ATarget: nsISupports); + destructor Destroy; override; + function getWeakReference: nsIWeakReference; safecall; + end; + + TWeakReferenceInternal = class(TInterfacedObject, + nsIWeakReference) + FReferent: TSupportsWeakReferenceInternal; + constructor Create(aReferent: TSupportsWeakReferenceInternal); + destructor Destroy; override; + procedure QueryReferent(constref iid: TGUID; out Intf); safecall; + end; + +function NS_NewSupportsWeakReferenceDelegate(aTarget: nsISupports): nsISupportsWeakReference; +begin + Result := TSupportsWeakReferenceInternal.Create(aTarget); +end; + +constructor TSupportsWeakReferenceInternal.Create(ATarget: nsISupports); +begin + inherited Create; + FTarget := ATarget; + // FProxy := nil; // non-initialized value set to zero +end; + +destructor TSupportsWeakReferenceInternal.Destroy; +begin + if Assigned(FProxy) then + FProxy.FReferent := nil; + inherited; +end; + +function TSupportsWeakReferenceInternal.getWeakReference: nsIWeakReference; +begin + if not Assigned(FProxy) then + begin + FProxy := TWeakReferenceInternal.Create(Self); + end; + + Result := FProxy; +end; + +constructor TWeakReferenceInternal.Create(aReferent: TSupportsWeakReferenceInternal); +begin + inherited Create; + + FReferent := aReferent; +end; + +destructor TWeakReferenceInternal.Destroy; +begin + if Assigned(FReferent) then + FReferent.FProxy := nil; + + inherited; +end; + +procedure TWeakReferenceInternal.QueryReferent(constref iid: TGUID; out intf); +begin + if not Supports(FReferent.FTarget, iid, intf) then + System.Error(reIntfCastError); +end; + +{ IDirectoryServiceProvider } + +procedure IDirectoryServiceProvider.SetCacheDir(const AValue: UTF8String); +begin + if FCacheParentDir=AValue then exit; + FCacheParentDir:=AValue; +end; + +procedure IDirectoryServiceProvider.SetProfileDir(const AValue: UTF8String); +begin + if FProfileDir=AValue then exit; + FProfileDir:=AValue; +end; + +function IDirectoryServiceProvider.GetFile(const prop: PAnsiChar; out + persistent: PRBool): nsIFile; safecall; +var + Local: nsILocalFile; +begin + persistent:=true; //Only ask one time for each directory, it will be remembered + //by the Gecko engine while running. + if prop = 'ProfD' then //Profile directory + begin + if FProfileDir<>'' then + begin + NS_NewLocalFile(NewString(FProfileDir).AString,false,Local); + Local.QueryInterface(nsILocalFile,Result); + end; + end else + if prop = 'cachePDir' then //Cache directory + begin + if FCacheParentDir<>'' then + begin + NS_NewLocalFile(NewString(FCacheParentDir).AString,false,Local); + Local.QueryInterface(nsILocalFile,Result); + end; + end; +end; + +end. diff --git a/components/geckoport/version2/nsXRE.pas b/components/geckoport/version2/nsXRE.pas new file mode 100755 index 000000000..4e27c511a --- /dev/null +++ b/components/geckoport/version2/nsXRE.pas @@ -0,0 +1,563 @@ +unit nsXRE; + +interface + +uses + Classes, nsTypes, nsXPCOM, nsInit; + +type + PXREAppData = ^nsXREAppData; + nsXREAppData = record + size: PRUint32; + directory: nsILocalFile; + vendor: PAnsiChar; + name: PAnsiChar; + version: PAnsiChar; + buildID: PAnsiChar; + ID: PAnsiChar; + copyright: PAnsiChar; + flags: PRUint32; + xreDirectory: nsILocalFile; + minVersion: PAnsiChar; + maxVersion: PAnsiChar; + crashReportURL: PAnsiChar; + profile: PAnsiChar; + end; + +const + NS_XRE_ENABLE_PROFILE_MIGRATOR = 1 shl 1; + NS_XRE_ENABLE_EXTENSION_MANEGER = 1 shl 2; + NS_XRE_ENABLE_CRASH_REPORTER = 1 shl 3; + + XRE_USER_APP_DATA_DIR = 'UAppData'; + XRE_EXTENSIONS_DIR_LIST = 'XREExtDL'; + XRE_EXECUTABLE_FILE = 'XREExeF'; + NS_APP_PROFILE_DIR_STARTUP = 'ProfDS'; + NS_APP_PROFILE_LOCAL_DIR_STARTUP = 'ProfLDS'; + XRE_SYS_LOCAL_EXTENSION_PARENT_DIR = 'XRESysLExtPD'; + XRE_SYS_SHARE_EXTENSION_PARENT_DIR = 'XRESysSExtPD'; + XRE_USER_SYS_EXTENSION_DIR = 'XREUSysExt'; + +{$IFNDEF MSWINDOWS} + MAX_PATH = 260; +{$ENDIF} + +// XRE Functions +function XRE_FindGRE(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + GREPath: PAnsiChar; + GREPathLen: PRUint32): nsresult; +function XRE_LoadGRE(GREPath: PAnsiChar): nsresult; +function XRE_UnloadGRE(): nsresult; +function XRE_FindAndLoadGRE(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + XPComPath: string = ''): nsresult; +function XRE_GetLoadedGREPath(GREPath: PAnsiChar; + GREPathLen: Cardinal): nsresult; + +function XRE_Startup(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + XPComPath: string = ''): nsresult; +function XRE_Shutdown(): nsresult; + +function XRE_main(argc: integer; + argv: Pointer; + const sAppData: nsXREAppData): Integer; cdecl; + +function XRE_GetFileFromPath(aPath: PAnsiChar; + out aResult: nsILocalFile): nsresult; cdecl; +function XRE_GetBinaryPath(argv0: PAnsiChar; + out aResult: nsILocalFile): nsresult; cdecl; +procedure XRE_GetStaticComponents(out aStaticComponents: PStaticModuleInfoArray; + out aComponentCount: PRUint32); cdecl; +function XRE_LockProfileDirectory(aDirectory: nsILocalFile; + out aLockObject: nsISupports): nsresult; cdecl; +function XRE_InitEmbedding(aLibXulDirectory: nsILocalFile; + aAppDirectory: nsILocalFile; + aAppDirProvider: nsIDirectoryServiceProvider; + const aStaticComponents: PStaticModuleInfoArray; + aStaticComponentCount: PRUint32): nsresult; +procedure XRE_NotifyProfile(); cdecl; +procedure XRE_TermEmbedding(); cdecl; +function XRE_CreateAppData(aINIFile: nsILocalFile; + out aAppData: PXREAppData): nsresult; cdecl; +function XRE_ParseAppData(aINIFile: nsILocalFile; + out aAppData: nsXREAppData): nsresult; cdecl; +procedure XRE_FreeAppData(aAppData: PXREAppData); cdecl; + +implementation + +uses + nsError, nsGeckoStrings, + {$IFDEF MSWINDOWS} Windows, {$ELSE} DynLibs, {$ENDIF} SysUtils; + +var + mainFunc : + function (argc: integer; + argv: Pointer; + const sAppData: nsXREAppData): Integer; cdecl; + getFileFromPathFunc : + function (aPath: PAnsiChar; + out aResult: nsILocalFile): nsresult; cdecl; + getBinaryPathFunc : + function (argv0: PAnsiChar; + out aResult: nsILocalFile): nsresult; cdecl; + getStaticComponentsFunc : + procedure (out aStaticComponents: PStaticModuleInfoArray; + out aComponentCount: PRUint32); cdecl; + lockProfileDirectoryFunc : + function (aDirectory: nsILocalFile; + out aLockObject: nsISupports): nsresult; cdecl; + initEmbeddingFunc : + function (aLibXulDirectory: nsILocalFile; + aAppDirectory: nsILocalFile; + aAppDirProvider: nsIDirectoryServiceProvider; + const aStaticComponents: PStaticModuleInfoArray; + aStaticComponentCount: PRUint32): nsresult; cdecl; + {$IFDEF XULRUNNER2} + initEmbedding2Func : + function (aLibXulDirectory: nsILocalFile; + aAppDirectory: nsILocalFile; + aAppDirProvider: nsIDirectoryServiceProvider): nsresult; cdecl; + {$ENDIF} + notifyProfileFunc : procedure (); cdecl; + termEmbeddingFunc : procedure (); cdecl; + createAppDataFunc : + function (aINIFile: nsILocalFile; + out aAppData: PXREAppData): nsresult; cdecl; + parseAppDataFunc : + function (aINIFile: nsILocalFile; + out aAppData: nsXREAppData): nsresult; cdecl; + freeAppDataFunc : + procedure (aAppData: PXREAppData); cdecl; + +function strrpbrk(src: PAnsiChar; const charSet: PAnsiChar): PAnsiChar; +var + ptr: PAnsiChar; +begin + Result := nil; + while src^ <> #0 do + begin + ptr := charSet; + while ptr^ <> #0 do + begin + if ptr^ = src^ then + Result := src; + Inc(ptr); + end; + Inc(src); + end; +end; + +function XRE_FindGRE(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + GREPath: PAnsiChar; + GREPathLen: PRUint32): nsresult; +const +{$IFDEF MSWINDOWS} + libxul = 'xul.dll'; +{$ELSE} + libxul = 'XUL'; +{$ENDIF} +var + vers: TGREVersionRange; + xpcomPath: array[0..MAX_PATH] of AnsiChar; + lastSlash: PAnsiChar; + MOZILLAFIVEHOME: string; + {$IFDEF LINUX} + EachPath: string; + LDPATH: string; + LDPATHItems: TStringList; + j: integer; + {$ENDIF} +begin +{$IFDEF MSWINDOWS} + vers.lower := lowerVer; + vers.lowerInclusive := lowerInclusive; + vers.upper := upperVer; + vers.upperInclusive := upperInclusive; + +(* + Result := GRE_GetGREPathWithProperties(@vers, 1, nil, 0, xpcomPath, MAX_PATH); +//FPC port: previous call doesn't find Firefox's GRE, so just force it. + if NS_FAILED(result) then + begin +// NS_StrLCopy(xpcomPath, 'C:\Program Files\Mozilla Firefox\xpcom.dll', MAX_PATH); + NS_StrLCopy(xpcomPath, PChar(ExtractFilePath(ParamStr(0)) + 'xulrunner\xpcom.dll'), MAX_PATH); + if FileExists(xpcomPath) then + Result := NS_OK; + end; +//FPC port + if NS_FAILED(result) then + Exit; +*) + //Changed checking order. Preference is xulrunner in application folder + MOZILLAFIVEHOME:=GetEnvironmentVariable('MOZILLA_FIVE_HOME'); + if MOZILLAFIVEHOME<>'' then begin + if MOZILLAFIVEHOME[Length(MOZILLAFIVEHOME)]<>PathDelim then MOZILLAFIVEHOME:=MOZILLAFIVEHOME+PathDelim; + NS_StrLCopy(xpcomPath, PChar(MOZILLAFIVEHOME+'xpcom.dll'), MAX_PATH); + Result:=NS_OK; + end else begin + NS_StrLCopy(xpcomPath, PChar(ExtractFilePath(ParamStr(0)) + 'xpcom.dll'), MAX_PATH); + if FileExists(xpcomPath) then begin + Result := NS_OK; + end else begin + NS_StrLCopy(xpcomPath, PChar(ExtractFilePath(ParamStr(0)) + 'xulrunner\xpcom.dll'), MAX_PATH); + if FileExists(xpcomPath) then begin + Result := NS_OK; + end else begin + Result := GRE_GetGREPathWithProperties(@vers, 1, nil, 0, xpcomPath, MAX_PATH); + if not FileExists(xpcomPath) then begin + Result:=NS_ERROR_FILE_ACCESS_DENIED + end else begin + result:=NS_OK; + end; + end; + end; + end; + if NS_FAILED(result) then + Exit; + + lastSlash := strrpbrk(xpcomPath, '/\'); + if not Assigned(lastSlash) then + begin + Result := NS_ERROR_FILE_INVALID_PATH; + Exit; + end; + + NS_StrLCopy(GREPath, xpcomPath, GREPathLen); + + Exit; +{$ELSE} + {$IFDEF DARWIN} +// NS_StrLCopy(GREPath, '/Applications/Firefox.app/Contents/MacOS/libxpcom.dylib', GREPathLen); + NS_StrLCopy(GREPath, '/Library/Frameworks/XUL.framework/Versions/Current/libxpcom.dylib', GREPathLen); + {$ELSE} //Linux + //NS_StrLCopy(GREPath, '/home/user/xulrunner/libxpcom.so', GREPathLen); + Result:=NS_ERROR_NOT_AVAILABLE; + LDPATH:=GetEnvironmentVariable('LD_LIBRARY_PATH'); + LDPATHItems:=TStringList.Create; + LDPATHItems.StrictDelimiter:=true; + LDPATHItems.Delimiter:=PathSeparator; + LDPATHItems.DelimitedText:=LDPATH; + for j := 0 to LDPATHItems.Count-1 do begin + EachPath:=LDPATHItems[j]; + if Length(EachPath)>0 then begin + if EachPath[Length(EachPath)]<>PathDelim then EachPath:=EachPath+PathDelim; + if FileExists(EachPath+'libxpcom.so') and FileExists(EachPath+'dependentlibs.list') then begin + NS_StrLCopy(GREPath, pchar(EachPath+'libxpcom.so'), GREPathLen); + Result:=NS_OK; + break; + end; + end; + end; + LDPATHItems.Free; + {$ENDIF} + Result := NS_OK; +{$ENDIF} +end; + +var + sXulModule: HMODULE; + sLoadedGREPath: array[0..MAX_PATH] of AnsiChar; + +function XRE_LoadGRE(GREPath: PAnsiChar): nsresult; +const +{$IFDEF MSWINDOWS} + libxul = 'xul.dll'; +{$ELSE} + {$IFDEF DARWIN} + libxul = 'XUL'; + {$ELSE} //Linux + libxul = 'libxul.so'; + {$ENDIF} +{$ENDIF} +var + xpcomPath, xulPath: array[0..MAX_PATH] of AnsiChar; + xulModule: HMODULE; + lastSlash: PAnsiChar; +begin + if sXulModule <> 0 then + begin + Result := NS_ERROR_ALREADY_INITIALIZED; + Exit; + end; + + NS_StrLCopy(xpcomPath, GREPath, MAX_PATH); + lastSlash := strrpbrk(xpcomPath, '/\'); + if not Assigned(lastSlash) then + begin + Result := NS_ERROR_FILE_INVALID_PATH; + Exit; + end; + lastSlash^ := #0; + NS_StrLCopy(xulPath, xpcomPath, MAX_PATH); + NS_StrLCat(xulPath, DirectorySeparator + libxul, MAX_PATH); + + Result := XPCOMGlueStartup(GREPath); + if NS_FAILED(Result) then + Exit; + +{$IFDEF MSWINDOWS} + xulModule := LoadLibraryExA(xulPath, 0, 0); +{$ELSE} + xulModule := LoadLibrary(xulPath); +{$ENDIF} + if xulModule = 0 then + begin + Result := NS_ERROR_FAILURE; + XPCOMGlueShutdown(); + Exit; + end; + + mainFunc := GetProcAddress(xulModule, 'XRE_main'); + getFileFromPathFunc := GetProcAddress(xulModule, 'XRE_GetFileFromPath'); + getBinaryPathFunc := GetProcAddress(xulModule, 'XRE_GetBinaryPath'); + getStaticComponentsFunc := GetProcAddress(xulModule, 'XRE_GetStaticComponents'); + lockProfileDirectoryFunc := GetProcAddress(xulModule, 'XRE_LockProfileDirectory'); + initEmbeddingFunc := GetProcAddress(xulModule, 'XRE_InitEmbedding'); + {$IFDEF XULRUNNER2} + initEmbedding2Func := GetProcAddress(xulModule, 'XRE_InitEmbedding2'); + {$ENDIF} + notifyProfileFunc := GetProcAddress(xulModule, 'XRE_NotifyProfile'); + termEmbeddingFunc := GetProcAddress(xulModule, 'XRE_TermEmbedding'); + createAppDataFunc := GetProcAddress(xulModule, 'XRE_CreateAppData'); + parseAppDataFunc := GetProcAddress(xulModule, 'XRE_ParseAppData'); + freeAppDataFunc := GetProcAddress(xulModule, 'XRE_FreeAppData'); + + NS_StrLCopy(sLoadedGREPath, GREPath, MAX_PATH); + sXulModule := xulModule; +end; + +function XRE_UnloadGRE(): nsresult; +begin + if sXulModule = 0 then + begin + Result := NS_ERROR_NOT_INITIALIZED; + Exit; + end; + XPCOMGlueShutdown; + sXulModule := 0; + Result := NS_OK; +end; + +function XRE_FindAndLoadGRE(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + XPComPath: string = ''): nsresult; +var + grePath: array[0..MAX_PATH] of AnsiChar; +begin + if XPComPath='' then + begin + Result := XRE_FindGRE(lowerVer, lowerInclusive, + upperVer, upperInclusive, + grePath, MAX_PATH); + if NS_FAILED(Result) then + Exit; + end + else if FileExists(XPComPath) then + begin + NS_StrLCopy(GREPath, pchar(XPComPath), length(XPComPath)); + end + else + begin + result := NS_ERROR_FILE_ACCESS_DENIED; + Exit; + end; + + Result := XRE_LoadGRE(grePath); +end; + +function XRE_GetLoadedGREPath(GREPath: PAnsiChar; + GREPathLen: Cardinal): nsresult; +begin + if sXulModule = 0 then + begin + Result := NS_ERROR_NOT_INITIALIZED; + Exit; + end; + NS_StrLCopy(GREPath, sLoadedGREPath, GREPathLen); + Result := NS_OK; +end; + +function XRE_Startup(const lowerVer: PAnsiChar; + lowerInclusive: PRBool; + const upperVer: PAnsiChar; + upperInclusive: PRBool; + XPComPath: string = ''): nsresult; +var + grePath: array[0..MAX_PATH] of AnsiChar; + xulDir: nsILocalFile; + lastSlash: PAnsiChar; + + appPath: array[0..MAX_PATH] of AnsiChar; + appDir: nsILocalFile; +begin + Result := XRE_FindAndLoadGRE(lowerVer, lowerInclusive, + upperVer, upperInclusive, + XPComPath); + if NS_FAILED(Result) then + Exit; + + XRE_GetLoadedGREPath(grePath, MAX_PATH); + lastSlash := strrpbrk(grePath, '/\'); + lastSlash^ := #0; +{$IFNDEF FPC} + Result := NS_NewNativeLocalFile(NewCString(grePath).ACString, False, xulDir); +{$ELSE} + Result := NS_NewNativeLocalFile(NewCString(AnsiString(grePath)).ACString, False, xulDir); +{$ENDIF} + if NS_FAILED(Result) then + begin + XRE_UnloadGRE(); + Exit; + end; +{$IFDEF MSWINDOWS} + if not NS_CurrentProcessDirectory(appPath, MAX_PATH) then + begin + Result := NS_ERROR_FAILURE; + XRE_UnloadGRE(); + Exit; + end; +{$ELSE} +// NS_StrCopy(appPath, PAnsiChar(ExtractFilePath(ParamStr(0)))); + NS_StrCopy(appPath, PAnsiChar(ExtractFilePath(ExpandFileName(ParamStr(0))))); +{$ENDIF} +{$IFNDEF FPC} + Result := NS_NewNativeLocalFile(NewCString(appPath).ACString, False, appDir); +{$ELSE} + Result := NS_NewNativeLocalFile(NewCString(AnsiString(appPath)).ACString, False, appDir); +{$ENDIF} + if NS_FAILED(Result) then + begin + XRE_UnloadGRE(); + Exit; + end; +// NS_LogInit(); + //Warning, do not pass GeckoEngineDirectoryService to XRE_InitEmbedding, it + //will crash Gecko versions prior to 1.9.2.x with AV in line "basewin.Create" + Result := XRE_InitEmbedding(xulDir, appDir, nil, nil, 0); +// NS_LogTerm(); +end; + +function XRE_Shutdown(): nsresult; +begin + XRE_TermEmbedding(); + XRE_UnloadGRE(); + Result := NS_OK; +end; + +function XRE_main(argc: integer; + argv: Pointer; + const sAppData: nsXREAppData): Integer; +begin + if Assigned(mainFunc) then + Result := mainFunc(argc, argv, sAppData) + else + Result := 0; +end; + +function XRE_GetFileFromPath(aPath: PAnsiChar; + out aResult: nsILocalFile): nsresult; +begin + if Assigned(getFileFromPathFunc) then + Result := getFileFromPathFunc(aPath, aResult) + else + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +function XRE_GetBinaryPath(argv0: PAnsiChar; + out aResult: nsILocalFile): nsresult; +begin + if Assigned(getBinaryPathFunc) then + Result := getBinaryPathFunc(argv0, aResult) + else + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +procedure XRE_GetStaticComponents(out aStaticComponents: PStaticModuleInfoArray; + out aComponentCount: PRUint32); +begin + if Assigned(getStaticComponentsFunc) then + getStaticComponentsFunc(aStaticComponents, aComponentCount); +end; + +function XRE_LockProfileDirectory(aDirectory: nsILocalFile; + out aLockObject: nsISupports): nsresult; +begin + if Assigned(lockProfileDirectoryFunc) then + Result := lockProfileDirectoryFunc(aDirectory, aLockObject) + else + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +function XRE_InitEmbedding(aLibXulDirectory: nsILocalFile; + aAppDirectory: nsILocalFile; + aAppDirProvider: nsIDirectoryServiceProvider; + const aStaticComponents: PStaticModuleInfoArray; + aStaticComponentCount: PRUint32): nsresult; +begin + if Assigned(initEmbeddingFunc) then + Result := initEmbeddingFunc(aLibXulDirectory, + aAppDirectory, + aAppDirProvider, + aStaticComponents, + aStaticComponentCount) + else + {$IFDEF XULRUNNER2} + if Assigned(initEmbedding2Func) then + Result := initEmbedding2Func(aLibXulDirectory, + aAppDirectory, + aAppDirProvider) + else + {$ENDIF} + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +procedure XRE_NotifyProfile(); +begin + if Assigned(notifyProfileFunc) then + notifyProfileFunc(); +end; + +procedure XRE_TermEmbedding(); +begin + if Assigned(termEmbeddingFunc) then + termEmbeddingFunc(); +end; + +function XRE_CreateAppData(aINIFile: nsILocalFile; + out aAppData: PXREAppData): nsresult; +begin + if Assigned(createAppDataFunc) then + Result := createAppDataFunc(aINIFile, aAppData) + else + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +function XRE_ParseAppData(aINIFile: nsILocalFile; + out aAppData: nsXREAppData): nsresult; +begin + if Assigned(parseAppDataFunc) then + Result := parseAppDataFunc(aINIFile, aAppData) + else + Result := NS_ERROR_NOT_IMPLEMENTED; +end; + +procedure XRE_FreeAppData(aAppData: PXREAppData); +begin + if Assigned(freeAppDataFunc) then + freeAppDataFunc(aAppData); +end; + +end.