You've already forked lazarus-ccr
* Begin of version 2 of the geckoport package
In this new version the gecko-interfaces are generated directly from the idl-files of the gecko-sdk using the idlparser utility. The generated include files are kept as closely to the original as possible. For now by defaule Gecko 9 is used, as Gecko 10 has a bug which makes it impossible to embed it on Linux systems. git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2349 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -91,10 +91,6 @@ type
|
||||
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.
|
||||
@ -121,7 +117,6 @@ type
|
||||
//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;
|
||||
@ -129,9 +124,9 @@ type
|
||||
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 GetMutable(): longbool; safecall;
|
||||
procedure SetMutable(aMutable: longbool); safecall;
|
||||
property Mutable: longbool read GetMutable write SetMutable;
|
||||
function GetX(): nscoord; safecall;
|
||||
property X: nscoord read GetX;
|
||||
function GetY(): nscoord; safecall;
|
||||
@ -206,46 +201,6 @@ type
|
||||
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;
|
||||
@ -263,28 +218,6 @@ type
|
||||
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
|
||||
|
||||
|
@ -55,8 +55,8 @@ interface
|
||||
uses
|
||||
LclIntf, LMessages, LclType, LResources, Graphics,
|
||||
SysUtils, Classes, Controls, nsXPCOM,
|
||||
nsGeckoStrings, nsTypes, CallbackInterfaces, nsXPCOMGlue, BrowserSupports,
|
||||
nsXPCOM_std19, GeckoPromptService
|
||||
nsGeckoStrings, nsTypes, CallbackInterfaces, nsXPCOMGlue,
|
||||
GeckoPromptService
|
||||
{$IFDEF LCLCarbon}, CarbonPrivate {$ENDIF}
|
||||
{$IFDEF LCLCocoa}, CocoaPrivate, CocoaAll, CocoaUtils {$ENDIF}
|
||||
{$IFDEF LCLGtk2}, gtk2,
|
||||
@ -346,27 +346,27 @@ type
|
||||
//destructor Destroy;
|
||||
protected
|
||||
// nsIWebBrowser
|
||||
procedure SetStatus(statusType: PRUint32; const status: PWideChar); virtual; safecall; abstract;
|
||||
procedure SetStatus(statusType: idlulong; 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;
|
||||
function GetChromeFlags(): idlulong; virtual; safecall; abstract;
|
||||
procedure SetChromeFlags(aChromeFlags: idlulong); virtual; safecall; abstract;
|
||||
procedure DestroyBrowserWindow(); virtual; safecall; abstract;
|
||||
procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); virtual; safecall; abstract;
|
||||
procedure SizeBrowserTo(aCX: idllong; aCY: idllong); virtual; safecall; abstract;
|
||||
procedure ShowAsModal(); virtual; safecall; abstract;
|
||||
function IsWindowModal(): PRBool; virtual; safecall; abstract;
|
||||
function IsWindowModal(): longbool; 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 SetDimensions(flags: idlulong; x: idllong; y: idllong; cx: idllong; cy: idllong); virtual; safecall; abstract;
|
||||
procedure GetDimensions(flags: idlulong; out x: idllong; out y: idllong; out cx: idllong; out cy: idllong); virtual; safecall; abstract;
|
||||
procedure SetFocus(); virtual; safecall; abstract;
|
||||
function GetVisibility(): PRBool; virtual; safecall; abstract;
|
||||
procedure SetVisibility(aVisibility: PRBool); virtual; safecall; abstract;
|
||||
function GetVisibility(): longbool; virtual; safecall; abstract;
|
||||
procedure SetVisibility(aVisibility: longbool); virtual; safecall; abstract;
|
||||
function GetTitle(): PWideChar; virtual; safecall; abstract;
|
||||
procedure SetTitle(const aTitle: PWideChar); virtual; safecall; abstract;
|
||||
procedure SetTitle(aTitle: PWideChar); virtual; safecall; abstract;
|
||||
function GetSiteWindow(): Pointer; virtual; safecall; abstract;
|
||||
|
||||
// IGeckoBrowserChrome;
|
||||
@ -391,11 +391,11 @@ type
|
||||
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 OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); virtual; safecall; abstract;
|
||||
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); virtual; safecall; abstract;
|
||||
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); virtual; safecall; abstract;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); virtual; safecall; abstract;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); virtual; safecall; abstract;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); virtual; safecall; abstract;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); virtual; safecall; abstract;
|
||||
// nsIDOMEventListener
|
||||
procedure HandleEvent(aEvent: nsIDOMEvent); safecall;
|
||||
public
|
||||
@ -538,7 +538,7 @@ type
|
||||
{ TGeckoBrowserChrome }
|
||||
|
||||
TGeckoBrowserChrome = class(TCustomGeckoBrowserChrome,
|
||||
nsIInterfaceRequestor_std19,
|
||||
nsIInterfaceRequestor,
|
||||
nsIContextMenuListener2,
|
||||
nsITooltipListener)
|
||||
private
|
||||
@ -549,36 +549,36 @@ type
|
||||
destructor Destroy; override;
|
||||
protected
|
||||
// nsIWebBrowserChrome
|
||||
procedure SetStatus(statusType: PRUint32; const status: PWideChar); override;
|
||||
procedure SetStatus(statusType: idlulong; 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;
|
||||
function GetChromeFlags(): idlulong; override; {$IFDEF FPC} safecall; {$ENDIF}
|
||||
procedure SetChromeFlags(aChromeFlags: idlulong); override;
|
||||
procedure DestroyBrowserWindow(); override;
|
||||
procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); override;
|
||||
procedure SizeBrowserTo(aCX: idllong; aCY: idllong); override;
|
||||
procedure ShowAsModal(); override;
|
||||
function IsWindowModal(): PRBool; override; {$IFDEF FPC} safecall; {$ENDIF}
|
||||
function IsWindowModal(): longbool; 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 SetDimensions(flags: idlulong; x: idllong; y: idllong; cx: idllong; cy: idllong); override;
|
||||
procedure GetDimensions(flags: idlulong; out x: idllong; out y: idllong; out cx: idllong; out cy: idllong); override;
|
||||
procedure SetFocus(); override;
|
||||
function GetVisibility(): PRBool; override; {$IFDEF FPC} safecall; {$ENDIF}
|
||||
procedure SetVisibility(aVisibility: PRBool); override;
|
||||
function GetVisibility(): longbool; override; {$IFDEF FPC} safecall; {$ENDIF}
|
||||
procedure SetVisibility(aVisibility: longbool); override;
|
||||
function GetTitle(): PWideChar; override; {$IFDEF FPC} safecall; {$ENDIF}
|
||||
procedure SetTitle(const aTitle: PWideChar); override;
|
||||
procedure SetTitle(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;
|
||||
procedure NS_GetInterface(constref uuid: TGuid; out _result); safecall;
|
||||
function nsIInterfaceRequestor.GetInterface = NS_GetInterface;
|
||||
// nsIContextMenuListener2
|
||||
procedure OnShowContextMenu(aContextFlags: PRUint32;
|
||||
procedure OnShowContextMenu(aContextFlags: idlulong;
|
||||
aUtils: nsIContextMenuInfo); safecall;
|
||||
// nsITooltipListener
|
||||
procedure OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall;
|
||||
procedure OnShowTooltip(aXCoords: idllong; aYCoords: idllong; aTipText: PWideChar); safecall;
|
||||
procedure OnHideTooltip(); safecall;
|
||||
|
||||
// IGeckoBrowserChrome;
|
||||
@ -591,18 +591,18 @@ type
|
||||
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 OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); override;
|
||||
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); override;
|
||||
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); override;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); override;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); override;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); override;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); 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;
|
||||
function OnHistoryGoBack(aBackURI: nsIURI): longbool; safecall;
|
||||
function OnHistoryGoForward(aForwardURI: nsIURI): longbool; safecall;
|
||||
function OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: idlulong): longbool; safecall;
|
||||
function OnHistoryGotoIndex(aIndex: idllong; aGotoURI: nsIURI): longbool; safecall;
|
||||
function OnHistoryPurge(aNumEntries: idllong): longbool; safecall;
|
||||
// nsIDOMEventListener
|
||||
//procedure HandleEvent(aEvent: nsIDOMEvent); safecall;
|
||||
public
|
||||
@ -727,7 +727,7 @@ procedure Register;
|
||||
{$IFNDEF LCL}
|
||||
{$R *.dcr}
|
||||
{$ELSE}
|
||||
{$IFNDEF DARWIN}
|
||||
{$IFDEF WINDOWS}
|
||||
{$R geckoresources.rc}
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
@ -945,12 +945,12 @@ begin
|
||||
begin
|
||||
I := 0;
|
||||
domWin := browser.ContentWindow;
|
||||
target := (domWin as nsIDOMWindow2).WindowRoot;
|
||||
target := domWin.WindowRoot;
|
||||
while FDOMEvents[I].eventType <> etNone do
|
||||
begin
|
||||
with FDOMEvents[I] do
|
||||
begin
|
||||
target.AddEventListener(NewString(Name).AString, Self, true);
|
||||
target.AddEventListener(NewString(Name).AString, Self, true, false);
|
||||
end;
|
||||
Inc(I);
|
||||
end;
|
||||
@ -969,12 +969,12 @@ begin
|
||||
begin
|
||||
I := 0;
|
||||
domWin := browser.ContentWindow;
|
||||
target := (domWin as nsIDOMWindow2).WindowRoot;
|
||||
target := domWin.WindowRoot;
|
||||
while FDOMEvents[I].eventType <> etNone do
|
||||
begin
|
||||
with FDOMEvents[I] do
|
||||
begin
|
||||
target.AddEventListener(NewString(Name).AString, Self, False);
|
||||
target.AddEventListener(NewString(Name).AString, Self, False, false);
|
||||
end;
|
||||
Inc(I);
|
||||
end;
|
||||
@ -1016,7 +1016,7 @@ begin
|
||||
{$ELSE}
|
||||
{$PUSH}
|
||||
{$R-}
|
||||
browser.RemoveWebBrowserListener(weak, table.Entries[i].IID^);
|
||||
browser.RemoveWebBrowserListener(weak, table.Entries[i].IID);
|
||||
{$POP}
|
||||
{$ENDIF}
|
||||
end;
|
||||
@ -1040,7 +1040,7 @@ begin
|
||||
if Assigned(FDOMEvents) then
|
||||
begin
|
||||
str := NewString;
|
||||
aEvent.GetType(str.AString);
|
||||
str.assign(aEvent.GetType());
|
||||
eventType := str.ToString;
|
||||
I := 0;
|
||||
while FDOMEvents[I].eventType <>etNone do
|
||||
@ -1075,10 +1075,12 @@ begin
|
||||
if not (csDesigning in ComponentState) then
|
||||
begin
|
||||
end else begin
|
||||
{$IFDEF windows}
|
||||
Logo:=TResourceStream.Create(HINSTANCE,'ID_GECKO_LOGO',pchar(RT_RCDATA));
|
||||
FDesignTimeLogo:=TPortableNetworkGraphic.Create;
|
||||
FDesignTimeLogo.LoadFromStream(Logo);
|
||||
Logo.Free;
|
||||
{$ENDIF windows}
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -1295,7 +1297,7 @@ begin
|
||||
end;
|
||||
procedure TCustomGeckoBrowser.Reload;
|
||||
begin
|
||||
ReloadWithFlags(NS_IWEBNAVIGATION_LOAD_FLAGS_NONE);
|
||||
ReloadWithFlags(NSIWEBNAVIGATION_LOAD_FLAGS_NONE);
|
||||
end;
|
||||
|
||||
procedure TCustomGeckoBrowser.ReloadWithFlags(AFlags: PRUint32);
|
||||
@ -1357,7 +1359,7 @@ begin
|
||||
try
|
||||
if FInitialized then begin
|
||||
iWebSetup:=Self.FWebBrowser as nsIWebBrowserSetup;
|
||||
iWebSetup.SetProperty(NS_IWEBBROWSERSETUP_SETUP_ALLOW_JAVASCRIPT,PRInt32(not AValue));
|
||||
iWebSetup.SetProperty(NSIWEBBROWSERSETUP_SETUP_ALLOW_JAVASCRIPT,PRInt32(not AValue));
|
||||
end;
|
||||
FDisableJavaScript:=AValue;
|
||||
except
|
||||
@ -1407,8 +1409,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SetStatus(
|
||||
statusType: PRUint32;
|
||||
const status: PWideChar);
|
||||
statusType: idlulong;
|
||||
status: PWideChar);
|
||||
begin
|
||||
{$IFDEF DEBUG}
|
||||
{
|
||||
@ -1435,14 +1437,14 @@ begin
|
||||
end;
|
||||
|
||||
function TGeckoBrowserChrome.GetChromeFlags()
|
||||
: PRUint32;
|
||||
: idlulong;
|
||||
begin
|
||||
//TODO 2 -cTGeckoBrowserChrome: Chrome �t���O�̈������ǂ����悤��
|
||||
Result := NS_IWEBBROWSERCHROME_CHROME_DEFAULT;
|
||||
Result := NSIWEBBROWSERCHROME_CHROME_DEFAULT;
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SetChromeFlags(
|
||||
aChromeFlags: PRUint32);
|
||||
aChromeFlags: idlulong);
|
||||
begin
|
||||
UseParameter(aChromeFlags);
|
||||
end;
|
||||
@ -1454,8 +1456,8 @@ begin
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SizeBrowserTo(
|
||||
aCX: PRInt32;
|
||||
aCY: PRInt32);
|
||||
aCX: idllong;
|
||||
aCY: idllong);
|
||||
begin
|
||||
FBrowser.Width := aCX;
|
||||
FBrowser.Height:= aCY;
|
||||
@ -1466,7 +1468,7 @@ begin
|
||||
end;
|
||||
|
||||
function TGeckoBrowserChrome.IsWindowModal()
|
||||
: PRBool;
|
||||
: longbool;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
@ -1478,15 +1480,15 @@ begin
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SetDimensions(
|
||||
flags: PRUint32;
|
||||
x: PRInt32;
|
||||
y: PRInt32;
|
||||
cx: PRInt32;
|
||||
cy: PRInt32);
|
||||
flags: idlulong;
|
||||
x: idllong;
|
||||
y: idllong;
|
||||
cx: idllong;
|
||||
cy: idllong);
|
||||
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;
|
||||
FLAGS_POSITION = nsIEmbeddingSiteWindow_DIM_FLAGS_POSITION;
|
||||
FLAGS_SIZE_INNER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER;
|
||||
FLAGS_SIZE_OUTER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER;
|
||||
var
|
||||
bounds: TRect;
|
||||
clientrect: TRect;
|
||||
@ -1524,15 +1526,15 @@ begin
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.GetDimensions(
|
||||
flags: PRUint32;
|
||||
out x: PRInt32;
|
||||
out y: PRInt32;
|
||||
out cx: PRInt32;
|
||||
out cy: PRInt32);
|
||||
flags: idlulong;
|
||||
out x: idllong;
|
||||
out y: idllong;
|
||||
out cx: idllong;
|
||||
out cy: idllong);
|
||||
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;
|
||||
FLAGS_POSITION = NSIEMBEDDINGSITEWINDOW_DIM_FLAGS_POSITION;
|
||||
FLAGS_SIZE_INNER = NSIEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_INNER;
|
||||
FLAGS_SIZE_OUTER = NSIEMBEDDINGSITEWINDOW_DIM_FLAGS_SIZE_OUTER;
|
||||
begin
|
||||
if (flags and FLAGS_POSITION)<>0 then
|
||||
begin
|
||||
@ -1565,14 +1567,14 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserChrome.GetVisibility(): PRBool;
|
||||
function TGeckoBrowserChrome.GetVisibility(): longbool;
|
||||
begin
|
||||
// TODO 1 -cTGeckoBrowserChrome: TGeckoBrowserChrome.GetVisibility �͂ǂ����ׂ���
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SetVisibility(
|
||||
aVisibility: PRBool);
|
||||
aVisibility: longbool);
|
||||
begin
|
||||
UseParameter(aVisibility);
|
||||
//TODO 1 -cTGeckoBrowserChrome: TGeckoBrowserChrome.SetVisibility �̎���
|
||||
@ -1593,7 +1595,7 @@ begin
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.SetTitle(
|
||||
const aTitle: PWideChar);
|
||||
aTitle: PWideChar);
|
||||
begin
|
||||
FBrowser.FTitle := aTitle;
|
||||
if Assigned(FBrowser.OnTitleChange) then
|
||||
@ -1637,7 +1639,7 @@ end;
|
||||
procedure TGeckoBrowserListener.OnStateChange(
|
||||
aWebProgress: nsIWebProgress;
|
||||
aRequest: nsIRequest;
|
||||
aStateFlags: PRUint32;
|
||||
aStateFlags: idlulong;
|
||||
aStatus: nsresult);
|
||||
{$IFDEF DEBUG}
|
||||
var
|
||||
@ -1646,10 +1648,10 @@ var
|
||||
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;
|
||||
STATE_IS_DOCUMENT = NSIWEBPROGRESSLISTENER_STATE_IS_DOCUMENT;
|
||||
STATE_IS_NETWORK = NSIWEBPROGRESSLISTENER_STATE_IS_NETWORK;
|
||||
STATE_START = NSIWEBPROGRESSLISTENER_STATE_START;
|
||||
STATE_STOP = NSIWEBPROGRESSLISTENER_STATE_STOP;
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -1721,10 +1723,10 @@ end;
|
||||
procedure TGeckoBrowserListener.OnProgressChange(
|
||||
aWebProgress: nsIWebProgress;
|
||||
aRequest: nsIRequest;
|
||||
aCurSelfProgress: PRInt32;
|
||||
aMaxSelfProgress: PRInt32;
|
||||
aCurTotalProgress: PRInt32;
|
||||
aMaxTotalProgress: PRInt32);
|
||||
aCurSelfProgress: idllong;
|
||||
aMaxSelfProgress: idllong;
|
||||
aCurTotalProgress: idllong;
|
||||
aMaxTotalProgress: idllong);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -1753,7 +1755,8 @@ begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
str := NewCString;
|
||||
location.GetSpec(str.ACString);
|
||||
// This leads to crashes. Seems to be a problem in the calling-convention.
|
||||
//str.assign(location.GetSpec());
|
||||
{$IFDEF DEBUG}
|
||||
{
|
||||
OutputDebugStringA(PAnsiChar(
|
||||
@ -1769,7 +1772,7 @@ procedure TGeckoBrowserListener.OnStatusChange(
|
||||
aWebProgress: nsIWebProgress;
|
||||
aRequest: nsIRequest;
|
||||
aStatus: nsresult;
|
||||
const aMessage: PWideChar);
|
||||
aMessage: PWideChar);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -1788,7 +1791,7 @@ end;
|
||||
procedure TGeckoBrowserListener.OnSecurityChange(
|
||||
aWebProgress: nsIWebProgress;
|
||||
aRequest: nsIRequest;
|
||||
state: PRUint32);
|
||||
state: idlulong);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -1860,21 +1863,24 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserChrome.NS_GetInterface(constref uuid: TGUID; out _result): nsresult;
|
||||
procedure TGeckoBrowserChrome.NS_GetInterface(constref uuid: TGuid; out _result);
|
||||
var
|
||||
Res: nsresult;
|
||||
begin
|
||||
if IsEqualGUID(uuid, nsIDOMWindow) then
|
||||
begin
|
||||
Result:= nsresult(FBrowser.GetContentWindow.QueryInterface(uuid, _result));
|
||||
Res:= 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));
|
||||
Res := nsresult(QueryInterface(uuid, _result));
|
||||
end;
|
||||
if NS_FAILED(res) then
|
||||
raise Exception.Create('Failed to get interface');
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.OnShowContextMenu(aContextFlags: PRUint32;
|
||||
procedure TGeckoBrowserChrome.OnShowContextMenu(aContextFlags: idlulong;
|
||||
aUtils: nsIContextMenuInfo);
|
||||
(*
|
||||
const
|
||||
@ -1899,7 +1905,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TGeckoBrowserChrome.OnShowTooltip(aXCoords: PRInt32; aYCoords: PRInt32; const aTipText: PWideChar); safecall;
|
||||
procedure TGeckoBrowserChrome.OnShowTooltip(aXCoords: idllong; aYCoords: idllong; aTipText: PWideChar); safecall;
|
||||
{$IFNDEF FPC}
|
||||
var
|
||||
r:TRect;
|
||||
@ -2139,7 +2145,7 @@ begin
|
||||
str :=NewUTF8String;
|
||||
//URI
|
||||
if Self.WebNavigation <> nil then
|
||||
Self.WebNavigation.CurrentURI.GetSpec(str.AUTF8String);
|
||||
str.assign(Self.WebNavigation.CurrentURI.GetSpec);
|
||||
Result := str.ToString;
|
||||
end;
|
||||
|
||||
@ -2175,10 +2181,10 @@ begin
|
||||
UseParameter(aNewURI);
|
||||
end;
|
||||
|
||||
function TGeckoBrowserListener.OnHistoryGoBack(aBackURI: nsIURI): PRBool;
|
||||
function TGeckoBrowserListener.OnHistoryGoBack(aBackURI: nsIURI): longbool;
|
||||
var
|
||||
Handled:Boolean;
|
||||
aContinue:PRBool;
|
||||
aContinue:longbool;
|
||||
begin
|
||||
Handled:=false;
|
||||
if Assigned(FBrowser.FOnGoBack) then
|
||||
@ -2195,10 +2201,10 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserListener.OnHistoryGoForward(aForwardURI: nsIURI): PRBool;
|
||||
function TGeckoBrowserListener.OnHistoryGoForward(aForwardURI: nsIURI): longbool;
|
||||
var
|
||||
Handled:Boolean;
|
||||
aContinue:PRBool;
|
||||
aContinue:longbool;
|
||||
begin
|
||||
Handled:=false;
|
||||
if Assigned(FBrowser.FOnGoForward) then
|
||||
@ -2215,17 +2221,17 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserListener.OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: PRUint32): PRBool;
|
||||
function TGeckoBrowserListener.OnHistoryReload(aReloadURI: nsIURI; aReloadFlags: idlulong): longbool;
|
||||
begin
|
||||
UseParameter(aReloadURI);
|
||||
UseParameter(aReloadFlags);
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserListener.OnHistoryGotoIndex(aIndex: PRInt32; aGotoURI: nsIURI): PRBool;
|
||||
function TGeckoBrowserListener.OnHistoryGotoIndex(aIndex: idllong; aGotoURI: nsIURI): longbool;
|
||||
var
|
||||
Handled:Boolean;
|
||||
aContinue:PRBool;
|
||||
aContinue:longbool;
|
||||
begin
|
||||
Handled:=false;
|
||||
if Assigned(FBrowser.FOnGoToIndex) then
|
||||
@ -2243,7 +2249,7 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TGeckoBrowserListener.OnHistoryPurge(aNumEntries: PRInt32): PRBool;
|
||||
function TGeckoBrowserListener.OnHistoryPurge(aNumEntries: idllong): longbool;
|
||||
begin
|
||||
UseParameter(aNumEntries);
|
||||
Result := True;
|
||||
@ -2256,17 +2262,17 @@ begin
|
||||
FInfo := info;
|
||||
FFlags := [];
|
||||
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_LINK) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_LINK) then
|
||||
FFlags := FFlags + [cmfLink];
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_IMAGE) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_IMAGE) then
|
||||
FFlags := FFlags + [cmfImage];
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_DOCUMENT) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_DOCUMENT) then
|
||||
FFlags := FFlags + [cmfDocument];
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_TEXT) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_TEXT) then
|
||||
FFlags := FFlags + [cmfText];
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_INPUT) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_INPUT) then
|
||||
FFlags := FFlags + [cmfInput];
|
||||
if 0<>(flags and ns_IContextMenuListener2_CONTEXT_BACKGROUND_IMAGE) then
|
||||
if 0<>(flags and nsIContextMenuListener2_CONTEXT_BACKGROUND_IMAGE) then
|
||||
FFlags := FFlags + [cmfBGImage];
|
||||
end;
|
||||
|
||||
@ -2276,7 +2282,7 @@ var
|
||||
begin
|
||||
try
|
||||
str := NewString;
|
||||
FInfo.GetAssociatedLink(str.AString);
|
||||
str.assign(FInfo.GetAssociatedLink);
|
||||
Result := str.ToString;
|
||||
except
|
||||
end;
|
||||
@ -2290,7 +2296,7 @@ begin
|
||||
try
|
||||
str := NewUTF8String;
|
||||
uri := FInfo.GetImageSrc();
|
||||
uri.GetSpec(str.AUTF8String);
|
||||
str.assign(uri.GetSpec);
|
||||
Result := str.ToString;
|
||||
except
|
||||
end;
|
||||
@ -2304,7 +2310,7 @@ begin
|
||||
try
|
||||
str := NewUTF8String;
|
||||
uri := FInfo.GetBackgroundImageSrc();
|
||||
uri.GetSpec(str.AUTF8String);
|
||||
str.assign(uri.GetSpec);
|
||||
Result := str.ToString;
|
||||
except
|
||||
end;
|
||||
|
@ -55,7 +55,7 @@ interface
|
||||
uses
|
||||
{$IFNDEF LCL} Windows, Messages, {$ELSE} LclIntf, LResources, {$ENDIF}
|
||||
SysUtils, Variants, Classes, Graphics, Controls, Forms,
|
||||
Dialogs, CallbackInterfaces, nsXPCOM, nsTypes, nsXPCOM_std19
|
||||
Dialogs, CallbackInterfaces, nsXPCOM, nsTypes, ctypes
|
||||
{$IFDEF LCLCarbon}, CarbonPrivate {$ENDIF}
|
||||
{$IFDEF LCLGtk2}, gtk2 {$ENDIF}
|
||||
{$IFDEF LCLCocoa}, CocoaAll, CocoaUtils, CocoaPrivate {$ENDIF};
|
||||
@ -68,14 +68,12 @@ type
|
||||
//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);
|
||||
@ -87,36 +85,35 @@ type
|
||||
FChromeFlags: Longword;
|
||||
|
||||
// nsIWebBrowserChrome
|
||||
procedure SetStatus(statusType: PRUint32; const status: PWideChar); safecall;
|
||||
procedure SetStatus(statusType: idlulong; status: PWideChar); safecall;
|
||||
function GetWebBrowser(): nsIWebBrowser; safecall;
|
||||
procedure SetWebBrowser(aWebBrowser: nsIWebBrowser); safecall;
|
||||
function GetChromeFlags: PRUint32; safecall;
|
||||
procedure SetChromeFlags(aChromeFlags: PRUint32); safecall;
|
||||
function GetChromeFlags: idlulong; safecall;
|
||||
procedure SetChromeFlags(aChromeFlags: idlulong); safecall;
|
||||
procedure DestroyBrowserWindow(); safecall;
|
||||
procedure SizeBrowserTo(aCX: PRInt32; aCY: PRInt32); safecall;
|
||||
procedure SizeBrowserTo(aCX: idllong; aCY: idllong); safecall;
|
||||
procedure ShowAsModal(); safecall;
|
||||
function IsWindowModal(): PRBool; safecall;
|
||||
function IsWindowModal(): longbool; 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 SetDimensions(flags: idlulong; x, y, cx, cy: idllong); safecall;
|
||||
procedure GetDimensions(flags: idlulong; out x, y, cx, cy: idllong); safecall;
|
||||
procedure SetFocus; reintroduce; safecall;
|
||||
function GetVisibility(): PRBool; safecall;
|
||||
procedure SetVisibility(Value: PRBool); safecall;
|
||||
function GetVisibility(): longbool; safecall;
|
||||
procedure SetVisibility(Value: longbool); safecall;
|
||||
function GetTitle(): PWideChar; safecall;
|
||||
procedure SetTitle(const Value: PWideChar); safecall;
|
||||
procedure SetTitle(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 OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; aStatus: nsresult); safecall;
|
||||
procedure OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong); safecall;
|
||||
procedure OnLocationChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; location: nsIURI); safecall;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar); safecall;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32); safecall;
|
||||
procedure OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar); safecall;
|
||||
procedure OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong); 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;
|
||||
procedure QueryReferent(constref uuid: TGuid; out result); safecall;
|
||||
// for nsISupportsWeakReference
|
||||
function GetWeakReference(): nsIWeakReference; safecall;
|
||||
|
||||
@ -269,7 +266,7 @@ begin
|
||||
Result := Self;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.SetStatus(statusType: Longword; const status: PWideChar);
|
||||
procedure TGeckoChromeForm.SetStatus(statusType: idlulong; status: PWideChar);
|
||||
begin
|
||||
UseParameter(statusType);
|
||||
end;
|
||||
@ -284,12 +281,12 @@ begin
|
||||
UseParameter(aWebBrowser);
|
||||
end;
|
||||
|
||||
function TGeckoChromeForm.GetChromeFlags: PRUint32;
|
||||
function TGeckoChromeForm.GetChromeFlags: idlulong;
|
||||
begin
|
||||
Result := FChromeFlags;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.SetChromeFlags(aChromeFlags: Longword);
|
||||
procedure TGeckoChromeForm.SetChromeFlags(aChromeFlags: idlulong);
|
||||
begin
|
||||
FChromeFlags := aChromeFlags;
|
||||
UpdateChrome;
|
||||
@ -300,7 +297,7 @@ begin
|
||||
Close;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.SizeBrowserTo(aCX, aCY: Integer);
|
||||
procedure TGeckoChromeForm.SizeBrowserTo(aCX, aCY: idllong);
|
||||
var
|
||||
dx, dy: Integer;
|
||||
begin
|
||||
@ -315,7 +312,7 @@ begin
|
||||
ShowModal;
|
||||
end;
|
||||
|
||||
function TGeckoChromeForm.IsWindowModal: PRBool;
|
||||
function TGeckoChromeForm.IsWindowModal: longbool;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
@ -326,11 +323,11 @@ begin
|
||||
ModalResult := 1;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.SetDimensions(flags: Longword; x, y, cx, cy: Longint);
|
||||
procedure TGeckoChromeForm.SetDimensions(flags: idlulong; x, y, cx, cy: idllong);
|
||||
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;
|
||||
FLAGS_POSITION = NSIEMBEDDINGSITEWINDOW_DIM_FLAGS_POSITION;
|
||||
FLAGS_SIZE_INNER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER;
|
||||
FLAGS_SIZE_OUTER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER;
|
||||
var
|
||||
dx, dy: Integer;
|
||||
begin
|
||||
@ -361,11 +358,11 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.GetDimensions(flags: Longword; out x, y, cx, cy: Longint);
|
||||
procedure TGeckoChromeForm.GetDimensions(flags: idlulong; out x, y, cx, cy: idllong);
|
||||
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;
|
||||
FLAGS_POSITION = nsIEmbeddingSiteWindow_DIM_FLAGS_POSITION;
|
||||
FLAGS_SIZE_INNER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_INNER;
|
||||
FLAGS_SIZE_OUTER = nsIEmbeddingSiteWindow_DIM_FLAGS_SIZE_OUTER;
|
||||
begin
|
||||
if (flags and FLAGS_POSITION)<>0 then
|
||||
begin
|
||||
@ -389,7 +386,7 @@ procedure TGeckoChromeForm.SetFocus();
|
||||
begin
|
||||
end;
|
||||
|
||||
function TGeckoChromeForm.GetVisibility: PRBool;
|
||||
function TGeckoChromeForm.GetVisibility: longbool;
|
||||
begin
|
||||
Result := True;
|
||||
end;
|
||||
@ -405,7 +402,7 @@ begin
|
||||
Result := nil;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.SetTitle(const Value: PWideChar);
|
||||
procedure TGeckoChromeForm.SetTitle(Value: PWideChar);
|
||||
begin
|
||||
Caption := WideString(Value);
|
||||
end;
|
||||
@ -419,19 +416,19 @@ begin
|
||||
{$POP}
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: PRUint32; aStatus: nsresult);
|
||||
procedure TGeckoChromeForm.OnStateChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStateFlags: idlulong; 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
|
||||
if ((aStateFlags and NSIWEBPROGRESSLISTENER_STATE_STOP)<>0) and
|
||||
((aStateFlags and NSIWEBPROGRESSLISTENER_STATE_IS_DOCUMENT)<>0) then
|
||||
begin
|
||||
ContentFinishedLoading();
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: PRInt32; aMaxSelfProgress: PRInt32; aCurTotalProgress: PRInt32; aMaxTotalProgress: PRInt32);
|
||||
procedure TGeckoChromeForm.OnProgressChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aCurSelfProgress: idllong; aMaxSelfProgress: idllong; aCurTotalProgress: idllong; aMaxTotalProgress: idllong);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -448,14 +445,14 @@ begin
|
||||
UseParameter(location);
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; const aMessage: PWideChar);
|
||||
procedure TGeckoChromeForm.OnStatusChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; aStatus: nsresult; aMessage: PWideChar);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
UseParameter(aStatus);
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: PRUint32);
|
||||
procedure TGeckoChromeForm.OnSecurityChange(aWebProgress: nsIWebProgress; aRequest: nsIRequest; state: idlulong);
|
||||
begin
|
||||
UseParameter(aWebProgress);
|
||||
UseParameter(aRequest);
|
||||
@ -476,7 +473,7 @@ begin
|
||||
Result := NS_ERROR_NOT_INITIALIZED;
|
||||
end else
|
||||
begin
|
||||
// FPC port: Result is PRUInt32, but QueryInterface returns Longint,
|
||||
// FPC port: Result is idlulong, but QueryInterface returns Longint,
|
||||
// so cast to nsresult to prevent range check error.
|
||||
try
|
||||
Result := nsresult(QueryInterface(uuid, Intf));
|
||||
@ -487,11 +484,11 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TGeckoChromeForm.QueryReferent(constref IID: TGUID; out Obj);
|
||||
procedure TGeckoChromeForm.QueryReferent(constref uuid: TGuid; out result);
|
||||
var
|
||||
rv: nsresult;
|
||||
begin
|
||||
rv := QueryInterface(IID, Obj);
|
||||
rv := QueryInterface(uuid, result);
|
||||
if NS_FAILED(rv) then
|
||||
raise EIntfCastError.Create('QueryReferent');
|
||||
end;
|
||||
|
@ -5,7 +5,7 @@ unit GeckoPromptService;
|
||||
interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils, nsXPCOM, nsTypes;
|
||||
Classes, SysUtils, nsXPCOM, nsTypes, ctypes;
|
||||
|
||||
const
|
||||
NS_PROMPT_SERVICE_CID: TGUID = '{a2112d6a-0e28-421f-b46a-25c0b308cbd0}';
|
||||
@ -32,25 +32,25 @@ type
|
||||
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;
|
||||
procedure Alert(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar); safecall;
|
||||
procedure AlertCheck(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool); safecall;
|
||||
function Confirm(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar): longbool; safecall;
|
||||
function ConfirmCheck(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool): longbool; safecall;
|
||||
function ConfirmEx(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; aButtonFlags: idlulong; aButton0Title: PWideChar; aButton1Title: PWideChar; aButton2Title: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool): PRInt32; safecall;
|
||||
function Prompt(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; var aValue: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool): longbool; safecall;
|
||||
function PromptUsernameAndPassword(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; var aUsername: PWideChar; var aPassword: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool): longbool; safecall;
|
||||
function PromptPassword(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; var aPassword: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool): longbool; safecall;
|
||||
function Select(aParent: nsIDOMWindow; aDialogTitle: PWideChar; aText: PWideChar; aCount: PRUint32; aSelectList: PWideChar; out aOutSelection: idllong): longbool; 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;
|
||||
function PromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; level: PRUint32; authInfo: nsIAuthInformation; checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall;
|
||||
function AsyncPromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel; aCallback: nsIAuthPromptCallback; aContext: nsISupports; level: PRUint32; authInfo: nsIAuthInformation; 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;
|
||||
procedure CreateInstance(aOuter: nsISupports; iid: nsIIDRef; out result); safecall;
|
||||
procedure LockFactory(lock: longbool); safecall;
|
||||
end;
|
||||
|
||||
TCustomGeckoPrompt=class(TComponent)
|
||||
@ -184,51 +184,51 @@ begin
|
||||
if not Assigned(GeckoPromptServiceFactory) then begin
|
||||
NS_GetComponentRegistrar(ComponentRegistrar);
|
||||
GeckoPromptServiceFactory:=IPromptServiceFactory.Create;
|
||||
ComponentRegistrar.RegisterFactory(NS_PROMPT_SERVICE_CID,'Prompt Service',nil,GeckoPromptServiceFactory);
|
||||
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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar); safecall;
|
||||
begin
|
||||
Unimplemented;
|
||||
end;
|
||||
|
||||
procedure IPromptService.AlertCheck(aParent: nsIDOMWindow;
|
||||
const aDialogTitle: PWideChar; const aText: PWideChar;
|
||||
const aCheckMsg: PWideChar; out aCheckState: PRBool); safecall;
|
||||
aDialogTitle: PWideChar; aText: PWideChar;
|
||||
aCheckMsg: PWideChar; var aCheckState: longbool); safecall;
|
||||
begin
|
||||
Unimplemented;
|
||||
end;
|
||||
|
||||
function IPromptService.Confirm(aParent: nsIDOMWindow;
|
||||
const aDialogTitle: PWideChar; const aText: PWideChar): PRBool; safecall;
|
||||
aDialogTitle: PWideChar; aText: PWideChar): longbool; safecall;
|
||||
begin
|
||||
Result:=Unimplemented;
|
||||
end;
|
||||
|
||||
function IPromptService.ConfirmCheck(aParent: nsIDOMWindow;
|
||||
const aDialogTitle: PWideChar; const aText: PWideChar;
|
||||
const aCheckMsg: PWideChar; out aCheckState: PRBool): PRBool; safecall;
|
||||
aDialogTitle: PWideChar; aText: PWideChar;
|
||||
aCheckMsg: PWideChar; var aCheckState: longbool): longbool; 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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar;
|
||||
aButtonFlags: idlulong; aButton0Title: PWideChar;
|
||||
aButton1Title: PWideChar; aButton2Title: PWideChar;
|
||||
aCheckMsg: PWideChar; var aCheckState: longbool): 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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar; var aValue: PWideChar;
|
||||
aCheckMsg: PWideChar; var aCheckState: longbool): longbool; safecall;
|
||||
var
|
||||
ThePrompt: TGeckoPrompt;
|
||||
Gecko: TGeckoBrowser;
|
||||
@ -260,31 +260,31 @@ begin
|
||||
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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar; var
|
||||
aUsername: PWideChar; var aPassword: PWideChar; aCheckMsg: PWideChar;
|
||||
var aCheckState: longbool): longbool; 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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar; var
|
||||
aPassword: PWideChar; aCheckMsg: PWideChar; var aCheckState: longbool
|
||||
): longbool; 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;
|
||||
aDialogTitle: PWideChar; aText: PWideChar; aCount: PRUint32;
|
||||
aSelectList: PWideChar; out aOutSelection: idllong): longbool; safecall;
|
||||
begin
|
||||
Result:=Unimplemented;
|
||||
end;
|
||||
|
||||
function IPromptService.PromptAuth(aParent: nsIDOMWindow; aChannel: nsIChannel;
|
||||
level: PRUint32; authInfo: nsIAuthInformation;
|
||||
const checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall;
|
||||
checkboxLabel: PWideChar; var checkValue: LongBool): LongBool; safecall;
|
||||
var
|
||||
ThePrompt: TGeckoPrompt;
|
||||
Gecko: TGeckoBrowser;
|
||||
@ -307,14 +307,14 @@ begin
|
||||
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
|
||||
Flags := authInfo.GetFlags();
|
||||
if (Flags and not(NSIAUTHINFORMATION_AUTH_HOST))=0 then begin
|
||||
UserName:=NewString;
|
||||
Password:=NewString;
|
||||
Realm:=NewString;
|
||||
authInfo.GetUsername(UserName.AString);
|
||||
authInfo.GetPassword(Password.AString);
|
||||
authInfo.GetRealm(Realm.AString);
|
||||
//authInfo.GetUsername(UserName.AString);
|
||||
//authInfo.GetPassword(Password.AString);
|
||||
//authInfo.GetRealm(Realm.AString);
|
||||
pUserName:=UTF8Encode(UserName.ToString);
|
||||
pPassword:=UTF8Encode(Password.ToString);
|
||||
CheckBoxValue:=checkValue;
|
||||
@ -324,8 +324,8 @@ begin
|
||||
UserName.Assign(UTF8Decode(pUserName));
|
||||
Password.Assign(UTF8Decode(pPassword));
|
||||
checkValue:=CheckBoxValue;
|
||||
authInfo.SetUsername(UserName.AString);
|
||||
authInfo.SetPassword(Password.AString);
|
||||
//authInfo.SetUsername(UserName.AString);
|
||||
//authInfo.SetPassword(Password.AString);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
@ -334,22 +334,21 @@ end;
|
||||
function IPromptService.AsyncPromptAuth(aParent: nsIDOMWindow;
|
||||
aChannel: nsIChannel; aCallback: nsIAuthPromptCallback;
|
||||
aContext: nsISupports; level: PRUint32; authInfo: nsIAuthInformation;
|
||||
const checkboxLabel: PWideChar; var checkValue: LongBool): nsICancelable; safecall;
|
||||
checkboxLabel: PWideChar; var checkValue: LongBool): nsICancelable; safecall;
|
||||
begin
|
||||
Result:=nil;
|
||||
end;
|
||||
|
||||
{ IPromptServiceFactory }
|
||||
|
||||
procedure IPromptServiceFactory.CreateInstance(aOuter: nsISupports; constref
|
||||
iid: TGUID; out _result); safecall;
|
||||
procedure IPromptServiceFactory.CreateInstance(aOuter: nsISupports; iid: nsIIDRef; out result); safecall;
|
||||
begin
|
||||
if not Assigned(ThisGeckoPromptService) then
|
||||
ThisGeckoPromptService:=IPromptService.Create;
|
||||
ThisGeckoPromptService.QueryInterface(IID,_result);
|
||||
ThisGeckoPromptService.QueryInterface(IID^,result);
|
||||
end;
|
||||
|
||||
procedure IPromptServiceFactory.LockFactory(lock: PRBool); safecall;
|
||||
procedure IPromptServiceFactory.LockFactory(lock: longbool); safecall;
|
||||
begin
|
||||
//Unused by Gecko but keep to be ABI compatible in Win32.
|
||||
end;
|
||||
|
67
components/geckoport/version2/domstubs.inc
Normal file
67
components/geckoport/version2/domstubs.inc
Normal file
@ -0,0 +1,67 @@
|
||||
type
|
||||
DOMTimeMilliSec = culonglong;
|
||||
|
||||
type
|
||||
// nsIDOMAttr = interface;
|
||||
// nsIDOMCDATASection = interface;
|
||||
// nsIDOMCharacterData = interface;
|
||||
// nsIDOMComment = interface;
|
||||
// nsIDOMDOMImplementation = interface;
|
||||
// nsIDOMDocument = interface;
|
||||
// nsIDOMDocumentFragment = interface;
|
||||
// nsIDOMDocumentType = interface;
|
||||
// nsIDOMElement = interface;
|
||||
// nsIDOMNSElement = interface;
|
||||
// nsIDOMNamedNodeMap = interface;
|
||||
// nsIDOMNode = interface;
|
||||
// nsIDOMNodeList = interface;
|
||||
// nsIDOMProcessingInstruction = interface;
|
||||
// nsIDOMText = interface;
|
||||
// nsIDOMDOMStringList = interface;
|
||||
// nsIDOMDOMTokenList = interface;
|
||||
// nsIDOMClientRect = interface;
|
||||
// nsIDOMClientRectList = interface;
|
||||
// DOMException = interface;
|
||||
// RangeException = interface;
|
||||
// nsIDOMStyleSheetList = interface;
|
||||
// nsIDOMLinkStyle = interface;
|
||||
// nsIDOMStyleSheet = interface;
|
||||
// nsIDOMMediaList = interface;
|
||||
// nsIDOMWindow = interface;
|
||||
// nsIDOMWindowCollection = interface;
|
||||
// nsIDOMPlugin = interface;
|
||||
// nsIDOMPluginArray = interface;
|
||||
// nsIDOMMimeType = interface;
|
||||
// nsIDOMMimeTypeArray = interface;
|
||||
// nsIDOMBarProp = interface;
|
||||
// nsIDOMNavigator = interface;
|
||||
// nsIDOMScreen = interface;
|
||||
// nsIDOMHistory = interface;
|
||||
// nsIDOMEvent = interface;
|
||||
// nsIDOMEventTarget = interface;
|
||||
// nsIDOMEventListener = interface;
|
||||
nsIDOMHTMLElement = interface end;
|
||||
nsIDOMHTMLFormElement = interface end;
|
||||
nsIDOMHTMLCollection = interface end;
|
||||
nsIDOMHTMLHeadElement = interface end;
|
||||
nsIDOMCSSValue = interface end;
|
||||
nsIDOMCSSValueList = interface end;
|
||||
nsIDOMCSSPrimitiveValue = interface end;
|
||||
nsIDOMCSSRule = interface end;
|
||||
nsIDOMCSSRuleList = interface end;
|
||||
nsIDOMMozCSSKeyframeRule = interface end;
|
||||
nsIDOMCSSStyleSheet = interface end;
|
||||
nsIDOMCSSStyleDeclaration = interface end;
|
||||
nsIDOMCounter = interface end;
|
||||
nsIDOMRect = interface end;
|
||||
nsIDOMRGBColor = interface end;
|
||||
nsIDOMCSSStyleRule = interface end;
|
||||
nsIDOMCSSStyleRuleCollection = interface end;
|
||||
nsIDOMHTMLTableCaptionElement = interface end;
|
||||
nsIDOMHTMLTableSectionElement = interface end;
|
||||
nsIDOMRange = interface end;
|
||||
nsIDOMCRMFObject = interface end;
|
||||
// nsIDOMCrypto = interface;
|
||||
// nsIDOMPkcs11 = interface;
|
||||
// nsIDOMFontFace = interface;
|
||||
// nsIDOMFontFaceList = interface;
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_safe17;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_safe18;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_safe19;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_std17;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_std18;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsWriteSegmentFun = function (aInStream: nsIInputStream_std19;
|
||||
aClosure: Pointer;
|
||||
const aFromSegment: Pointer;
|
||||
aToOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aWriteCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe17;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe18;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_safe19;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_std17;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_std18;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,7 +0,0 @@
|
||||
nsReadSegmentFun = function (aOutStream: nsIOutputStream_std19;
|
||||
aClosure: Pointer;
|
||||
aToSegment: Pointer;
|
||||
aFromOffset: PRUint32;
|
||||
aCount: PRUint32;
|
||||
out aReadCount: PRUint32): nsresult; extdecl;
|
||||
|
@ -1,197 +0,0 @@
|
||||
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
|
@ -1,200 +0,0 @@
|
||||
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
|
@ -1,203 +0,0 @@
|
||||
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
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -7,7 +7,7 @@ program fpmake;
|
||||
{$ENDIF}
|
||||
{$ENDIF}
|
||||
|
||||
uses sysutils, lazmkunit, fpmkunit;
|
||||
uses fpmkunit, sysutils, lazmkunit;
|
||||
|
||||
Var
|
||||
P : TLazPackage;
|
||||
@ -29,6 +29,9 @@ begin
|
||||
P.Options.add('-Sm');
|
||||
P.Options.add('-Sd');
|
||||
|
||||
P.IncludePath.Add('gecko9');
|
||||
P.IncludePath.Add('gecko10');
|
||||
|
||||
P.Dependencies.Add('lazmkunit');
|
||||
P.Dependencies.Add('fcl-registry',AllWindowsOSes);
|
||||
// Due to a bug in fpcmake, the dependencies of fcl-registry aren't processed
|
||||
@ -95,7 +98,7 @@ begin
|
||||
Dependencies.AddUnit('nsXPCOMGlue');
|
||||
Dependencies.AddUnit('nsTypes');
|
||||
end;
|
||||
|
||||
{
|
||||
with P.Targets.AddUnit('nsEnumerators.pas') do
|
||||
begin
|
||||
Dependencies.AddUnit('nsTypes');
|
||||
@ -108,7 +111,7 @@ begin
|
||||
Dependencies.AddUnit('nsTypes');
|
||||
Dependencies.AddUnit('nsGeckoStrings');
|
||||
end;
|
||||
|
||||
}
|
||||
with P.Targets.AddUnit('nsNetUtil.pas') do
|
||||
begin
|
||||
Dependencies.AddUnit('nsTypes');
|
||||
@ -145,13 +148,6 @@ begin
|
||||
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');
|
||||
@ -170,6 +166,7 @@ begin
|
||||
P.LazPackageFiles.AddLazFile('Components/CallbackInterfaces.pas');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoBrowser.pas');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoBrowser.lrs');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoPromptService.pas');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.pas');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.lfm');
|
||||
P.LazPackageFiles.AddLazFile('Components/GeckoChromeWindow.lrs');
|
||||
|
91
components/geckoport/version2/gecko10/forwarddecl.inc
Normal file
91
components/geckoport/version2/gecko10/forwarddecl.inc
Normal file
@ -0,0 +1,91 @@
|
||||
type
|
||||
imgIContainer = interface;
|
||||
imgIDecoderObserver = interface;
|
||||
imgIRequest = interface;
|
||||
nsIAnimationFrameListener = interface;
|
||||
nsIAuthInformation = interface;
|
||||
nsIAuthPrompt = interface;
|
||||
nsIAuthPromptCallback = interface;
|
||||
nsICancelable = interface;
|
||||
nsIChannel = interface;
|
||||
nsICommandParams = interface;
|
||||
nsIComponentManager = interface;
|
||||
nsIContent = interface;
|
||||
nsIContentSecurityPolicy = interface;
|
||||
nsIContentViewer = interface;
|
||||
nsIContextMenuInfo = interface;
|
||||
nsIController = interface;
|
||||
nsIControllers = interface;
|
||||
nsIDocShell = interface;
|
||||
nsIDocShellLoadInfo = interface;
|
||||
nsIDocShellTreeItem = interface;
|
||||
nsIDocShellTreeOwner = interface;
|
||||
nsIDocumentCharsetInfo = interface;
|
||||
nsIDOMBlob = interface;
|
||||
nsIDOMDocument = interface;
|
||||
nsIDOMDOMStringList = interface;
|
||||
nsIDOMElement = interface;
|
||||
nsIDOMEvent = interface;
|
||||
nsIDOMEventListener = interface;
|
||||
nsIDOMEventTarget = interface;
|
||||
nsIDOMFileError = interface;
|
||||
nsIDOMLocation = interface;
|
||||
nsIDOMMediaQueryList = interface;
|
||||
nsIDOMMediaQueryListListener = interface;
|
||||
nsIDOMNode = interface;
|
||||
nsIDOMNodeFilter = interface;
|
||||
nsIDOMNodeIterator = interface;
|
||||
nsIDOMOfflineResourceList = interface;
|
||||
nsIDOMPerformance = interface;
|
||||
nsIDOMPerformanceNavigation = interface;
|
||||
nsIDOMPerformanceTiming = interface;
|
||||
nsIDOMRange = interface;
|
||||
nsIDOMStorage = interface;
|
||||
nsIDOMStorageItem = interface;
|
||||
nsIDOMStorageList = interface;
|
||||
nsIDOMStorageObsolete = interface;
|
||||
nsIDOMTreeWalker = interface;
|
||||
nsIDOMUserDataHandler = interface;
|
||||
nsIDOMWindow = interface;
|
||||
nsIDOMXULCommandDispatcher = interface;
|
||||
nsIFactory = interface;
|
||||
nsIFile = interface;
|
||||
nsIHistoryEntry = interface;
|
||||
nsIHttpChannel = interface;
|
||||
nsIHttpHeaderVisitor = interface;
|
||||
nsIInputStream = interface;
|
||||
nsIInterfaceRequestor = interface;
|
||||
nsILayoutHistoryState = interface;
|
||||
nsILoadGroup = interface;
|
||||
nsILocalFile = interface;
|
||||
nsIObjectInputStream = interface;
|
||||
nsIObjectOutputStream = interface;
|
||||
nsIObserver = interface;
|
||||
nsIOutputStream = interface;
|
||||
nsIPrincipal = interface;
|
||||
nsIPrintSession = interface;
|
||||
nsIPrintSettings = interface;
|
||||
nsIPrompt = interface;
|
||||
nsIProtocolHandler = interface;
|
||||
nsIRequest = interface;
|
||||
nsIRequestObserver = interface;
|
||||
nsIScriptContext = interface;
|
||||
nsISecureBrowserUI = interface;
|
||||
nsISelection = interface;
|
||||
nsISHEntry = interface;
|
||||
nsISHistory = interface;
|
||||
nsISHistoryListener = interface;
|
||||
nsISimpleEnumerator = interface;
|
||||
nsIStreamListener = interface;
|
||||
nsIURI = interface;
|
||||
nsIURIContentListener = interface;
|
||||
nsIVariant = interface;
|
||||
nsIWeakReference = interface;
|
||||
nsIWebBrowser = interface;
|
||||
nsIWebBrowserChrome = interface;
|
||||
nsIWebBrowserPrint = interface;
|
||||
nsIWebNavigation = interface;
|
||||
nsIWebProgress = interface;
|
||||
nsIWebProgressListener = interface;
|
||||
nsIWindowCreator = interface;
|
||||
nsPIDOMWindow = interface;
|
3
components/geckoport/version2/gecko10/idlctypes.cfg
Normal file
3
components/geckoport/version2/gecko10/idlctypes.cfg
Normal file
@ -0,0 +1,3 @@
|
||||
long
|
||||
short
|
||||
float
|
4
components/geckoport/version2/gecko10/idltypemap.cfg
Normal file
4
components/geckoport/version2/gecko10/idltypemap.cfg
Normal file
@ -0,0 +1,4 @@
|
||||
wstring=PWideChar
|
||||
string=PAnsiChar
|
||||
boolean=longbool
|
||||
FILE=PFILE
|
44
components/geckoport/version2/gecko10/imgicontainer.inc
Normal file
44
components/geckoport/version2/gecko10/imgicontainer.inc
Normal file
@ -0,0 +1,44 @@
|
||||
type
|
||||
|
||||
imgIContainer = interface(nsISupports)
|
||||
['{239dfa70-2285-4d63-99cd-e9b7ff9555c7}']
|
||||
function Getwidth(): PRInt32; safecall;
|
||||
property width : PRInt32 read Getwidth;
|
||||
function Getheight(): PRInt32; safecall;
|
||||
property height : PRInt32 read Getheight;
|
||||
function Gettype(): idlushort; safecall;
|
||||
property atype : idlushort read Gettype;
|
||||
{ function GetType() : PRUint16; safecall;
|
||||
function Getanimated(): longbool; safecall;
|
||||
property animated : longbool read Getanimated;
|
||||
function GetcurrentFrameIsOpaque(): longbool; safecall;
|
||||
property currentFrameIsOpaque : longbool read GetcurrentFrameIsOpaque;
|
||||
function getFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxASurface; safecall;
|
||||
function copyFrame(aWhichFrame: PRUint32; aFlags: PRUint32) : gfxImageSurface; safecall;
|
||||
function extractFrame(aWhichFrame: PRUint32; aRect: nsIntRect; aFlags: PRUint32) : imgIContainer; safecall;
|
||||
procedure draw(aContext: gfxContext; aFilter: gfxGraphicsFilter; aUserSpaceToImageSpace: gfxMatrix; aFill: gfxRect; aSubimage: nsIntRect; aViewportSize: nsIntSize; aFlags: PRUint32); safecall;
|
||||
function GetRootLayoutFrame() : nsIFrame; safecall;
|
||||
procedure requestDecode(); safecall;
|
||||
procedure lockImage(); safecall;
|
||||
procedure unlockImage(); safecall;
|
||||
function GetanimationMode(): idlushort; safecall;
|
||||
procedure SetanimationMode(aanimationMode: idlushort); safecall;
|
||||
property animationMode : idlushort read GetanimationMode write SetanimationMode;
|
||||
procedure resetAnimation(); safecall;
|
||||
}
|
||||
end;
|
||||
|
||||
const
|
||||
imgIContainer_TYPE_RASTER=0;
|
||||
imgIContainer_TYPE_VECTOR=1;
|
||||
imgIContainer_FLAG_NONE=$0;
|
||||
imgIContainer_FLAG_SYNC_DECODE=$1;
|
||||
imgIContainer_FLAG_DECODE_NO_PREMULTIPLY_ALPHA=$2;
|
||||
imgIContainer_FLAG_DECODE_NO_COLORSPACE_CONVERSION=$4;
|
||||
imgIContainer_FRAME_FIRST=0;
|
||||
imgIContainer_FRAME_CURRENT=1;
|
||||
imgIContainer_FRAME_MAX_VALUE=1;
|
||||
imgIContainer_kNormalAnimMode=0;
|
||||
imgIContainer_kDontAnimMode=1;
|
||||
imgIContainer_kLoopOnceAnimMode=2;
|
||||
|
@ -0,0 +1,8 @@
|
||||
type
|
||||
|
||||
imgIContainerObserver = interface(nsISupports)
|
||||
['{aa2068c1-6b91-4f52-8603-487b14ac5f04}']
|
||||
procedure frameChanged(aContainer: imgIContainer; aDirtyRect: nsIntRect); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,17 @@
|
||||
type
|
||||
|
||||
imgIDecoderObserver = interface(imgIContainerObserver)
|
||||
['{9f6bfbee-9e04-43a0-b8f6-2159973efec8}']
|
||||
procedure onStartRequest(aRequest: imgIRequest); safecall;
|
||||
procedure onStartDecode(aRequest: imgIRequest); safecall;
|
||||
procedure onStartContainer(aRequest: imgIRequest; aContainer: imgIContainer); safecall;
|
||||
procedure onStartFrame(aRequest: imgIRequest; aFrame: idlulong); safecall;
|
||||
procedure onDataAvailable(aRequest: imgIRequest; aCurrentFrame: longbool; aRect: nsIntRect); safecall;
|
||||
procedure onStopFrame(aRequest: imgIRequest; aFrame: idlulong); safecall;
|
||||
procedure onStopContainer(aRequest: imgIRequest; aContainer: imgIContainer); safecall;
|
||||
procedure onStopDecode(aRequest: imgIRequest; status: nsresult; statusArg: PWideChar); safecall;
|
||||
procedure onStopRequest(aRequest: imgIRequest; aIsLastPart: longbool); safecall;
|
||||
procedure onDiscard(aRequest: imgIRequest); safecall;
|
||||
|
||||
end;
|
||||
|
41
components/geckoport/version2/gecko10/imgirequest.inc
Normal file
41
components/geckoport/version2/gecko10/imgirequest.inc
Normal file
@ -0,0 +1,41 @@
|
||||
type
|
||||
|
||||
imgIRequest = interface(nsIRequest)
|
||||
['{c3bf4e2a-f64b-4ac1-a84e-18631b1802ab}']
|
||||
function Getimage(): imgIContainer; safecall;
|
||||
property image : imgIContainer read Getimage;
|
||||
function GetimageStatus(): idlulong; safecall;
|
||||
property imageStatus : idlulong read GetimageStatus;
|
||||
function GetURI(): nsIURI; safecall;
|
||||
property URI : nsIURI read GetURI;
|
||||
function GetdecoderObserver(): imgIDecoderObserver; safecall;
|
||||
property decoderObserver : imgIDecoderObserver read GetdecoderObserver;
|
||||
function GetmimeType(): PAnsiChar; safecall;
|
||||
property mimeType : PAnsiChar read GetmimeType;
|
||||
function clone(aObserver: imgIDecoderObserver) : imgIRequest; safecall;
|
||||
function GetimagePrincipal(): nsIPrincipal; safecall;
|
||||
property imagePrincipal : nsIPrincipal read GetimagePrincipal;
|
||||
function GetCORSMode(): idllong; safecall;
|
||||
property CORSMode : idllong read GetCORSMode;
|
||||
procedure cancelAndForgetObserver(aStatus: nsresult); safecall;
|
||||
procedure requestDecode(); safecall;
|
||||
procedure lockImage(); safecall;
|
||||
procedure unlockImage(); safecall;
|
||||
function getStaticRequest() : imgIRequest; safecall;
|
||||
procedure incrementAnimationConsumers(); safecall;
|
||||
procedure decrementAnimationConsumers(); safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
imgIRequest_STATUS_NONE=$0;
|
||||
imgIRequest_STATUS_SIZE_AVAILABLE=$1;
|
||||
imgIRequest_STATUS_LOAD_PARTIAL=$2;
|
||||
imgIRequest_STATUS_LOAD_COMPLETE=$4;
|
||||
imgIRequest_STATUS_ERROR=$8;
|
||||
imgIRequest_STATUS_FRAME_COMPLETE=$10;
|
||||
imgIRequest_STATUS_DECODE_COMPLETE=$20;
|
||||
imgIRequest_CORS_NONE=1;
|
||||
imgIRequest_CORS_ANONYMOUS=2;
|
||||
imgIRequest_CORS_USE_CREDENTIALS=3;
|
||||
|
@ -0,0 +1,8 @@
|
||||
type
|
||||
|
||||
nsIAnimationFrameListener = interface(nsISupports)
|
||||
['{ba240e38-c15a-4fb2-802a-8a48f09331bd}']
|
||||
procedure onBeforePaint(timeStamp: DOMTimeStamp); safecall;
|
||||
|
||||
end;
|
||||
|
12
components/geckoport/version2/gecko10/nsiatom.inc
Normal file
12
components/geckoport/version2/gecko10/nsiatom.inc
Normal file
@ -0,0 +1,12 @@
|
||||
type
|
||||
|
||||
nsIAtom = interface(nsISupports)
|
||||
['{1f341018-521a-49de-b806-1bef5c9a00b0}']
|
||||
function toString() : AString; safecall;
|
||||
function toUTF8String() : AUTF8String; safecall;
|
||||
function equals(aString: AString) : longbool; safecall;
|
||||
function equalsUTF8(aString: AUTF8String) : longbool; safecall;
|
||||
function isStaticAtom() : longbool; safecall;
|
||||
|
||||
end;
|
||||
|
29
components/geckoport/version2/gecko10/nsiauthinformation.inc
Normal file
29
components/geckoport/version2/gecko10/nsiauthinformation.inc
Normal file
@ -0,0 +1,29 @@
|
||||
type
|
||||
|
||||
nsIAuthInformation = interface(nsISupports)
|
||||
['{0d73639c-2a92-4518-9f92-28f71fea5f20}']
|
||||
function Getflags(): idlulong; safecall;
|
||||
property flags : idlulong read Getflags;
|
||||
function Getrealm(): AString; safecall;
|
||||
property realm : AString read Getrealm;
|
||||
function GetauthenticationScheme(): AUTF8String; safecall;
|
||||
property authenticationScheme : AUTF8String read GetauthenticationScheme;
|
||||
function Getusername(): AString; safecall;
|
||||
procedure Setusername(ausername: AString); safecall;
|
||||
property username : AString read Getusername write Setusername;
|
||||
function Getpassword(): AString; safecall;
|
||||
procedure Setpassword(apassword: AString); safecall;
|
||||
property password : AString read Getpassword write Setpassword;
|
||||
function Getdomain(): AString; safecall;
|
||||
procedure Setdomain(adomain: AString); safecall;
|
||||
property domain : AString read Getdomain write Setdomain;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIAuthInformation_AUTH_HOST=1;
|
||||
nsIAuthInformation_AUTH_PROXY=2;
|
||||
nsIAuthInformation_NEED_DOMAIN=4;
|
||||
nsIAuthInformation_ONLY_PASSWORD=8;
|
||||
nsIAuthInformation_PREVIOUS_FAILED=16;
|
||||
|
15
components/geckoport/version2/gecko10/nsiauthprompt.inc
Normal file
15
components/geckoport/version2/gecko10/nsiauthprompt.inc
Normal file
@ -0,0 +1,15 @@
|
||||
type
|
||||
|
||||
nsIAuthPrompt = interface(nsISupports)
|
||||
['{358089f9-ee4b-4711-82fd-bcd07fc62061}']
|
||||
function prompt(dialogTitle: PWideChar; text: PWideChar; passwordRealm: PWideChar; savePassword: PRUint32; defaultText: PWideChar; out result: PWideChar) : longbool; safecall;
|
||||
function promptUsernameAndPassword(dialogTitle: PWideChar; text: PWideChar; passwordRealm: PWideChar; savePassword: PRUint32; var user: PWideChar; var pwd: PWideChar) : longbool; safecall;
|
||||
function promptPassword(dialogTitle: PWideChar; text: PWideChar; passwordRealm: PWideChar; savePassword: PRUint32; var pwd: PWideChar) : longbool; safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIAuthPrompt_SAVE_PASSWORD_NEVER=0;
|
||||
nsIAuthPrompt_SAVE_PASSWORD_FOR_SESSION=1;
|
||||
nsIAuthPrompt_SAVE_PASSWORD_PERMANENTLY=2;
|
||||
|
@ -0,0 +1,9 @@
|
||||
type
|
||||
|
||||
nsIAuthPromptCallback = interface(nsISupports)
|
||||
['{bdc387d7-2d29-4cac-92f1-dd75d786631d}']
|
||||
procedure onAuthAvailable(aContext: nsISupports; aAuthInfo: nsIAuthInformation); safecall;
|
||||
procedure onAuthCancelled(aContext: nsISupports; userCancel: longbool); safecall;
|
||||
|
||||
end;
|
||||
|
39
components/geckoport/version2/gecko10/nsibasewindow.inc
Normal file
39
components/geckoport/version2/gecko10/nsibasewindow.inc
Normal file
@ -0,0 +1,39 @@
|
||||
type
|
||||
nativeWindow = voidPtr;
|
||||
nsIWidget = pointer;
|
||||
|
||||
type
|
||||
|
||||
nsIBaseWindow = interface(nsISupports)
|
||||
['{7144AC8B-6702-4A4B-A73D-D1D4E9717E46}']
|
||||
procedure initWindow(aparentNativeWindow: nativeWindow; aparentWidget: nsIWidget; x: idllong; y: idllong; cx: idllong; cy: idllong); safecall;
|
||||
procedure create(); safecall;
|
||||
procedure destroy(); safecall;
|
||||
procedure setPosition(x: idllong; y: idllong); safecall;
|
||||
procedure getPosition(out x: idllong; out y: idllong); safecall;
|
||||
procedure setSize(cx: idllong; cy: idllong; fRepaint: longbool); safecall;
|
||||
procedure getSize(out cx: idllong; out cy: idllong); safecall;
|
||||
procedure setPositionAndSize(x: idllong; y: idllong; cx: idllong; cy: idllong; fRepaint: longbool); safecall;
|
||||
procedure getPositionAndSize(out x: idllong; out y: idllong; out cx: idllong; out cy: idllong); safecall;
|
||||
procedure repaint(force: longbool); 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(): longbool; safecall;
|
||||
procedure Setvisibility(avisibility: longbool); safecall;
|
||||
property visibility : longbool read Getvisibility write Setvisibility;
|
||||
function Getenabled(): longbool; safecall;
|
||||
procedure Setenabled(aenabled: longbool); safecall;
|
||||
property enabled : longbool read Getenabled write Setenabled;
|
||||
function GetmainWidget(): nsIWidget; safecall;
|
||||
property mainWidget : nsIWidget read GetmainWidget;
|
||||
procedure setFocus(); safecall;
|
||||
function Gettitle(): PWideChar; safecall;
|
||||
procedure Settitle(atitle: PWideChar); safecall;
|
||||
property title : PWideChar read Gettitle write Settitle;
|
||||
|
||||
end;
|
||||
|
11
components/geckoport/version2/gecko10/nsibfcacheentry.inc
Normal file
11
components/geckoport/version2/gecko10/nsibfcacheentry.inc
Normal file
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIBFCacheEntry = interface(nsISupports)
|
||||
['{a576060e-c7df-4d81-aa8c-5b52bd6ad25d}']
|
||||
procedure RemoveFromBFCacheSync(); safecall;
|
||||
procedure RemoveFromBFCacheAsync(); safecall;
|
||||
function GetID(): idlulong; safecall;
|
||||
property ID : idlulong read GetID;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIBinaryInputStream = interface(nsIInputStream)
|
||||
['{7b456cb0-8772-11d3-90cf-0040056a906e}']
|
||||
procedure setInputStream(aInputStream: nsIInputStream); safecall;
|
||||
function readBoolean() : longbool; safecall;
|
||||
function read8() : PRUint8; safecall;
|
||||
function read16() : PRUint16; safecall;
|
||||
function read32() : PRUint32; safecall;
|
||||
function read64() : PRUint64; safecall;
|
||||
function readFloat() : idlfloat; safecall;
|
||||
function readDouble() : double; safecall;
|
||||
function readCString() : ACString; safecall;
|
||||
function readString() : AString; safecall;
|
||||
procedure readBytes(aLength: PRUint32; out aString: PAnsiChar); safecall;
|
||||
procedure readByteArray(aLength: PRUint32; out aBytes: PRUint8); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,20 @@
|
||||
type
|
||||
|
||||
nsIBinaryOutputStream = interface(nsIOutputStream)
|
||||
['{204ee610-8765-11d3-90cf-0040056a906e}']
|
||||
procedure setOutputStream(aOutputStream: nsIOutputStream); safecall;
|
||||
procedure writeBoolean(aBoolean: longbool); safecall;
|
||||
procedure write8(aByte: PRUint8); safecall;
|
||||
procedure write16(a16: PRUint16); safecall;
|
||||
procedure write32(a32: PRUint32); safecall;
|
||||
procedure write64(a64: PRUint64); safecall;
|
||||
procedure writeFloat(aFloat: idlfloat); safecall;
|
||||
procedure writeDouble(aDouble: double); safecall;
|
||||
procedure writeStringZ(aString: PAnsiChar); safecall;
|
||||
procedure writeWStringZ(aString: PWideChar); safecall;
|
||||
procedure writeUtf8Z(aString: PWideChar); safecall;
|
||||
procedure writeBytes(aString: PAnsiChar; aLength: PRUint32); safecall;
|
||||
procedure writeByteArray(aBytes: PRUint8; aLength: PRUint32); safecall;
|
||||
|
||||
end;
|
||||
|
8
components/geckoport/version2/gecko10/nsicancelable.inc
Normal file
8
components/geckoport/version2/gecko10/nsicancelable.inc
Normal file
@ -0,0 +1,8 @@
|
||||
type
|
||||
|
||||
nsICancelable = interface(nsISupports)
|
||||
['{d94ac0a0-bb18-46b8-844e-84159064b0bd}']
|
||||
procedure cancel(aReason: nsresult); safecall;
|
||||
|
||||
end;
|
||||
|
48
components/geckoport/version2/gecko10/nsichannel.inc
Normal file
48
components/geckoport/version2/gecko10/nsichannel.inc
Normal file
@ -0,0 +1,48 @@
|
||||
type
|
||||
|
||||
nsIChannel = interface(nsIRequest)
|
||||
['{06f6ada3-7729-4e72-8d3f-bf8ba630ff9b}']
|
||||
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;
|
||||
function GetcontentType(): ACString; safecall;
|
||||
procedure SetcontentType(acontentType: ACString); safecall;
|
||||
property contentType : ACString read GetcontentType write SetcontentType;
|
||||
function GetcontentCharset(): ACString; safecall;
|
||||
procedure SetcontentCharset(acontentCharset: ACString); safecall;
|
||||
property contentCharset : ACString read GetcontentCharset write SetcontentCharset;
|
||||
function GetcontentLength(): idllong; safecall;
|
||||
procedure SetcontentLength(acontentLength: idllong); safecall;
|
||||
property contentLength : idllong read GetcontentLength write SetcontentLength;
|
||||
function open() : nsIInputStream; safecall;
|
||||
procedure asyncOpen(aListener: nsIStreamListener; aContext: nsISupports); safecall;
|
||||
function GetcontentDisposition(): idlulong; safecall;
|
||||
property contentDisposition : idlulong read GetcontentDisposition;
|
||||
function GetcontentDispositionFilename(): AString; safecall;
|
||||
property contentDispositionFilename : AString read GetcontentDispositionFilename;
|
||||
function GetcontentDispositionHeader(): ACString; safecall;
|
||||
property contentDispositionHeader : ACString read GetcontentDispositionHeader;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIChannel_LOAD_DOCUMENT_URI=1 << 16;
|
||||
nsIChannel_LOAD_RETARGETED_DOCUMENT_URI=1 << 17;
|
||||
nsIChannel_LOAD_REPLACE=1 << 18;
|
||||
nsIChannel_LOAD_INITIAL_DOCUMENT_URI=1 << 19;
|
||||
nsIChannel_LOAD_TARGETED=1 << 20;
|
||||
nsIChannel_LOAD_CALL_CONTENT_SNIFFERS=1 << 21;
|
||||
nsIChannel_LOAD_CLASSIFY_URI=1 << 22;
|
||||
nsIChannel_DISPOSITION_INLINE=0;
|
||||
nsIChannel_DISPOSITION_ATTACHMENT=1;
|
||||
|
15
components/geckoport/version2/gecko10/nsicollection.inc
Normal file
15
components/geckoport/version2/gecko10/nsicollection.inc
Normal file
@ -0,0 +1,15 @@
|
||||
type
|
||||
|
||||
nsICollection = interface(nsISerializable)
|
||||
['{83b6019c-cbc4-11d2-8cca-0060b0fc14a3}']
|
||||
function Count() : PRUint32; safecall;
|
||||
function GetElementAt(index: PRUint32) : nsISupports; safecall;
|
||||
procedure QueryElementAt(index: PRUint32; uuid: nsIIDRef; out result: nsQIResult); safecall;
|
||||
procedure SetElementAt(index: PRUint32; item: nsISupports); safecall;
|
||||
procedure AppendElement(item: nsISupports); safecall;
|
||||
procedure RemoveElement(item: nsISupports); safecall;
|
||||
function Enumerate() : nsIEnumerator; safecall;
|
||||
procedure Clear(); safecall;
|
||||
|
||||
end;
|
||||
|
33
components/geckoport/version2/gecko10/nsicommandparams.inc
Normal file
33
components/geckoport/version2/gecko10/nsicommandparams.inc
Normal file
@ -0,0 +1,33 @@
|
||||
type
|
||||
|
||||
nsICommandParams = interface(nsISupports)
|
||||
['{83f892cf-7ed3-490e-967a-62640f3158e1}']
|
||||
function getValueType(name: PAnsiChar) : idlshort; safecall;
|
||||
function getBooleanValue(name: PAnsiChar) : longbool; safecall;
|
||||
function getLongValue(name: PAnsiChar) : idllong; safecall;
|
||||
function getDoubleValue(name: PAnsiChar) : double; safecall;
|
||||
function getStringValue(name: PAnsiChar) : AString; safecall;
|
||||
function getCStringValue(name: PAnsiChar) : PAnsiChar; safecall;
|
||||
function getISupportsValue(name: PAnsiChar) : nsISupports; safecall;
|
||||
procedure setBooleanValue(name: PAnsiChar; value: longbool); safecall;
|
||||
procedure setLongValue(name: PAnsiChar; value: idllong); safecall;
|
||||
procedure setDoubleValue(name: PAnsiChar; value: double); safecall;
|
||||
procedure setStringValue(name: PAnsiChar; value: AString); safecall;
|
||||
procedure setCStringValue(name: PAnsiChar; value: PAnsiChar); safecall;
|
||||
procedure setISupportsValue(name: PAnsiChar; value: nsISupports); safecall;
|
||||
procedure removeValue(name: PAnsiChar); safecall;
|
||||
function hasMoreElements() : longbool; safecall;
|
||||
procedure first(); safecall;
|
||||
function getNext() : PAnsiChar; safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsICommandParams_eNoType=0;
|
||||
nsICommandParams_eBooleanType=1;
|
||||
nsICommandParams_eLongType=2;
|
||||
nsICommandParams_eDoubleType=3;
|
||||
nsICommandParams_eWStringType=4;
|
||||
nsICommandParams_eISupportsType=5;
|
||||
nsICommandParams_eStringType=6;
|
||||
|
@ -0,0 +1,13 @@
|
||||
type
|
||||
|
||||
nsIComponentManager = interface(nsISupports)
|
||||
['{1d940426-5fe5-42c3-84ae-a300f2d9ebd5}']
|
||||
procedure getClassObject(aClass: nsCIDRef; aIID: nsIIDRef; out result); safecall;
|
||||
procedure getClassObjectByContractID(aContractID: PAnsiChar; aIID: nsIIDRef; out result); safecall;
|
||||
procedure createInstance(aClass: nsCIDRef; aDelegate: nsISupports; aIID: nsIIDRef; out result); safecall;
|
||||
procedure createInstanceByContractID(aContractID: PAnsiChar; aDelegate: nsISupports; aIID: nsIIDRef; out result); safecall;
|
||||
procedure addBootstrappedManifestLocation(aLocation: nsILocalFile); safecall;
|
||||
procedure removeBootstrappedManifestLocation(aLocation: nsILocalFile); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIComponentRegistrar = interface(nsISupports)
|
||||
['{2417cbfe-65ad-48a6-b4b6-eb84db174392}']
|
||||
procedure autoRegister(aSpec: nsIFile); safecall;
|
||||
procedure autoUnregister(aSpec: nsIFile); safecall;
|
||||
procedure registerFactory(aClass: nsCIDRef; aClassName: PAnsiChar; aContractID: PAnsiChar; aFactory: nsIFactory); safecall;
|
||||
procedure unregisterFactory(aClass: nsCIDRef; aFactory: nsIFactory); safecall;
|
||||
procedure registerFactoryLocation(aClass: nsCIDRef; aClassName: PAnsiChar; aContractID: PAnsiChar; aFile: nsIFile; aLoaderStr: PAnsiChar; aType: PAnsiChar); safecall;
|
||||
procedure unregisterFactoryLocation(aClass: nsCIDRef; aFile: nsIFile); safecall;
|
||||
function isCIDRegistered(aClass: nsCIDRef) : longbool; safecall;
|
||||
function isContractIDRegistered(aContractID: PAnsiChar) : longbool; safecall;
|
||||
function enumerateCIDs() : nsISimpleEnumerator; safecall;
|
||||
function enumerateContractIDs() : nsISimpleEnumerator; safecall;
|
||||
function CIDToContractID(aClass: nsCIDRef) : PAnsiChar; safecall;
|
||||
function contractIDToCID(aContractID: PAnsiChar) : nsCIDPtr; safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,30 @@
|
||||
type
|
||||
|
||||
nsIContentSecurityPolicy = interface(nsISupports)
|
||||
['{AB36A2BF-CB32-4AA6-AB41-6B4E4444A221}']
|
||||
function GetisInitialized(): longbool; safecall;
|
||||
procedure SetisInitialized(aisInitialized: longbool); safecall;
|
||||
property isInitialized : longbool read GetisInitialized write SetisInitialized;
|
||||
function GetreportOnlyMode(): longbool; safecall;
|
||||
procedure SetreportOnlyMode(areportOnlyMode: longbool); safecall;
|
||||
property reportOnlyMode : longbool read GetreportOnlyMode write SetreportOnlyMode;
|
||||
function Getpolicy(): AString; safecall;
|
||||
property policy : AString read Getpolicy;
|
||||
function GetallowsInlineScript(): longbool; safecall;
|
||||
property allowsInlineScript : longbool read GetallowsInlineScript;
|
||||
function GetallowsEval(): longbool; safecall;
|
||||
property allowsEval : longbool read GetallowsEval;
|
||||
procedure logViolationDetails(violationType: idlushort; sourceFile: AString; scriptSample: AString; lineNum: PRInt32); safecall;
|
||||
procedure sendReports(blockedURI: AString; violatedDirective: AString; scriptSample: AString; lineNum: PRInt32); safecall;
|
||||
procedure scanRequestData(aChannel: nsIHttpChannel); safecall;
|
||||
procedure refinePolicy(policyString: AString; selfURI: nsIURI); safecall;
|
||||
function permitsAncestry(docShell: nsIDocShell) : longbool; safecall;
|
||||
function shouldLoad(aContentType: idlulong; aContentLocation: nsIURI; aRequestOrigin: nsIURI; aContext: nsISupports; aMimeTypeGuess: ACString; aExtra: nsISupports) : idlshort; safecall;
|
||||
function shouldProcess(aContentType: idlulong; aContentLocation: nsIURI; aRequestOrigin: nsIURI; aContext: nsISupports; aMimeType: ACString; aExtra: nsISupports) : idlshort; safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIContentSecurityPolicy_VIOLATION_TYPE_INLINE_SCRIPT=1;
|
||||
nsIContentSecurityPolicy_VIOLATION_TYPE_EVAL=2;
|
||||
|
53
components/geckoport/version2/gecko10/nsicontentviewer.inc
Normal file
53
components/geckoport/version2/gecko10/nsicontentviewer.inc
Normal file
@ -0,0 +1,53 @@
|
||||
type
|
||||
nsIntRect = record
|
||||
end;
|
||||
|
||||
type
|
||||
|
||||
nsIContentViewer = interface(nsISupports)
|
||||
['{26b2380b-4a1a-46cd-b7d8-7600e41c1688}']
|
||||
{ procedure init(aParentWidget: nsIWidgetPtr; aBounds: nsIntRectRef); safecall;
|
||||
function Getcontainer(): nsISupports; safecall;
|
||||
procedure Setcontainer(acontainer: nsISupports); safecall;
|
||||
property container : nsISupports read Getcontainer write Setcontainer;
|
||||
procedure loadStart(aDoc: nsISupports); safecall;
|
||||
procedure loadComplete(aStatus: idlulong); safecall;
|
||||
function permitUnload(aCallerClosesWindow: longbool) : longbool; safecall;
|
||||
procedure resetCloseWindow(); safecall;
|
||||
procedure pageHide(isUnload: longbool); safecall;
|
||||
procedure close(ahistoryEntry: nsISHEntry); safecall;
|
||||
procedure destroy(); safecall;
|
||||
procedure stop(); safecall;
|
||||
function GetDOMDocument(): nsIDOMDocument; safecall;
|
||||
procedure SetDOMDocument(aDOMDocument: nsIDOMDocument); safecall;
|
||||
property DOMDocument : nsIDOMDocument read GetDOMDocument write SetDOMDocument;
|
||||
function getDocument() : nsIDocumentPtr; safecall;
|
||||
procedure getBounds(aBounds: nsIntRectRef); safecall;
|
||||
procedure setBounds(aBounds: nsIntRectRef); safecall;
|
||||
function GetpreviousViewer(): nsIContentViewer; safecall;
|
||||
procedure SetpreviousViewer(apreviousViewer: nsIContentViewer); safecall;
|
||||
property previousViewer : nsIContentViewer read GetpreviousViewer write SetpreviousViewer;
|
||||
procedure move(aX: idllong; aY: idllong); safecall;
|
||||
procedure show(); safecall;
|
||||
procedure hide(); safecall;
|
||||
function Getsticky(): longbool; safecall;
|
||||
procedure Setsticky(asticky: longbool); safecall;
|
||||
property sticky : longbool read Getsticky write Setsticky;
|
||||
function requestWindowClose() : longbool; safecall;
|
||||
procedure open(aState: nsISupports; aSHEntry: nsISHEntry); safecall;
|
||||
procedure clearHistoryEntry(); safecall;
|
||||
procedure setPageMode(aPageMode: longbool; aPrintSettings: nsIPrintSettings); safecall;
|
||||
function GethistoryEntry(): nsISHEntry; safecall;
|
||||
property historyEntry : nsISHEntry read GethistoryEntry;
|
||||
function GetisTabModalPromptAllowed(): longbool; safecall;
|
||||
property isTabModalPromptAllowed : longbool read GetisTabModalPromptAllowed;
|
||||
function GetpresShell(): nsIPresShellPtr; safecall;
|
||||
property presShell : nsIPresShellPtr read GetpresShell;
|
||||
function GetpresContext(): nsPresContextPtr; safecall;
|
||||
property presContext : nsPresContextPtr read GetpresContext;
|
||||
procedure setDocumentInternal(aDocument: nsIDocumentPtr; aForceReuseInnerWindow: longbool); safecall;
|
||||
function findContainerView() : nsIViewPtr; safecall;
|
||||
procedure setNavigationTiming(aTiming: nsDOMNavigationTimingPtr); safecall;
|
||||
}
|
||||
end;
|
||||
|
@ -0,0 +1,37 @@
|
||||
type
|
||||
|
||||
nsIContextMenuListener2 = interface(nsISupports)
|
||||
['{7fb719b3-d804-4964-9596-77cf924ee314}']
|
||||
procedure onShowContextMenu(aContextFlags: idlulong; aUtils: nsIContextMenuInfo); safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIContextMenuListener2_CONTEXT_NONE=0;
|
||||
nsIContextMenuListener2_CONTEXT_LINK=1;
|
||||
nsIContextMenuListener2_CONTEXT_IMAGE=2;
|
||||
nsIContextMenuListener2_CONTEXT_DOCUMENT=4;
|
||||
nsIContextMenuListener2_CONTEXT_TEXT=8;
|
||||
nsIContextMenuListener2_CONTEXT_INPUT=16;
|
||||
nsIContextMenuListener2_CONTEXT_BACKGROUND_IMAGE=32;
|
||||
|
||||
type
|
||||
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;
|
||||
function GetassociatedLink(): AString; safecall;
|
||||
property associatedLink : AString read GetassociatedLink;
|
||||
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;
|
||||
|
30
components/geckoport/version2/gecko10/nsicontroller.inc
Normal file
30
components/geckoport/version2/gecko10/nsicontroller.inc
Normal file
@ -0,0 +1,30 @@
|
||||
type
|
||||
|
||||
nsIController = interface(nsISupports)
|
||||
['{D5B61B82-1DA4-11d3-BF87-00105A1B0627}']
|
||||
function isCommandEnabled(command: PAnsiChar) : longbool; safecall;
|
||||
function supportsCommand(command: PAnsiChar) : longbool; safecall;
|
||||
procedure doCommand(command: PAnsiChar); safecall;
|
||||
procedure onEvent(eventName: PAnsiChar); safecall;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsICommandController = interface(nsISupports)
|
||||
['{EBE55080-C8A9-11D5-A73C-DD620D6E04BC}']
|
||||
procedure getCommandStateWithParams(command: PAnsiChar; aCommandParams: nsICommandParams); safecall;
|
||||
procedure doCommandWithParams(command: PAnsiChar; aCommandParams: nsICommandParams); safecall;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsIControllerCommandGroup = interface(nsISupports)
|
||||
['{9F82C404-1C7B-11D5-A73C-ECA43CA836FC}']
|
||||
procedure addCommandToGroup(aCommand: PAnsiChar; aGroup: PAnsiChar); safecall;
|
||||
procedure removeCommandFromGroup(aCommand: PAnsiChar; aGroup: PAnsiChar); safecall;
|
||||
function isCommandInGroup(aCommand: PAnsiChar; aGroup: PAnsiChar) : longbool; safecall;
|
||||
function getGroupsEnumerator() : nsISimpleEnumerator; safecall;
|
||||
function getEnumeratorForGroup(aGroup: PAnsiChar) : nsISimpleEnumerator; safecall;
|
||||
|
||||
end;
|
||||
|
16
components/geckoport/version2/gecko10/nsicontrollers.inc
Normal file
16
components/geckoport/version2/gecko10/nsicontrollers.inc
Normal file
@ -0,0 +1,16 @@
|
||||
type
|
||||
|
||||
nsIControllers = interface(nsISupports)
|
||||
['{f36e3ec1-9197-4ad8-8d4c-d3b1927fd6df}']
|
||||
function getControllerForCommand(command: PAnsiChar) : nsIController; safecall;
|
||||
procedure insertControllerAt(index: idlulong; controller: nsIController); safecall;
|
||||
function removeControllerAt(index: idlulong) : nsIController; safecall;
|
||||
function getControllerAt(index: idlulong) : nsIController; safecall;
|
||||
procedure appendController(controller: nsIController); safecall;
|
||||
procedure removeController(controller: nsIController); safecall;
|
||||
function getControllerId(controller: nsIController) : idlulong; safecall;
|
||||
function getControllerById(controllerID: idlulong) : nsIController; safecall;
|
||||
function getControllerCount() : idlulong; safecall;
|
||||
|
||||
end;
|
||||
|
11
components/geckoport/version2/gecko10/nsidebug.inc
Normal file
11
components/geckoport/version2/gecko10/nsidebug.inc
Normal file
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDebug = interface(nsISupports)
|
||||
['{3bf0c3d7-3bd9-4cf2-a971-33572c503e1e}']
|
||||
procedure assertion(aStr: PAnsiChar; aExpr: PAnsiChar; aFile: PAnsiChar; aLine: idllong); safecall;
|
||||
procedure warning(aStr: PAnsiChar; aFile: PAnsiChar; aLine: idllong); safecall;
|
||||
procedure break(aFile: PAnsiChar; aLine: idllong); safecall;
|
||||
procedure abort(aFile: PAnsiChar; aLine: idllong); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,24 @@
|
||||
type
|
||||
|
||||
nsIDirectoryServiceProvider = interface(nsISupports)
|
||||
['{bbf8cab0-d43a-11d3-8cc2-00609792278c}']
|
||||
function getFile(prop: PAnsiChar; out persistent: longbool) : nsIFile; safecall;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsIDirectoryServiceProvider2 = interface(nsIDirectoryServiceProvider)
|
||||
['{2f977d4b-5485-11d4-87e2-0010a4e75ef2}']
|
||||
function getFiles(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;
|
||||
|
146
components/geckoport/version2/gecko10/nsidocshell.inc
Normal file
146
components/geckoport/version2/gecko10/nsidocshell.inc
Normal file
@ -0,0 +1,146 @@
|
||||
type
|
||||
|
||||
nsIDocShell = interface(nsISupports)
|
||||
['{0666adf8-8738-4ca7-a917-0348f47d2f40}']
|
||||
procedure loadURI(uri: nsIURI; loadInfo: nsIDocShellLoadInfo; aLoadFlags: idlulong; firstParty: longbool); safecall;
|
||||
procedure loadStream(aStream: nsIInputStream; aURI: nsIURI; aContentType: ACString; aContentCharset: ACString; aLoadInfo: nsIDocShellLoadInfo); safecall;
|
||||
procedure internalLoad(aURI: nsIURI; aReferrer: nsIURI; aOwner: nsISupports; aFlags: PRUint32; aWindowTarget: PWideChar; aTypeHint: PAnsiChar; aPostDataStream: nsIInputStream; aHeadersStream: nsIInputStream; aLoadFlags: idlulong; aSHEntry: nsISHEntry; firstParty: longbool; out aDocShell: nsIDocShell; out aRequest: nsIRequest); safecall;
|
||||
procedure addState(aData: nsIVariant; aTitle: DOMString; aURL: DOMString; aReplace: longbool); safecall;
|
||||
procedure createLoadInfo(out loadInfo: nsIDocShellLoadInfo); safecall;
|
||||
procedure prepareForNewContentModel(); safecall;
|
||||
procedure setCurrentURI(aURI: nsIURI); safecall;
|
||||
procedure firePageHideNotification(isUnload: longbool); safecall;
|
||||
function GetpresContext(): nsPresContext; safecall;
|
||||
property presContext : nsPresContext read GetpresContext;
|
||||
function GetpresShell(): nsIPresShell; safecall;
|
||||
property presShell : nsIPresShell read GetpresShell;
|
||||
function GeteldestPresShell(): nsIPresShell; safecall;
|
||||
property eldestPresShell : nsIPresShell read GeteldestPresShell;
|
||||
function GetcontentViewer(): nsIContentViewer; safecall;
|
||||
property contentViewer : nsIContentViewer read GetcontentViewer;
|
||||
function GetchromeEventHandler(): nsIDOMEventTarget; safecall;
|
||||
procedure SetchromeEventHandler(achromeEventHandler: nsIDOMEventTarget); safecall;
|
||||
property chromeEventHandler : nsIDOMEventTarget read GetchromeEventHandler write SetchromeEventHandler;
|
||||
function GetdocumentCharsetInfo(): nsIDocumentCharsetInfo; safecall;
|
||||
procedure SetdocumentCharsetInfo(adocumentCharsetInfo: nsIDocumentCharsetInfo); safecall;
|
||||
property documentCharsetInfo : nsIDocumentCharsetInfo read GetdocumentCharsetInfo write SetdocumentCharsetInfo;
|
||||
function GetallowPlugins(): longbool; safecall;
|
||||
procedure SetallowPlugins(aallowPlugins: longbool); safecall;
|
||||
property allowPlugins : longbool read GetallowPlugins write SetallowPlugins;
|
||||
function GetallowJavascript(): longbool; safecall;
|
||||
procedure SetallowJavascript(aallowJavascript: longbool); safecall;
|
||||
property allowJavascript : longbool read GetallowJavascript write SetallowJavascript;
|
||||
function GetallowMetaRedirects(): longbool; safecall;
|
||||
procedure SetallowMetaRedirects(aallowMetaRedirects: longbool); safecall;
|
||||
property allowMetaRedirects : longbool read GetallowMetaRedirects write SetallowMetaRedirects;
|
||||
function GetallowSubframes(): longbool; safecall;
|
||||
procedure SetallowSubframes(aallowSubframes: longbool); safecall;
|
||||
property allowSubframes : longbool read GetallowSubframes write SetallowSubframes;
|
||||
function GetallowImages(): longbool; safecall;
|
||||
procedure SetallowImages(aallowImages: longbool); safecall;
|
||||
property allowImages : longbool read GetallowImages write SetallowImages;
|
||||
function GetallowDNSPrefetch(): longbool; safecall;
|
||||
procedure SetallowDNSPrefetch(aallowDNSPrefetch: longbool); safecall;
|
||||
property allowDNSPrefetch : longbool read GetallowDNSPrefetch write SetallowDNSPrefetch;
|
||||
function GetallowWindowControl(): longbool; safecall;
|
||||
procedure SetallowWindowControl(aallowWindowControl: longbool); safecall;
|
||||
property allowWindowControl : longbool read GetallowWindowControl write SetallowWindowControl;
|
||||
function getDocShellEnumerator(aItemType: idllong; aDirection: idllong) : nsISimpleEnumerator; safecall;
|
||||
function GetappType(): idlulong; safecall;
|
||||
procedure SetappType(aappType: idlulong); safecall;
|
||||
property appType : idlulong read GetappType write SetappType;
|
||||
function GetallowAuth(): longbool; safecall;
|
||||
procedure SetallowAuth(aallowAuth: longbool); safecall;
|
||||
property allowAuth : longbool read GetallowAuth write SetallowAuth;
|
||||
function Getzoom(): idlfloat; safecall;
|
||||
procedure Setzoom(azoom: idlfloat); safecall;
|
||||
property zoom : idlfloat read Getzoom write Setzoom;
|
||||
function GetmarginWidth(): idllong; safecall;
|
||||
procedure SetmarginWidth(amarginWidth: idllong); safecall;
|
||||
property marginWidth : idllong read GetmarginWidth write SetmarginWidth;
|
||||
function GetmarginHeight(): idllong; safecall;
|
||||
procedure SetmarginHeight(amarginHeight: idllong); safecall;
|
||||
property marginHeight : idllong read GetmarginHeight write SetmarginHeight;
|
||||
procedure tabToTreeOwner(forward: longbool; out tookFocus: longbool); safecall;
|
||||
function GetbusyFlags(): idlulong; safecall;
|
||||
property busyFlags : idlulong read GetbusyFlags;
|
||||
function GetloadType(): idlulong; safecall;
|
||||
procedure SetloadType(aloadType: idlulong); safecall;
|
||||
property loadType : idlulong read GetloadType write SetloadType;
|
||||
function isBeingDestroyed() : longbool; safecall;
|
||||
function GetisExecutingOnLoadHandler(): longbool; safecall;
|
||||
property isExecutingOnLoadHandler : longbool read GetisExecutingOnLoadHandler;
|
||||
function GetlayoutHistoryState(): nsILayoutHistoryState; safecall;
|
||||
procedure SetlayoutHistoryState(alayoutHistoryState: nsILayoutHistoryState); safecall;
|
||||
property layoutHistoryState : nsILayoutHistoryState read GetlayoutHistoryState write SetlayoutHistoryState;
|
||||
function GetshouldSaveLayoutState(): longbool; safecall;
|
||||
property shouldSaveLayoutState : longbool read GetshouldSaveLayoutState;
|
||||
function GetsecurityUI(): nsISecureBrowserUI; safecall;
|
||||
procedure SetsecurityUI(asecurityUI: nsISecureBrowserUI); safecall;
|
||||
property securityUI : nsISecureBrowserUI read GetsecurityUI write SetsecurityUI;
|
||||
procedure suspendRefreshURIs(); safecall;
|
||||
procedure resumeRefreshURIs(); safecall;
|
||||
procedure beginRestore(viewer: nsIContentViewer; top: longbool); safecall;
|
||||
procedure finishRestore(); safecall;
|
||||
function GetrestoringDocument(): longbool; safecall;
|
||||
property restoringDocument : longbool read GetrestoringDocument;
|
||||
function GetuseErrorPages(): longbool; safecall;
|
||||
procedure SetuseErrorPages(auseErrorPages: longbool); safecall;
|
||||
property useErrorPages : longbool read GetuseErrorPages write SetuseErrorPages;
|
||||
function GetpreviousTransIndex(): idllong; safecall;
|
||||
property previousTransIndex : idllong read GetpreviousTransIndex;
|
||||
function GetloadedTransIndex(): idllong; safecall;
|
||||
property loadedTransIndex : idllong read GetloadedTransIndex;
|
||||
procedure historyPurged(numEntries: idllong); safecall;
|
||||
function getSessionStorageForURI(uri: nsIURI; documentURI: DOMString) : nsIDOMStorage; safecall;
|
||||
function getSessionStorageForPrincipal(principal: nsIPrincipal; documentURI: DOMString; create: longbool) : nsIDOMStorage; safecall;
|
||||
procedure addSessionStorage(principal: nsIPrincipal; storage: nsIDOMStorage); safecall;
|
||||
function GetcurrentDocumentChannel(): nsIChannel; safecall;
|
||||
property currentDocumentChannel : nsIChannel read GetcurrentDocumentChannel;
|
||||
procedure setChildOffset(offset: idlulong); safecall;
|
||||
function GetisInUnload(): longbool; safecall;
|
||||
property isInUnload : longbool read GetisInUnload;
|
||||
function GetchannelIsUnsafe(): longbool; safecall;
|
||||
property channelIsUnsafe : longbool read GetchannelIsUnsafe;
|
||||
procedure DetachEditorFromWindow(); safecall;
|
||||
function GetisOffScreenBrowser(): longbool; safecall;
|
||||
procedure SetisOffScreenBrowser(aisOffScreenBrowser: longbool); safecall;
|
||||
property isOffScreenBrowser : longbool read GetisOffScreenBrowser write SetisOffScreenBrowser;
|
||||
function GetprintPreview(): nsIWebBrowserPrint; safecall;
|
||||
property printPreview : nsIWebBrowserPrint read GetprintPreview;
|
||||
function GetcanExecuteScripts(): longbool; safecall;
|
||||
property canExecuteScripts : longbool read GetcanExecuteScripts;
|
||||
function GetisActive(): longbool; safecall;
|
||||
procedure SetisActive(aisActive: longbool); safecall;
|
||||
property isActive : longbool read GetisActive write SetisActive;
|
||||
function GethistoryID(): idlulong; safecall;
|
||||
property historyID : idlulong read GethistoryID;
|
||||
function GetisAppTab(): longbool; safecall;
|
||||
procedure SetisAppTab(aisAppTab: longbool); safecall;
|
||||
property isAppTab : longbool read GetisAppTab write SetisAppTab;
|
||||
procedure createAboutBlankContentViewer(aPrincipal: nsIPrincipal); safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_NONE=$0;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_INHERIT_OWNER=$1;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_DONT_SEND_REFERRER=$2;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_ALLOW_THIRD_PARTY_FIXUP=$4;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_FIRST_LOAD=$8;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_BYPASS_CLASSIFIER=$10;
|
||||
nsIDocShell_INTERNAL_LOAD_FLAGS_FORCE_ALLOW_COOKIES=$20;
|
||||
nsIDocShell_ENUMERATE_FORWARDS=0;
|
||||
nsIDocShell_ENUMERATE_BACKWARDS=1;
|
||||
nsIDocShell_APP_TYPE_UNKNOWN=0;
|
||||
nsIDocShell_APP_TYPE_MAIL=1;
|
||||
nsIDocShell_APP_TYPE_EDITOR=2;
|
||||
nsIDocShell_BUSY_FLAGS_NONE=0;
|
||||
nsIDocShell_BUSY_FLAGS_BUSY=1;
|
||||
nsIDocShell_BUSY_FLAGS_BEFORE_PAGE_LOAD=2;
|
||||
nsIDocShell_BUSY_FLAGS_PAGE_LOADING=4;
|
||||
nsIDocShell_LOAD_CMD_NORMAL=$1;
|
||||
nsIDocShell_LOAD_CMD_RELOAD=$2;
|
||||
nsIDocShell_LOAD_CMD_HISTORY=$4;
|
||||
nsIDocShell_LOAD_CMD_PUSHSTATE=$8;
|
||||
|
@ -0,0 +1,60 @@
|
||||
type
|
||||
nsDocShellInfoLoadType = idllong;
|
||||
|
||||
type
|
||||
|
||||
nsIDocShellLoadInfo = interface(nsISupports)
|
||||
['{92a0a637-373e-4647-9476-ead11e005c75}']
|
||||
function Getreferrer(): nsIURI; safecall;
|
||||
procedure Setreferrer(areferrer: nsIURI); safecall;
|
||||
property referrer : nsIURI read Getreferrer write Setreferrer;
|
||||
function Getowner(): nsISupports; safecall;
|
||||
procedure Setowner(aowner: nsISupports); safecall;
|
||||
property owner : nsISupports read Getowner write Setowner;
|
||||
function GetinheritOwner(): longbool; safecall;
|
||||
procedure SetinheritOwner(ainheritOwner: longbool); safecall;
|
||||
property inheritOwner : longbool read GetinheritOwner write SetinheritOwner;
|
||||
function GetownerIsExplicit(): longbool; safecall;
|
||||
procedure SetownerIsExplicit(aownerIsExplicit: longbool); safecall;
|
||||
property ownerIsExplicit : longbool read GetownerIsExplicit write SetownerIsExplicit;
|
||||
function GetloadType(): nsDocShellInfoLoadType; safecall;
|
||||
procedure SetloadType(aloadType: nsDocShellInfoLoadType); safecall;
|
||||
property loadType : nsDocShellInfoLoadType read GetloadType write SetloadType;
|
||||
function GetSHEntry(): nsISHEntry; safecall;
|
||||
procedure SetSHEntry(aSHEntry: nsISHEntry); safecall;
|
||||
property SHEntry : nsISHEntry read GetSHEntry write SetSHEntry;
|
||||
function Gettarget(): PWideChar; safecall;
|
||||
procedure Settarget(atarget: PWideChar); safecall;
|
||||
property target : PWideChar read Gettarget write Settarget;
|
||||
function GetpostDataStream(): nsIInputStream; safecall;
|
||||
procedure SetpostDataStream(apostDataStream: nsIInputStream); safecall;
|
||||
property postDataStream : nsIInputStream read GetpostDataStream write SetpostDataStream;
|
||||
function GetheadersStream(): nsIInputStream; safecall;
|
||||
procedure SetheadersStream(aheadersStream: nsIInputStream); safecall;
|
||||
property headersStream : nsIInputStream read GetheadersStream write SetheadersStream;
|
||||
function GetsendReferrer(): longbool; safecall;
|
||||
procedure SetsendReferrer(asendReferrer: longbool); safecall;
|
||||
property sendReferrer : longbool read GetsendReferrer write SetsendReferrer;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDocShellLoadInfo_loadNormal=0;
|
||||
nsIDocShellLoadInfo_loadNormalReplace=1;
|
||||
nsIDocShellLoadInfo_loadHistory=2;
|
||||
nsIDocShellLoadInfo_loadReloadNormal=3;
|
||||
nsIDocShellLoadInfo_loadReloadBypassCache=4;
|
||||
nsIDocShellLoadInfo_loadReloadBypassProxy=5;
|
||||
nsIDocShellLoadInfo_loadReloadBypassProxyAndCache=6;
|
||||
nsIDocShellLoadInfo_loadLink=7;
|
||||
nsIDocShellLoadInfo_loadRefresh=8;
|
||||
nsIDocShellLoadInfo_loadReloadCharsetChange=9;
|
||||
nsIDocShellLoadInfo_loadBypassHistory=10;
|
||||
nsIDocShellLoadInfo_loadStopContent=11;
|
||||
nsIDocShellLoadInfo_loadStopContentAndReplace=12;
|
||||
nsIDocShellLoadInfo_loadNormalExternal=13;
|
||||
nsIDocShellLoadInfo_loadNormalBypassCache=14;
|
||||
nsIDocShellLoadInfo_loadNormalBypassProxy=15;
|
||||
nsIDocShellLoadInfo_loadNormalBypassProxyAndCache=16;
|
||||
nsIDocShellLoadInfo_loadPushState=17;
|
||||
|
@ -0,0 +1,33 @@
|
||||
type
|
||||
|
||||
nsIDocShellTreeItem = interface(nsIDocShellTreeNode)
|
||||
['{09b54ec1-d98a-49a9-bc95-3219e8b55089}']
|
||||
function Getname(): PWideChar; safecall;
|
||||
procedure Setname(aname: PWideChar); safecall;
|
||||
property name : PWideChar read Getname write Setname;
|
||||
function nameEquals(aname: PWideChar) : longbool; safecall;
|
||||
function GetitemType(): idllong; safecall;
|
||||
procedure SetitemType(aitemType: idllong); safecall;
|
||||
property itemType : idllong read GetitemType write SetitemType;
|
||||
function Getparent(): nsIDocShellTreeItem; safecall;
|
||||
property parent : nsIDocShellTreeItem read Getparent;
|
||||
function GetsameTypeParent(): nsIDocShellTreeItem; safecall;
|
||||
property sameTypeParent : nsIDocShellTreeItem read GetsameTypeParent;
|
||||
function GetrootTreeItem(): nsIDocShellTreeItem; safecall;
|
||||
property rootTreeItem : nsIDocShellTreeItem read GetrootTreeItem;
|
||||
function GetsameTypeRootTreeItem(): nsIDocShellTreeItem; safecall;
|
||||
property sameTypeRootTreeItem : nsIDocShellTreeItem read GetsameTypeRootTreeItem;
|
||||
function findItemWithName(aname: PWideChar; aRequestor: nsISupports; aOriginalRequestor: nsIDocShellTreeItem) : nsIDocShellTreeItem; safecall;
|
||||
function GettreeOwner(): nsIDocShellTreeOwner; safecall;
|
||||
property treeOwner : nsIDocShellTreeOwner read GettreeOwner;
|
||||
procedure setTreeOwner(atreeOwner: nsIDocShellTreeOwner); safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDocShellTreeItem_typeChrome=0;
|
||||
nsIDocShellTreeItem_typeContent=1;
|
||||
nsIDocShellTreeItem_typeContentWrapper=2;
|
||||
nsIDocShellTreeItem_typeChromeWrapper=3;
|
||||
nsIDocShellTreeItem_typeAll=$7FFFFFFF;
|
||||
|
@ -0,0 +1,13 @@
|
||||
type
|
||||
|
||||
nsIDocShellTreeNode = interface(nsISupports)
|
||||
['{37f1ab73-f224-44b1-82f0-d2834ab1cec0}']
|
||||
function GetchildCount(): idllong; safecall;
|
||||
property childCount : idllong read GetchildCount;
|
||||
procedure addChild(child: nsIDocShellTreeItem); safecall;
|
||||
procedure removeChild(child: nsIDocShellTreeItem); safecall;
|
||||
function getChildAt(index: idllong) : nsIDocShellTreeItem; safecall;
|
||||
function findChildWithName(aName: PWideChar; aRecurse: longbool; aSameType: longbool; aRequestor: nsIDocShellTreeItem; aOriginalRequestor: nsIDocShellTreeItem) : nsIDocShellTreeItem; safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,17 @@
|
||||
type
|
||||
|
||||
nsIDocShellTreeOwner = interface(nsISupports)
|
||||
['{932f9f93-8e21-4728-a527-cafc64b4d831}']
|
||||
function findItemWithName(name: PWideChar; aRequestor: nsIDocShellTreeItem; aOriginalRequestor: nsIDocShellTreeItem) : nsIDocShellTreeItem; safecall;
|
||||
procedure contentShellAdded(aContentShell: nsIDocShellTreeItem; aPrimary: longbool; aTargetable: longbool; aID: AString); safecall;
|
||||
procedure contentShellRemoved(aContentShell: nsIDocShellTreeItem); safecall;
|
||||
function GetprimaryContentShell(): nsIDocShellTreeItem; safecall;
|
||||
property primaryContentShell : nsIDocShellTreeItem read GetprimaryContentShell;
|
||||
procedure sizeShellTo(shell: nsIDocShellTreeItem; cx: idllong; cy: idllong); safecall;
|
||||
procedure setPersistence(aPersistPosition: longbool; aPersistSize: longbool; aPersistSizeMode: longbool); safecall;
|
||||
procedure getPersistence(out aPersistPosition: longbool; out aPersistSize: longbool; out aPersistSizeMode: longbool); safecall;
|
||||
function GettargetableShellCount(): idlulong; safecall;
|
||||
property targetableShellCount : idlulong read GettargetableShellCount;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIDocumentCharsetInfo = interface(nsISupports)
|
||||
['{2d40b291-01e1-11d4-9d0e-0050040007b2}']
|
||||
function GetforcedCharset(): nsIAtom; safecall;
|
||||
procedure SetforcedCharset(aforcedCharset: nsIAtom); safecall;
|
||||
property forcedCharset : nsIAtom read GetforcedCharset write SetforcedCharset;
|
||||
function GetforcedDetector(): longbool; safecall;
|
||||
procedure SetforcedDetector(aforcedDetector: longbool); safecall;
|
||||
property forcedDetector : longbool read GetforcedDetector write SetforcedDetector;
|
||||
function GetparentCharset(): nsIAtom; safecall;
|
||||
procedure SetparentCharset(aparentCharset: nsIAtom); safecall;
|
||||
property parentCharset : nsIAtom read GetparentCharset write SetparentCharset;
|
||||
function GetparentCharsetSource(): PRInt32; safecall;
|
||||
procedure SetparentCharsetSource(aparentCharsetSource: PRInt32); safecall;
|
||||
property parentCharsetSource : PRInt32 read GetparentCharsetSource write SetparentCharsetSource;
|
||||
|
||||
end;
|
||||
|
18
components/geckoport/version2/gecko10/nsidomattr.inc
Normal file
18
components/geckoport/version2/gecko10/nsidomattr.inc
Normal file
@ -0,0 +1,18 @@
|
||||
type
|
||||
|
||||
nsIDOMAttr = interface(nsIDOMNode)
|
||||
['{03da4bc9-1b9a-41dc-a1a4-32414d48d704}']
|
||||
function Getname(): DOMString; safecall;
|
||||
property name : DOMString read Getname;
|
||||
function Getspecified(): longbool; safecall;
|
||||
property specified : longbool read Getspecified;
|
||||
function Getvalue(): DOMString; safecall;
|
||||
procedure Setvalue(avalue: DOMString); safecall;
|
||||
property value : DOMString read Getvalue write Setvalue;
|
||||
function GetownerElement(): nsIDOMElement; safecall;
|
||||
property ownerElement : nsIDOMElement read GetownerElement;
|
||||
function GetisId(): longbool; safecall;
|
||||
property isId : longbool read GetisId;
|
||||
|
||||
end;
|
||||
|
10
components/geckoport/version2/gecko10/nsidombarprop.inc
Normal file
10
components/geckoport/version2/gecko10/nsidombarprop.inc
Normal file
@ -0,0 +1,10 @@
|
||||
type
|
||||
|
||||
nsIDOMBarProp = interface(nsISupports)
|
||||
['{9eb2c150-1d56-11d3-8221-0060083a0bcf}']
|
||||
function Getvisible(): longbool; safecall;
|
||||
procedure Setvisible(avisible: longbool); safecall;
|
||||
property visible : longbool read Getvisible write Setvisible;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,7 @@
|
||||
type
|
||||
|
||||
nsIDOMCDATASection = interface(nsIDOMText)
|
||||
['{92cfb4d4-7456-44fa-9c76-c70fdee78e2f}']
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,17 @@
|
||||
type
|
||||
|
||||
nsIDOMCharacterData = interface(nsIDOMNode)
|
||||
['{cb75c251-afc7-444f-b2d6-b9635555f3ed}']
|
||||
function Getdata(): DOMString; safecall;
|
||||
procedure Setdata(adata: DOMString); safecall;
|
||||
property data : DOMString read Getdata write Setdata;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function substringData(offset: idlulong; count: idlulong) : DOMString; safecall;
|
||||
procedure appendData(arg: DOMString); safecall;
|
||||
procedure insertData(offset: idlulong; arg: DOMString); safecall;
|
||||
procedure deleteData(offset: idlulong; count: idlulong); safecall;
|
||||
procedure replaceData(offset: idlulong; count: idlulong; arg: DOMString); safecall;
|
||||
|
||||
end;
|
||||
|
7
components/geckoport/version2/gecko10/nsidomcomment.inc
Normal file
7
components/geckoport/version2/gecko10/nsidomcomment.inc
Normal file
@ -0,0 +1,7 @@
|
||||
type
|
||||
|
||||
nsIDOMComment = interface(nsIDOMCharacterData)
|
||||
['{cea49a35-dac9-4c4d-9830-4660abb3b6bc}']
|
||||
|
||||
end;
|
||||
|
19
components/geckoport/version2/gecko10/nsidomcrypto.inc
Normal file
19
components/geckoport/version2/gecko10/nsidomcrypto.inc
Normal file
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIDOMCrypto = interface(nsISupports)
|
||||
['{12b6d899-2aed-4ea9-8c02-2223ab7ab592}']
|
||||
function Getversion(): DOMString; safecall;
|
||||
property version : DOMString read Getversion;
|
||||
function GetenableSmartCardEvents(): longbool; safecall;
|
||||
procedure SetenableSmartCardEvents(aenableSmartCardEvents: longbool); safecall;
|
||||
property enableSmartCardEvents : longbool read GetenableSmartCardEvents write SetenableSmartCardEvents;
|
||||
function generateCRMFRequest() : nsIDOMCRMFObject; safecall;
|
||||
function importUserCertificates(nickname: DOMString; cmmfResponse: DOMString; doForcedBackup: longbool) : DOMString; safecall;
|
||||
function popChallengeResponse(challenge: DOMString) : DOMString; safecall;
|
||||
function random(numBytes: idllong) : DOMString; safecall;
|
||||
function signText(stringToSign: DOMString; caOption: DOMString) : DOMString; safecall;
|
||||
procedure logout(); safecall;
|
||||
procedure disableRightClick(); safecall;
|
||||
|
||||
end;
|
||||
|
98
components/geckoport/version2/gecko10/nsidomdocument.inc
Normal file
98
components/geckoport/version2/gecko10/nsidomdocument.inc
Normal file
@ -0,0 +1,98 @@
|
||||
type
|
||||
|
||||
nsIDOMDocument = interface(nsIDOMNode)
|
||||
['{5c3bff4d-ae7f-4c93-948c-519589672c30}']
|
||||
function Getdoctype(): nsIDOMDocumentType; safecall;
|
||||
property doctype : nsIDOMDocumentType read Getdoctype;
|
||||
function Getimplementation(): nsIDOMDOMImplementation; safecall;
|
||||
property animplementation : nsIDOMDOMImplementation read Getimplementation;
|
||||
function GetdocumentElement(): nsIDOMElement; safecall;
|
||||
property documentElement : nsIDOMElement read GetdocumentElement;
|
||||
function createElement(atagName: DOMString) : nsIDOMElement; safecall;
|
||||
function createDocumentFragment() : nsIDOMDocumentFragment; safecall;
|
||||
function createTextNode(adata: DOMString) : nsIDOMText; safecall;
|
||||
function createComment(adata: DOMString) : nsIDOMComment; safecall;
|
||||
function createCDATASection(adata: DOMString) : nsIDOMCDATASection; safecall;
|
||||
function createProcessingInstruction(atarget: DOMString; adata: DOMString) : nsIDOMProcessingInstruction; safecall;
|
||||
function createAttribute(aname: DOMString) : nsIDOMAttr; safecall;
|
||||
function getElementsByTagName(atagname: DOMString) : nsIDOMNodeList; safecall;
|
||||
function importNode(animportedNode: nsIDOMNode; adeep: longbool) : nsIDOMNode; safecall;
|
||||
function createElementNS(anamespaceURI: DOMString; aqualifiedName: DOMString) : nsIDOMElement; safecall;
|
||||
function createAttributeNS(anamespaceURI: DOMString; aqualifiedName: DOMString) : nsIDOMAttr; safecall;
|
||||
function getElementsByTagNameNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMNodeList; safecall;
|
||||
function getElementById(anelementId: DOMString) : nsIDOMElement; safecall;
|
||||
function GetinputEncoding(): DOMString; safecall;
|
||||
property inputEncoding : DOMString read GetinputEncoding;
|
||||
function GetdocumentURI(): DOMString; safecall;
|
||||
property documentURI : DOMString read GetdocumentURI;
|
||||
function adoptNode(asource: nsIDOMNode) : nsIDOMNode; safecall;
|
||||
function createRange() : nsIDOMRange; safecall;
|
||||
function createNodeIterator(aroot: nsIDOMNode; awhatToShow: idlulong; afilter: nsIDOMNodeFilter; anentityReferenceExpansion: longbool) : nsIDOMNodeIterator; safecall;
|
||||
function createTreeWalker(aroot: nsIDOMNode; awhatToShow: idlulong; afilter: nsIDOMNodeFilter; anentityReferenceExpansion: longbool) : nsIDOMTreeWalker; safecall;
|
||||
function createEvent(aneventType: DOMString) : nsIDOMEvent; safecall;
|
||||
function GetdefaultView(): nsIDOMWindow; safecall;
|
||||
property defaultView : nsIDOMWindow read GetdefaultView;
|
||||
function GetcharacterSet(): DOMString; safecall;
|
||||
property characterSet : DOMString read GetcharacterSet;
|
||||
function Getdir(): DOMString; safecall;
|
||||
procedure Setdir(adir: DOMString); safecall;
|
||||
property dir : DOMString read Getdir write Setdir;
|
||||
function Getlocation(): nsIDOMLocation; safecall;
|
||||
property location : nsIDOMLocation read Getlocation;
|
||||
function Gettitle(): DOMString; safecall;
|
||||
procedure Settitle(atitle: DOMString); safecall;
|
||||
property title : DOMString read Gettitle write Settitle;
|
||||
function GetreadyState(): DOMString; safecall;
|
||||
property readyState : DOMString read GetreadyState;
|
||||
function GetlastModified(): DOMString; safecall;
|
||||
property lastModified : DOMString read GetlastModified;
|
||||
function Getreferrer(): DOMString; safecall;
|
||||
property referrer : DOMString read Getreferrer;
|
||||
function hasFocus() : longbool; safecall;
|
||||
function GetactiveElement(): nsIDOMElement; safecall;
|
||||
property activeElement : nsIDOMElement read GetactiveElement;
|
||||
function getElementsByClassName(aclasses: DOMString) : nsIDOMNodeList; safecall;
|
||||
function GetstyleSheets(): nsIDOMStyleSheetList; safecall;
|
||||
property styleSheets : nsIDOMStyleSheetList read GetstyleSheets;
|
||||
function GetpreferredStyleSheetSet(): DOMString; safecall;
|
||||
property preferredStyleSheetSet : DOMString read GetpreferredStyleSheetSet;
|
||||
function GetselectedStyleSheetSet(): DOMString; safecall;
|
||||
procedure SetselectedStyleSheetSet(aselectedStyleSheetSet: DOMString); safecall;
|
||||
property selectedStyleSheetSet : DOMString read GetselectedStyleSheetSet write SetselectedStyleSheetSet;
|
||||
function GetlastStyleSheetSet(): DOMString; safecall;
|
||||
property lastStyleSheetSet : DOMString read GetlastStyleSheetSet;
|
||||
function GetstyleSheetSets(): nsIDOMDOMStringList; safecall;
|
||||
property styleSheetSets : nsIDOMDOMStringList read GetstyleSheetSets;
|
||||
procedure enableStyleSheetsForSet(aname: DOMString); safecall;
|
||||
function elementFromPoint(ax: idlfloat; ay: idlfloat) : nsIDOMElement; safecall;
|
||||
function GetcontentType(): DOMString; safecall;
|
||||
property contentType : DOMString read GetcontentType;
|
||||
function GetmozSyntheticDocument(): longbool; safecall;
|
||||
property mozSyntheticDocument : longbool read GetmozSyntheticDocument;
|
||||
function GetcurrentScript(): nsIDOMElement; safecall;
|
||||
property currentScript : nsIDOMElement read GetcurrentScript;
|
||||
procedure releaseCapture(); safecall;
|
||||
procedure mozSetImageElement(anaImageElementId: DOMString; anaImageElement: nsIDOMElement); safecall;
|
||||
function GetmozFullScreenElement(): nsIDOMHTMLElement; safecall;
|
||||
property mozFullScreenElement : nsIDOMHTMLElement read GetmozFullScreenElement;
|
||||
procedure mozCancelFullScreen(); safecall;
|
||||
function GetmozFullScreen(): longbool; safecall;
|
||||
property mozFullScreen : longbool read GetmozFullScreen;
|
||||
function GetmozFullScreenEnabled(): longbool; safecall;
|
||||
property mozFullScreenEnabled : longbool read GetmozFullScreenEnabled;
|
||||
function Getonreadystatechange(): jsval; safecall;
|
||||
procedure Setonreadystatechange(aonreadystatechange: jsval); safecall;
|
||||
property onreadystatechange : jsval read Getonreadystatechange write Setonreadystatechange;
|
||||
function Getonmouseenter(): jsval; safecall;
|
||||
procedure Setonmouseenter(aonmouseenter: jsval); safecall;
|
||||
property onmouseenter : jsval read Getonmouseenter write Setonmouseenter;
|
||||
function Getonmouseleave(): jsval; safecall;
|
||||
procedure Setonmouseleave(aonmouseleave: jsval); safecall;
|
||||
property onmouseleave : jsval read Getonmouseleave write Setonmouseleave;
|
||||
function GetmozHidden(): longbool; safecall;
|
||||
property mozHidden : longbool read GetmozHidden;
|
||||
function GetmozVisibilityState(): DOMString; safecall;
|
||||
property mozVisibilityState : DOMString read GetmozVisibilityState;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,7 @@
|
||||
type
|
||||
|
||||
nsIDOMDocumentFragment = interface(nsIDOMNode)
|
||||
['{4a15eb0c-d5bc-4902-9d50-21b12cab47e7}']
|
||||
|
||||
end;
|
||||
|
15
components/geckoport/version2/gecko10/nsidomdocumenttype.inc
Normal file
15
components/geckoport/version2/gecko10/nsidomdocumenttype.inc
Normal file
@ -0,0 +1,15 @@
|
||||
type
|
||||
|
||||
nsIDOMDocumentType = interface(nsIDOMNode)
|
||||
['{ac5fd4c5-6c5d-4dfc-878c-7d661aa676de}']
|
||||
function Getname(): DOMString; safecall;
|
||||
property name : DOMString read Getname;
|
||||
function GetpublicId(): DOMString; safecall;
|
||||
property publicId : DOMString read GetpublicId;
|
||||
function GetsystemId(): DOMString; safecall;
|
||||
property systemId : DOMString read GetsystemId;
|
||||
function GetinternalSubset(): DOMString; safecall;
|
||||
property internalSubset : DOMString read GetinternalSubset;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDOMDOMImplementation = interface(nsISupports)
|
||||
['{03a6f574-99ec-42f8-9e6c-812a4a9bcbf7}']
|
||||
function hasFeature(feature: DOMString; version: DOMString) : longbool; safecall;
|
||||
function createDocumentType(qualifiedName: DOMString; publicId: DOMString; systemId: DOMString) : nsIDOMDocumentType; safecall;
|
||||
function createDocument(namespaceURI: DOMString; qualifiedName: DOMString; doctype: nsIDOMDocumentType) : nsIDOMDocument; safecall;
|
||||
function createHTMLDocument(title: DOMString) : nsIDOMDocument; safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDOMDOMStringList = interface(nsISupports)
|
||||
['{0bbae65c-1dde-11d9-8c46-000a95dc234c}']
|
||||
function item(index: idlulong) : DOMString; safecall;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function contains(str: DOMString) : longbool; safecall;
|
||||
|
||||
end;
|
||||
|
30
components/geckoport/version2/gecko10/nsidomelement.inc
Normal file
30
components/geckoport/version2/gecko10/nsidomelement.inc
Normal file
@ -0,0 +1,30 @@
|
||||
type
|
||||
|
||||
nsIDOMElement = interface(nsIDOMNode)
|
||||
['{1f249e8b-7b41-44c0-a8d5-15298c1198cd}']
|
||||
function GettagName(): DOMString; safecall;
|
||||
property tagName : DOMString read GettagName;
|
||||
function getAttribute(aname: DOMString) : DOMString; safecall;
|
||||
procedure setAttribute(aname: DOMString; avalue: DOMString); safecall;
|
||||
procedure removeAttribute(aname: DOMString); safecall;
|
||||
function getAttributeNode(aname: DOMString) : nsIDOMAttr; safecall;
|
||||
function setAttributeNode(anewAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
|
||||
function removeAttributeNode(anoldAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
|
||||
function getElementsByTagName(aname: DOMString) : nsIDOMNodeList; safecall;
|
||||
function getAttributeNS(anamespaceURI: DOMString; alocalName: DOMString) : DOMString; safecall;
|
||||
procedure setAttributeNS(anamespaceURI: DOMString; aqualifiedName: DOMString; avalue: DOMString); safecall;
|
||||
procedure removeAttributeNS(anamespaceURI: DOMString; alocalName: DOMString); safecall;
|
||||
function getAttributeNodeNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMAttr; safecall;
|
||||
function setAttributeNodeNS(anewAttr: nsIDOMAttr) : nsIDOMAttr; safecall;
|
||||
function getElementsByTagNameNS(anamespaceURI: DOMString; alocalName: DOMString) : nsIDOMNodeList; safecall;
|
||||
function hasAttribute(aname: DOMString) : longbool; safecall;
|
||||
function hasAttributeNS(anamespaceURI: DOMString; alocalName: DOMString) : longbool; safecall;
|
||||
function Getonmouseenter(): jsval; safecall;
|
||||
procedure Setonmouseenter(aonmouseenter: jsval); safecall;
|
||||
property onmouseenter : jsval read Getonmouseenter write Setonmouseenter;
|
||||
function Getonmouseleave(): jsval; safecall;
|
||||
procedure Setonmouseleave(aonmouseleave: jsval); safecall;
|
||||
property onmouseleave : jsval read Getonmouseleave write Setonmouseleave;
|
||||
|
||||
end;
|
||||
|
32
components/geckoport/version2/gecko10/nsidomevent.inc
Normal file
32
components/geckoport/version2/gecko10/nsidomevent.inc
Normal file
@ -0,0 +1,32 @@
|
||||
type
|
||||
|
||||
nsIDOMEvent = interface(nsISupports)
|
||||
['{e85cff74-951f-45c1-be0c-89442ea2f500}']
|
||||
function Gettype(): DOMString; safecall;
|
||||
property atype : DOMString read Gettype;
|
||||
function Gettarget(): nsIDOMEventTarget; safecall;
|
||||
property target : nsIDOMEventTarget read Gettarget;
|
||||
function GetcurrentTarget(): nsIDOMEventTarget; safecall;
|
||||
property currentTarget : nsIDOMEventTarget read GetcurrentTarget;
|
||||
function GeteventPhase(): idlushort; safecall;
|
||||
property eventPhase : idlushort read GeteventPhase;
|
||||
function Getbubbles(): longbool; safecall;
|
||||
property bubbles : longbool read Getbubbles;
|
||||
function Getcancelable(): longbool; safecall;
|
||||
property cancelable : longbool read Getcancelable;
|
||||
function GettimeStamp(): DOMTimeStamp; safecall;
|
||||
property timeStamp : DOMTimeStamp read GettimeStamp;
|
||||
procedure stopPropagation(); safecall;
|
||||
procedure preventDefault(); safecall;
|
||||
procedure initEvent(eventTypeArg: DOMString; canBubbleArg: longbool; cancelableArg: longbool); safecall;
|
||||
function GetdefaultPrevented(): longbool; safecall;
|
||||
property defaultPrevented : longbool read GetdefaultPrevented;
|
||||
procedure stopImmediatePropagation(); safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMEvent_CAPTURING_PHASE=1;
|
||||
nsIDOMEvent_AT_TARGET=2;
|
||||
nsIDOMEvent_BUBBLING_PHASE=3;
|
||||
|
@ -0,0 +1,8 @@
|
||||
type
|
||||
|
||||
nsIDOMEventListener = interface(nsISupports)
|
||||
['{df31c120-ded6-11d1-bd85-00805f8ae3f4}']
|
||||
procedure handleEvent(event: nsIDOMEvent); safecall;
|
||||
|
||||
end;
|
||||
|
19
components/geckoport/version2/gecko10/nsidomeventtarget.inc
Normal file
19
components/geckoport/version2/gecko10/nsidomeventtarget.inc
Normal file
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIDOMEventTarget = interface(nsISupports)
|
||||
['{1797d5a4-b12a-428d-9eef-a0e13839728c}']
|
||||
procedure addEventListener(atype: DOMString; listener: nsIDOMEventListener; useCapture: longbool; wantsUntrusted: longbool); safecall;
|
||||
procedure removeEventListener(atype: DOMString; listener: nsIDOMEventListener; useCapture: longbool); safecall;
|
||||
function dispatchEvent(evt: nsIDOMEvent) : longbool; safecall;
|
||||
function GetTargetForDOMEvent() : nsIDOMEventTarget; safecall;
|
||||
function GetTargetForEventTargetChain() : nsIDOMEventTarget; safecall;
|
||||
{ procedure PreHandleEvent(aVisitor: nsEventChainPreVisitorRef); safecall;
|
||||
procedure WillHandleEvent(aVisitor: nsEventChainPostVisitorRef); safecall;
|
||||
procedure PostHandleEvent(aVisitor: nsEventChainPostVisitorRef); safecall;
|
||||
procedure DispatchDOMEvent(aEvent: nsEventPtr; aDOMEvent: nsIDOMEvent; aPresContext: nsPresContextPtr; aEventStatus: nsEventStatusPtr); safecall;
|
||||
function GetListenerManager(aMayCreate: longbool) : nsEventListenerManagerPtr; safecall;
|
||||
function GetContextForEventHandlers(out aRv: nsresult) : nsIScriptContext; safecall;
|
||||
function GetJSContextForEventHandlers() : JSContextPtr; safecall;
|
||||
}
|
||||
end;
|
||||
|
36
components/geckoport/version2/gecko10/nsidomfile.inc
Normal file
36
components/geckoport/version2/gecko10/nsidomfile.inc
Normal file
@ -0,0 +1,36 @@
|
||||
type
|
||||
|
||||
nsIDOMBlob = interface(nsISupports)
|
||||
['{d5237f31-443a-460b-9e42-449a135346f0}']
|
||||
function Getsize(): idlulong; safecall;
|
||||
property size : idlulong read Getsize;
|
||||
function Gettype(): DOMString; safecall;
|
||||
property atype : DOMString read Gettype;
|
||||
function GetinternalStream(): nsIInputStream; safecall;
|
||||
property internalStream : nsIInputStream read GetinternalStream;
|
||||
function getInternalUrl(principal: nsIPrincipal) : DOMString; safecall;
|
||||
function mozSlice(start: idllong; anend: idllong; contentType: DOMString) : nsIDOMBlob; safecall;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsIDOMFile = interface(nsIDOMBlob)
|
||||
['{b096ef67-7b77-47f8-8e70-5d8ee36416bf}']
|
||||
function Getname(): DOMString; safecall;
|
||||
property name : DOMString read Getname;
|
||||
function GetmozFullPath(): DOMString; safecall;
|
||||
property mozFullPath : DOMString read GetmozFullPath;
|
||||
function GetmozFullPathInternal(): DOMString; safecall;
|
||||
property mozFullPathInternal : DOMString read GetmozFullPathInternal;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsIDOMMozBlobBuilder = interface(nsISupports)
|
||||
['{006d2cde-ec18-41d4-acc3-43682dd418e2}']
|
||||
function getBlob(contentType: DOMString) : nsIDOMBlob; safecall;
|
||||
function getFile(name: DOMString; contentType: DOMString) : nsIDOMFile; safecall;
|
||||
procedure append(data: jsval); safecall;
|
||||
|
||||
end;
|
||||
|
16
components/geckoport/version2/gecko10/nsidomfileerror.inc
Normal file
16
components/geckoport/version2/gecko10/nsidomfileerror.inc
Normal file
@ -0,0 +1,16 @@
|
||||
type
|
||||
|
||||
nsIDOMFileError = interface(nsISupports)
|
||||
['{4BDAFB64-15E2-49C1-A090-4315A7884A56}']
|
||||
function Getcode(): idlushort; safecall;
|
||||
property code : idlushort read Getcode;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMFileError_NOT_FOUND_ERR=1;
|
||||
nsIDOMFileError_SECURITY_ERR=2;
|
||||
nsIDOMFileError_ABORT_ERR=3;
|
||||
nsIDOMFileError_NOT_READABLE_ERR=4;
|
||||
nsIDOMFileError_ENCODING_ERR=5;
|
||||
|
23
components/geckoport/version2/gecko10/nsidomhistory.inc
Normal file
23
components/geckoport/version2/gecko10/nsidomhistory.inc
Normal file
@ -0,0 +1,23 @@
|
||||
type
|
||||
|
||||
nsIDOMHistory = interface(nsISupports)
|
||||
['{d5a3006b-dd6b-4ba3-81be-6559f8889e60}']
|
||||
function Getlength(): idllong; safecall;
|
||||
property length : idllong read Getlength;
|
||||
function Getcurrent(): DOMString; safecall;
|
||||
property current : DOMString read Getcurrent;
|
||||
function Getprevious(): DOMString; safecall;
|
||||
property previous : DOMString read Getprevious;
|
||||
function Getnext(): DOMString; safecall;
|
||||
property next : DOMString read Getnext;
|
||||
procedure back(); safecall;
|
||||
procedure forward(); safecall;
|
||||
procedure go(aDelta: idllong); safecall;
|
||||
function item(index: idlulong) : DOMString; safecall;
|
||||
procedure pushState(aData: nsIVariant; aTitle: DOMString; aURL: DOMString); safecall;
|
||||
procedure replaceState(aData: nsIVariant; aTitle: DOMString; aURL: DOMString); safecall;
|
||||
function Getstate(): nsIVariant; safecall;
|
||||
property state : nsIVariant read Getstate;
|
||||
|
||||
end;
|
||||
|
35
components/geckoport/version2/gecko10/nsidomlocation.inc
Normal file
35
components/geckoport/version2/gecko10/nsidomlocation.inc
Normal file
@ -0,0 +1,35 @@
|
||||
type
|
||||
|
||||
nsIDOMLocation = interface(nsISupports)
|
||||
['{a6cf906d-15b3-11d2-932e-00805f8add32}']
|
||||
function Gethash(): DOMString; safecall;
|
||||
procedure Sethash(ahash: DOMString); safecall;
|
||||
property hash : DOMString read Gethash write Sethash;
|
||||
function Gethost(): DOMString; safecall;
|
||||
procedure Sethost(ahost: DOMString); safecall;
|
||||
property host : DOMString read Gethost write Sethost;
|
||||
function Gethostname(): DOMString; safecall;
|
||||
procedure Sethostname(ahostname: DOMString); safecall;
|
||||
property hostname : DOMString read Gethostname write Sethostname;
|
||||
function Gethref(): DOMString; safecall;
|
||||
procedure Sethref(ahref: DOMString); safecall;
|
||||
property href : DOMString read Gethref write Sethref;
|
||||
function Getpathname(): DOMString; safecall;
|
||||
procedure Setpathname(apathname: DOMString); safecall;
|
||||
property pathname : DOMString read Getpathname write Setpathname;
|
||||
function Getport(): DOMString; safecall;
|
||||
procedure Setport(aport: DOMString); safecall;
|
||||
property port : DOMString read Getport write Setport;
|
||||
function Getprotocol(): DOMString; safecall;
|
||||
procedure Setprotocol(aprotocol: DOMString); safecall;
|
||||
property protocol : DOMString read Getprotocol write Setprotocol;
|
||||
function Getsearch(): DOMString; safecall;
|
||||
procedure Setsearch(asearch: DOMString); safecall;
|
||||
property search : DOMString read Getsearch write Setsearch;
|
||||
procedure reload(forceget: longbool); safecall;
|
||||
procedure replace(url: DOMString); safecall;
|
||||
procedure assign(url: DOMString); safecall;
|
||||
function toString() : DOMString; safecall;
|
||||
|
||||
end;
|
||||
|
15
components/geckoport/version2/gecko10/nsidommedialist.inc
Normal file
15
components/geckoport/version2/gecko10/nsidommedialist.inc
Normal file
@ -0,0 +1,15 @@
|
||||
type
|
||||
|
||||
nsIDOMMediaList = interface(nsISupports)
|
||||
['{9b0c2ed7-111c-4824-adf9-ef0da6dad371}']
|
||||
function GetmediaText(): DOMString; safecall;
|
||||
procedure SetmediaText(amediaText: DOMString); safecall;
|
||||
property mediaText : DOMString read GetmediaText write SetmediaText;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function item(index: idlulong) : DOMString; safecall;
|
||||
procedure deleteMedium(oldMedium: DOMString); safecall;
|
||||
procedure appendMedium(newMedium: DOMString); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,20 @@
|
||||
type
|
||||
|
||||
nsIDOMMediaQueryList = interface(nsISupports)
|
||||
['{e0e49c52-915b-40f9-9cba-6026305cdf3e}']
|
||||
function Getmedia(): DOMString; safecall;
|
||||
property media : DOMString read Getmedia;
|
||||
function Getmatches(): longbool; safecall;
|
||||
property matches : longbool read Getmatches;
|
||||
procedure addListener(listener: nsIDOMMediaQueryListListener); safecall;
|
||||
procedure removeListener(listener: nsIDOMMediaQueryListListener); safecall;
|
||||
|
||||
end;
|
||||
|
||||
|
||||
nsIDOMMediaQueryListListener = interface(nsISupports)
|
||||
['{279a5cbd-5c15-475d-847b-e0de1624eb77}']
|
||||
procedure handleChange(mql: nsIDOMMediaQueryList); safecall;
|
||||
|
||||
end;
|
||||
|
15
components/geckoport/version2/gecko10/nsidommimetype.inc
Normal file
15
components/geckoport/version2/gecko10/nsidommimetype.inc
Normal file
@ -0,0 +1,15 @@
|
||||
type
|
||||
|
||||
nsIDOMMimeType = interface(nsISupports)
|
||||
['{f6134682-f28b-11d2-8360-c90899049c3c}']
|
||||
function Getdescription(): DOMString; safecall;
|
||||
property description : DOMString read Getdescription;
|
||||
function GetenabledPlugin(): nsIDOMPlugin; safecall;
|
||||
property enabledPlugin : nsIDOMPlugin read GetenabledPlugin;
|
||||
function Getsuffixes(): DOMString; safecall;
|
||||
property suffixes : DOMString read Getsuffixes;
|
||||
function Gettype(): DOMString; safecall;
|
||||
property atype : DOMString read Gettype;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDOMMimeTypeArray = interface(nsISupports)
|
||||
['{f6134683-f28b-11d2-8360-c90899049c3c}']
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function item(index: idlulong) : nsIDOMMimeType; safecall;
|
||||
function namedItem(name: DOMString) : nsIDOMMimeType; safecall;
|
||||
|
||||
end;
|
||||
|
16
components/geckoport/version2/gecko10/nsidomnamednodemap.inc
Normal file
16
components/geckoport/version2/gecko10/nsidomnamednodemap.inc
Normal file
@ -0,0 +1,16 @@
|
||||
type
|
||||
|
||||
nsIDOMNamedNodeMap = interface(nsISupports)
|
||||
['{a6cf907b-15b3-11d2-932e-00805f8add32}']
|
||||
function getNamedItem(name: DOMString) : nsIDOMNode; safecall;
|
||||
function setNamedItem(arg: nsIDOMNode) : nsIDOMNode; safecall;
|
||||
function removeNamedItem(name: DOMString) : nsIDOMNode; safecall;
|
||||
function item(index: idlulong) : nsIDOMNode; safecall;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function getNamedItemNS(namespaceURI: DOMString; localName: DOMString) : nsIDOMNode; safecall;
|
||||
function setNamedItemNS(arg: nsIDOMNode) : nsIDOMNode; safecall;
|
||||
function removeNamedItemNS(namespaceURI: DOMString; localName: DOMString) : nsIDOMNode; safecall;
|
||||
|
||||
end;
|
||||
|
43
components/geckoport/version2/gecko10/nsidomnavigator.inc
Normal file
43
components/geckoport/version2/gecko10/nsidomnavigator.inc
Normal file
@ -0,0 +1,43 @@
|
||||
type
|
||||
|
||||
nsIDOMNavigator = interface(nsISupports)
|
||||
['{c5acd187-bf76-4b26-9329-41c798e47fb6}']
|
||||
function GetappCodeName(): DOMString; safecall;
|
||||
property appCodeName : DOMString read GetappCodeName;
|
||||
function GetappName(): DOMString; safecall;
|
||||
property appName : DOMString read GetappName;
|
||||
function GetappVersion(): DOMString; safecall;
|
||||
property appVersion : DOMString read GetappVersion;
|
||||
function Getlanguage(): DOMString; safecall;
|
||||
property language : DOMString read Getlanguage;
|
||||
function GetmimeTypes(): nsIDOMMimeTypeArray; safecall;
|
||||
property mimeTypes : nsIDOMMimeTypeArray read GetmimeTypes;
|
||||
function Getplatform(): DOMString; safecall;
|
||||
property platform : DOMString read Getplatform;
|
||||
function Getoscpu(): DOMString; safecall;
|
||||
property oscpu : DOMString read Getoscpu;
|
||||
function Getvendor(): DOMString; safecall;
|
||||
property vendor : DOMString read Getvendor;
|
||||
function GetvendorSub(): DOMString; safecall;
|
||||
property vendorSub : DOMString read GetvendorSub;
|
||||
function Getproduct(): DOMString; safecall;
|
||||
property product : DOMString read Getproduct;
|
||||
function GetproductSub(): DOMString; safecall;
|
||||
property productSub : DOMString read GetproductSub;
|
||||
function Getplugins(): nsIDOMPluginArray; safecall;
|
||||
property plugins : nsIDOMPluginArray read Getplugins;
|
||||
function GetuserAgent(): DOMString; safecall;
|
||||
property userAgent : DOMString read GetuserAgent;
|
||||
function GetcookieEnabled(): longbool; safecall;
|
||||
property cookieEnabled : longbool read GetcookieEnabled;
|
||||
function GetonLine(): longbool; safecall;
|
||||
property onLine : longbool read GetonLine;
|
||||
function GetbuildID(): DOMString; safecall;
|
||||
property buildID : DOMString read GetbuildID;
|
||||
function GetdoNotTrack(): DOMString; safecall;
|
||||
property doNotTrack : DOMString read GetdoNotTrack;
|
||||
function javaEnabled() : longbool; safecall;
|
||||
function taintEnabled() : longbool; safecall;
|
||||
|
||||
end;
|
||||
|
80
components/geckoport/version2/gecko10/nsidomnode.inc
Normal file
80
components/geckoport/version2/gecko10/nsidomnode.inc
Normal file
@ -0,0 +1,80 @@
|
||||
type
|
||||
|
||||
nsIDOMNode = interface(nsISupports)
|
||||
['{ce82fb71-60f2-4c38-be31-de5f2f90dada}']
|
||||
function GetnodeName(): DOMString; safecall;
|
||||
property nodeName : DOMString read GetnodeName;
|
||||
function GetnodeValue(): DOMString; safecall;
|
||||
procedure SetnodeValue(anodeValue: DOMString); safecall;
|
||||
property nodeValue : DOMString read GetnodeValue write SetnodeValue;
|
||||
function GetnodeType(): idlushort; safecall;
|
||||
property nodeType : idlushort read GetnodeType;
|
||||
function GetparentNode(): nsIDOMNode; safecall;
|
||||
property parentNode : nsIDOMNode read GetparentNode;
|
||||
function GetparentElement(): nsIDOMElement; safecall;
|
||||
property parentElement : nsIDOMElement read GetparentElement;
|
||||
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() : longbool; safecall;
|
||||
function cloneNode(deep: longbool) : nsIDOMNode; safecall;
|
||||
procedure normalize(); safecall;
|
||||
function isSupported(feature: DOMString; version: DOMString) : longbool; safecall;
|
||||
function GetnamespaceURI(): DOMString; safecall;
|
||||
property namespaceURI : DOMString read GetnamespaceURI;
|
||||
function Getprefix(): DOMString; safecall;
|
||||
property prefix : DOMString read Getprefix;
|
||||
function GetlocalName(): DOMString; safecall;
|
||||
property localName : DOMString read GetlocalName;
|
||||
function hasAttributes() : longbool; safecall;
|
||||
function GetbaseURI(): DOMString; safecall;
|
||||
property baseURI : DOMString read GetbaseURI;
|
||||
function compareDocumentPosition(other: nsIDOMNode) : idlushort; safecall;
|
||||
function GettextContent(): DOMString; safecall;
|
||||
procedure SettextContent(atextContent: DOMString); safecall;
|
||||
property textContent : DOMString read GettextContent write SettextContent;
|
||||
function lookupPrefix(anamespaceURI: DOMString) : DOMString; safecall;
|
||||
function isDefaultNamespace(anamespaceURI: DOMString) : longbool; safecall;
|
||||
function lookupNamespaceURI(aprefix: DOMString) : DOMString; safecall;
|
||||
function isEqualNode(arg: nsIDOMNode) : longbool; safecall;
|
||||
function setUserData(key: DOMString; data: nsIVariant; handler: nsIDOMUserDataHandler) : nsIVariant; safecall;
|
||||
function getUserData(key: DOMString) : nsIVariant; safecall;
|
||||
function contains(aOther: nsIDOMNode) : longbool; safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMNode_ELEMENT_NODE=1;
|
||||
nsIDOMNode_ATTRIBUTE_NODE=2;
|
||||
nsIDOMNode_TEXT_NODE=3;
|
||||
nsIDOMNode_CDATA_SECTION_NODE=4;
|
||||
nsIDOMNode_ENTITY_REFERENCE_NODE=5;
|
||||
nsIDOMNode_ENTITY_NODE=6;
|
||||
nsIDOMNode_PROCESSING_INSTRUCTION_NODE=7;
|
||||
nsIDOMNode_COMMENT_NODE=8;
|
||||
nsIDOMNode_DOCUMENT_NODE=9;
|
||||
nsIDOMNode_DOCUMENT_TYPE_NODE=10;
|
||||
nsIDOMNode_DOCUMENT_FRAGMENT_NODE=11;
|
||||
nsIDOMNode_NOTATION_NODE=12;
|
||||
nsIDOMNode_DOCUMENT_POSITION_DISCONNECTED=$01;
|
||||
nsIDOMNode_DOCUMENT_POSITION_PRECEDING=$02;
|
||||
nsIDOMNode_DOCUMENT_POSITION_FOLLOWING=$04;
|
||||
nsIDOMNode_DOCUMENT_POSITION_CONTAINS=$08;
|
||||
nsIDOMNode_DOCUMENT_POSITION_CONTAINED_BY=$10;
|
||||
nsIDOMNode_DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=$20;
|
||||
|
26
components/geckoport/version2/gecko10/nsidomnodefilter.inc
Normal file
26
components/geckoport/version2/gecko10/nsidomnodefilter.inc
Normal file
@ -0,0 +1,26 @@
|
||||
type
|
||||
|
||||
nsIDOMNodeFilter = interface(nsISupports)
|
||||
['{e4723748-1dd1-11b2-8ee6-866a532a6237}']
|
||||
function acceptNode(n: nsIDOMNode) : idlshort; safecall;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMNodeFilter_FILTER_ACCEPT=1;
|
||||
nsIDOMNodeFilter_FILTER_REJECT=2;
|
||||
nsIDOMNodeFilter_FILTER_SKIP=3;
|
||||
nsIDOMNodeFilter_SHOW_ALL=$FFFFFFFF;
|
||||
nsIDOMNodeFilter_SHOW_ELEMENT=$00000001;
|
||||
nsIDOMNodeFilter_SHOW_ATTRIBUTE=$00000002;
|
||||
nsIDOMNodeFilter_SHOW_TEXT=$00000004;
|
||||
nsIDOMNodeFilter_SHOW_CDATA_SECTION=$00000008;
|
||||
nsIDOMNodeFilter_SHOW_ENTITY_REFERENCE=$00000010;
|
||||
nsIDOMNodeFilter_SHOW_ENTITY=$00000020;
|
||||
nsIDOMNodeFilter_SHOW_PROCESSING_INSTRUCTION=$00000040;
|
||||
nsIDOMNodeFilter_SHOW_COMMENT=$00000080;
|
||||
nsIDOMNodeFilter_SHOW_DOCUMENT=$00000100;
|
||||
nsIDOMNodeFilter_SHOW_DOCUMENT_TYPE=$00000200;
|
||||
nsIDOMNodeFilter_SHOW_DOCUMENT_FRAGMENT=$00000400;
|
||||
nsIDOMNodeFilter_SHOW_NOTATION=$00000800;
|
||||
|
22
components/geckoport/version2/gecko10/nsidomnodeiterator.inc
Normal file
22
components/geckoport/version2/gecko10/nsidomnodeiterator.inc
Normal file
@ -0,0 +1,22 @@
|
||||
type
|
||||
|
||||
nsIDOMNodeIterator = interface(nsISupports)
|
||||
['{5af83f50-c8d5-4824-be29-1aa9d640bacb}']
|
||||
function Getroot(): nsIDOMNode; safecall;
|
||||
property root : nsIDOMNode read Getroot;
|
||||
function GetwhatToShow(): idlulong; safecall;
|
||||
property whatToShow : idlulong read GetwhatToShow;
|
||||
function Getfilter(): nsIDOMNodeFilter; safecall;
|
||||
property filter : nsIDOMNodeFilter read Getfilter;
|
||||
function GetexpandEntityReferences(): longbool; safecall;
|
||||
property expandEntityReferences : longbool read GetexpandEntityReferences;
|
||||
function nextNode() : nsIDOMNode; safecall;
|
||||
function previousNode() : nsIDOMNode; safecall;
|
||||
procedure detach(); safecall;
|
||||
function GetreferenceNode(): nsIDOMNode; safecall;
|
||||
property referenceNode : nsIDOMNode read GetreferenceNode;
|
||||
function GetpointerBeforeReferenceNode(): longbool; safecall;
|
||||
property pointerBeforeReferenceNode : longbool read GetpointerBeforeReferenceNode;
|
||||
|
||||
end;
|
||||
|
11
components/geckoport/version2/gecko10/nsidomnodelist.inc
Normal file
11
components/geckoport/version2/gecko10/nsidomnodelist.inc
Normal file
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDOMNodeList = interface(nsISupports)
|
||||
['{496852ba-e48d-4fa5-982e-e0dc1b475bf1}']
|
||||
function item(index: idlulong) : nsIDOMNode; safecall;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function getNodeAt(index: idlulong) : nsIContent; safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,51 @@
|
||||
type
|
||||
|
||||
nsIDOMOfflineResourceList = interface(nsISupports)
|
||||
['{f394a721-66e9-46fc-bb24-b980bb732dd0}']
|
||||
function GetmozItems(): nsIDOMDOMStringList; safecall;
|
||||
property mozItems : nsIDOMDOMStringList read GetmozItems;
|
||||
function mozHasItem(uri: DOMString) : longbool; safecall;
|
||||
function GetmozLength(): idlulong; safecall;
|
||||
property mozLength : idlulong read GetmozLength;
|
||||
function mozItem(index: idlulong) : DOMString; safecall;
|
||||
procedure mozAdd(uri: DOMString); safecall;
|
||||
procedure mozRemove(uri: DOMString); safecall;
|
||||
function Getstatus(): idlushort; safecall;
|
||||
property status : idlushort 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;
|
||||
function Getonobsolete(): nsIDOMEventListener; safecall;
|
||||
procedure Setonobsolete(aonobsolete: nsIDOMEventListener); safecall;
|
||||
property onobsolete : nsIDOMEventListener read Getonobsolete write Setonobsolete;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMOfflineResourceList_UNCACHED=0;
|
||||
nsIDOMOfflineResourceList_IDLE=1;
|
||||
nsIDOMOfflineResourceList_CHECKING=2;
|
||||
nsIDOMOfflineResourceList_DOWNLOADING=3;
|
||||
nsIDOMOfflineResourceList_UPDATEREADY=4;
|
||||
nsIDOMOfflineResourceList_OBSOLETE=5;
|
||||
|
11
components/geckoport/version2/gecko10/nsidomperformance.inc
Normal file
11
components/geckoport/version2/gecko10/nsidomperformance.inc
Normal file
@ -0,0 +1,11 @@
|
||||
type
|
||||
|
||||
nsIDOMPerformance = interface(nsISupports)
|
||||
['{446faf26-000b-4e66-a5fd-ae37c5ed6beb}']
|
||||
function Gettiming(): nsIDOMPerformanceTiming; safecall;
|
||||
property timing : nsIDOMPerformanceTiming read Gettiming;
|
||||
function Getnavigation(): nsIDOMPerformanceNavigation; safecall;
|
||||
property navigation : nsIDOMPerformanceNavigation read Getnavigation;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,21 @@
|
||||
type
|
||||
nsDOMPerformanceNavigationType = cushort;
|
||||
|
||||
|
||||
type
|
||||
|
||||
nsIDOMPerformanceNavigation = interface(nsISupports)
|
||||
['{a2132ad8-a841-4285-a140-338e8de6c2e0}']
|
||||
function Gettype(): nsDOMPerformanceNavigationType; safecall;
|
||||
property atype : nsDOMPerformanceNavigationType read Gettype;
|
||||
function GetredirectCount(): idlushort; safecall;
|
||||
property redirectCount : idlushort read GetredirectCount;
|
||||
|
||||
end;
|
||||
|
||||
const
|
||||
nsIDOMPerformanceNavigation_TYPE_NAVIGATE=0;
|
||||
nsIDOMPerformanceNavigation_TYPE_RELOAD=1;
|
||||
nsIDOMPerformanceNavigation_TYPE_BACK_FORWARD=2;
|
||||
nsIDOMPerformanceNavigation_TYPE_RESERVED=255;
|
||||
|
@ -0,0 +1,47 @@
|
||||
type
|
||||
|
||||
nsIDOMPerformanceTiming = interface(nsISupports)
|
||||
['{8e09c825-da49-4a39-876b-ce2ff767dbe1}']
|
||||
function GetnavigationStart(): DOMTimeMilliSec; safecall;
|
||||
property navigationStart : DOMTimeMilliSec read GetnavigationStart;
|
||||
function GetunloadEventStart(): DOMTimeMilliSec; safecall;
|
||||
property unloadEventStart : DOMTimeMilliSec read GetunloadEventStart;
|
||||
function GetunloadEventEnd(): DOMTimeMilliSec; safecall;
|
||||
property unloadEventEnd : DOMTimeMilliSec read GetunloadEventEnd;
|
||||
function GetredirectStart(): DOMTimeMilliSec; safecall;
|
||||
property redirectStart : DOMTimeMilliSec read GetredirectStart;
|
||||
function GetredirectEnd(): DOMTimeMilliSec; safecall;
|
||||
property redirectEnd : DOMTimeMilliSec read GetredirectEnd;
|
||||
function GetfetchStart(): DOMTimeMilliSec; safecall;
|
||||
property fetchStart : DOMTimeMilliSec read GetfetchStart;
|
||||
function GetdomainLookupStart(): DOMTimeMilliSec; safecall;
|
||||
property domainLookupStart : DOMTimeMilliSec read GetdomainLookupStart;
|
||||
function GetdomainLookupEnd(): DOMTimeMilliSec; safecall;
|
||||
property domainLookupEnd : DOMTimeMilliSec read GetdomainLookupEnd;
|
||||
function GetconnectStart(): DOMTimeMilliSec; safecall;
|
||||
property connectStart : DOMTimeMilliSec read GetconnectStart;
|
||||
function GetconnectEnd(): DOMTimeMilliSec; safecall;
|
||||
property connectEnd : DOMTimeMilliSec read GetconnectEnd;
|
||||
function GetrequestStart(): DOMTimeMilliSec; safecall;
|
||||
property requestStart : DOMTimeMilliSec read GetrequestStart;
|
||||
function GetresponseStart(): DOMTimeMilliSec; safecall;
|
||||
property responseStart : DOMTimeMilliSec read GetresponseStart;
|
||||
function GetresponseEnd(): DOMTimeMilliSec; safecall;
|
||||
property responseEnd : DOMTimeMilliSec read GetresponseEnd;
|
||||
function GetdomLoading(): DOMTimeMilliSec; safecall;
|
||||
property domLoading : DOMTimeMilliSec read GetdomLoading;
|
||||
function GetdomInteractive(): DOMTimeMilliSec; safecall;
|
||||
property domInteractive : DOMTimeMilliSec read GetdomInteractive;
|
||||
function GetdomContentLoadedEventStart(): DOMTimeMilliSec; safecall;
|
||||
property domContentLoadedEventStart : DOMTimeMilliSec read GetdomContentLoadedEventStart;
|
||||
function GetdomContentLoadedEventEnd(): DOMTimeMilliSec; safecall;
|
||||
property domContentLoadedEventEnd : DOMTimeMilliSec read GetdomContentLoadedEventEnd;
|
||||
function GetdomComplete(): DOMTimeMilliSec; safecall;
|
||||
property domComplete : DOMTimeMilliSec read GetdomComplete;
|
||||
function GetloadEventStart(): DOMTimeMilliSec; safecall;
|
||||
property loadEventStart : DOMTimeMilliSec read GetloadEventStart;
|
||||
function GetloadEventEnd(): DOMTimeMilliSec; safecall;
|
||||
property loadEventEnd : DOMTimeMilliSec read GetloadEventEnd;
|
||||
|
||||
end;
|
||||
|
9
components/geckoport/version2/gecko10/nsidompkcs11.inc
Normal file
9
components/geckoport/version2/gecko10/nsidompkcs11.inc
Normal file
@ -0,0 +1,9 @@
|
||||
type
|
||||
|
||||
nsIDOMPkcs11 = interface(nsISupports)
|
||||
['{9fd42950-25e7-11d4-8a7d-006008c844c3}']
|
||||
function deletemodule(moduleName: DOMString) : idllong; safecall;
|
||||
function addmodule(moduleName: DOMString; libraryFullPath: DOMString; cryptoMechanismFlags: idllong; cipherFlags: idllong) : idllong; safecall;
|
||||
|
||||
end;
|
||||
|
19
components/geckoport/version2/gecko10/nsidomplugin.inc
Normal file
19
components/geckoport/version2/gecko10/nsidomplugin.inc
Normal file
@ -0,0 +1,19 @@
|
||||
type
|
||||
|
||||
nsIDOMPlugin = interface(nsISupports)
|
||||
['{ff69a292-c74d-4ef5-9d0f-86112fff2d5b}']
|
||||
function Getdescription(): DOMString; safecall;
|
||||
property description : DOMString read Getdescription;
|
||||
function Getfilename(): DOMString; safecall;
|
||||
property filename : DOMString read Getfilename;
|
||||
function Getversion(): DOMString; safecall;
|
||||
property version : DOMString read Getversion;
|
||||
function Getname(): DOMString; safecall;
|
||||
property name : DOMString read Getname;
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function item(index: idlulong) : nsIDOMMimeType; safecall;
|
||||
function namedItem(aname: DOMString) : nsIDOMMimeType; safecall;
|
||||
|
||||
end;
|
||||
|
12
components/geckoport/version2/gecko10/nsidompluginarray.inc
Normal file
12
components/geckoport/version2/gecko10/nsidompluginarray.inc
Normal file
@ -0,0 +1,12 @@
|
||||
type
|
||||
|
||||
nsIDOMPluginArray = interface(nsISupports)
|
||||
['{f6134680-f28b-11d2-8360-c90899049c3c}']
|
||||
function Getlength(): idlulong; safecall;
|
||||
property length : idlulong read Getlength;
|
||||
function item(index: idlulong) : nsIDOMPlugin; safecall;
|
||||
function namedItem(name: DOMString) : nsIDOMPlugin; safecall;
|
||||
procedure refresh(reloadDocuments: longbool); safecall;
|
||||
|
||||
end;
|
||||
|
@ -0,0 +1,9 @@
|
||||
type
|
||||
|
||||
nsIDOMProcessingInstruction = interface(nsIDOMCharacterData)
|
||||
['{d754433f-4637-4a5f-9034-0388173ea254}']
|
||||
function Gettarget(): DOMString; safecall;
|
||||
property target : DOMString read Gettarget;
|
||||
|
||||
end;
|
||||
|
27
components/geckoport/version2/gecko10/nsidomscreen.inc
Normal file
27
components/geckoport/version2/gecko10/nsidomscreen.inc
Normal file
@ -0,0 +1,27 @@
|
||||
type
|
||||
|
||||
nsIDOMScreen = interface(nsISupports)
|
||||
['{77947960-b4af-11d2-bd93-00805f8ae3f4}']
|
||||
function Gettop(): idllong; safecall;
|
||||
property top : idllong read Gettop;
|
||||
function Getleft(): idllong; safecall;
|
||||
property left : idllong read Getleft;
|
||||
function Getwidth(): idllong; safecall;
|
||||
property width : idllong read Getwidth;
|
||||
function Getheight(): idllong; safecall;
|
||||
property height : idllong read Getheight;
|
||||
function GetpixelDepth(): idllong; safecall;
|
||||
property pixelDepth : idllong read GetpixelDepth;
|
||||
function GetcolorDepth(): idllong; safecall;
|
||||
property colorDepth : idllong read GetcolorDepth;
|
||||
function GetavailWidth(): idllong; safecall;
|
||||
property availWidth : idllong read GetavailWidth;
|
||||
function GetavailHeight(): idllong; safecall;
|
||||
property availHeight : idllong read GetavailHeight;
|
||||
function GetavailLeft(): idllong; safecall;
|
||||
property availLeft : idllong read GetavailLeft;
|
||||
function GetavailTop(): idllong; safecall;
|
||||
property availTop : idllong read GetavailTop;
|
||||
|
||||
end;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user