lazarus-ccr/components/geckoport/version2/gecko11/nsidomevent.inc

44 lines
1.7 KiB
PHP

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